From d7a637f4391b2174a2cf43ee11e6577a204a161e Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Tue, 12 Mar 2024 20:24:19 -0700 Subject: [PATCH] feat: Automated regeneration of ContentWarehouse client (#11021) Auto-created at 2024-03-13 03:02:08 +0000 using the toys pull request generator. --- clients/content_warehouse/.gitignore | 37 + clients/content_warehouse/LICENSE | 201 + clients/content_warehouse/README.md | 23 + clients/content_warehouse/config/config.exs | 20 + .../content_warehouse/v1/api/projects.ex | 2756 ++++++++++++ .../content_warehouse/v1/connection.ex | 32 + .../content_warehouse/v1/metadata.ex | 26 + .../v1/model/abuseiam_abuse_type.ex | 49 + .../v1/model/abuseiam_age_restriction.ex | 49 + .../v1/model/abuseiam_and_restriction.ex | 46 + .../v1/model/abuseiam_client.ex | 49 + .../abuseiam_cluster_evaluation_context.ex | 52 + .../v1/model/abuseiam_constant_restriction.ex | 46 + .../v1/model/abuseiam_content_restriction.ex | 49 + .../v1/model/abuseiam_evaluation.ex | 106 + .../v1/model/abuseiam_feature.ex | 67 + .../v1/model/abuseiam_geo_restriction.ex | 47 + .../model/abuseiam_geo_restriction_locale.ex | 49 + .../v1/model/abuseiam_hash.ex | 49 + .../abuseiam_manual_review_evaluation_info.ex | 51 + .../v1/model/abuseiam_manual_review_tool.ex | 49 + .../v1/model/abuseiam_manual_reviewer_info.ex | 49 + .../v1/model/abuseiam_name_value_pair.ex | 52 + .../v1/model/abuseiam_not_restriction.ex | 46 + .../v1/model/abuseiam_or_restriction.ex | 46 + .../v1/model/abuseiam_region.ex | 46 + .../v1/model/abuseiam_special_restriction.ex | 46 + .../v1/model/abuseiam_target.ex | 49 + .../v1/model/abuseiam_user_notification.ex | 46 + .../v1/model/abuseiam_user_restriction.ex | 66 + .../v1/model/abuseiam_verdict.ex | 107 + .../v1/model/abuseiam_verdict_restriction.ex | 55 + .../abuseiam_verdict_restriction_context.ex | 49 + .../v1/model/abuseiam_video_review_data.ex | 52 + .../v1/model/abuseiam_video_reviewer.ex | 49 + ...ing_reporting_offers_serialized_sori_id.ex | 57 + .../content_warehouse/v1/model/anchors.ex | 82 + .../v1/model/anchors_anchor.ex | 161 + .../v1/model/anchors_anchor_source.ex | 118 + .../v1/model/anchors_redundant_anchor_info.ex | 52 + .../v1/model/apps_dynamite_customer_id.ex | 46 + .../apps_dynamite_shared_organization_info.ex | 60 + ..._shared_organization_info_consumer_info.ex | 46 + ..._shared_organization_info_customer_info.ex | 51 + ...amite_shared_segmented_membership_count.ex | 57 + ...mite_shared_segmented_membership_counts.ex | 58 + ...ple_activity_backend_destination_stream.ex | 54 + ...ity_streamquality_distiller_engagements.ex | 72 + ...eople_oz_external_mergedpeopleapi_about.ex | 67 + ..._mergedpeopleapi_about_me_extended_data.ex | 83 + ...t_me_extended_data_name_display_options.ex | 53 + ...ut_me_extended_data_photos_compare_data.ex | 77 + ...nded_data_photos_compare_data_diff_data.ex | 59 + ...ut_me_extended_data_profile_editability.ex | 53 + ..._data_profile_name_modification_history.ex | 71 + ..._external_mergedpeopleapi_account_email.ex | 51 + ...rgedpeopleapi_additional_container_info.ex | 61 + ...ple_oz_external_mergedpeopleapi_address.ex | 102 + ...le_oz_external_mergedpeopleapi_affinity.ex | 71 + ...external_mergedpeopleapi_age_range_type.ex | 65 + ...xternal_mergedpeopleapi_app_unique_info.ex | 63 + ...ernal_mergedpeopleapi_best_display_name.ex | 57 + ...le_oz_external_mergedpeopleapi_birthday.ex | 91 + ...leapi_birthday_age_disable_grace_period.ex | 71 + ...e_grace_period_manual_grace_period_info.ex | 59 + ...xternal_mergedpeopleapi_bragging_rights.ex | 59 + ...le_oz_external_mergedpeopleapi_calendar.ex | 66 + ...mergedpeopleapi_caller_id_extended_data.ex | 56 + ...aller_id_extended_data_caller_id_source.ex | 53 + ...l_mergedpeopleapi_certified_born_before.ex | 59 + ...z_external_mergedpeopleapi_channel_data.ex | 78 + ...ernal_mergedpeopleapi_circle_membership.ex | 59 + ...oz_external_mergedpeopleapi_client_data.ex | 66 + ...nal_mergedpeopleapi_communication_email.ex | 59 + ...nal_mergedpeopleapi_connection_reminder.ex | 59 + ...edpeopleapi_contact_create_context_info.ex | 64 + ...rgedpeopleapi_contact_edit_context_info.ex | 64 + ...ergedpeopleapi_contact_group_membership.ex | 73 + ...dpeopleapi_contact_prompt_settings_info.ex | 64 + ...rnal_mergedpeopleapi_contact_state_info.ex | 60 + ...oz_external_mergedpeopleapi_cover_photo.ex | 74 + ...nal_mergedpeopleapi_custom_schema_field.ex | 84 + ..._external_mergedpeopleapi_customer_info.ex | 57 + ..._mergedpeopleapi_deduped_container_info.ex | 54 + ...al_mergedpeopleapi_delegated_group_info.ex | 54 + ...peopleapi_device_contact_extra_metadata.ex | 61 + ...ernal_mergedpeopleapi_device_contact_id.ex | 54 + ...nal_mergedpeopleapi_device_contact_info.ex | 87 + ..._external_mergedpeopleapi_edge_key_info.ex | 67 + ...dpeopleapi_edge_key_info_extension_data.ex | 53 + ...eople_oz_external_mergedpeopleapi_email.ex | 114 + ...ernal_mergedpeopleapi_email_certificate.ex | 68 + ...pi_email_certificate_certificate_status.ex | 56 + ...eopleapi_email_contact_group_preference.ex | 59 + ...nal_mergedpeopleapi_email_extended_data.ex | 64 + ...edpeopleapi_email_signup_email_metadata.ex | 53 + ...external_mergedpeopleapi_emergency_info.ex | 62 + ...eople_oz_external_mergedpeopleapi_event.ex | 72 + ...oz_external_mergedpeopleapi_external_id.ex | 66 + ...e_oz_external_mergedpeopleapi_field_acl.ex | 65 + ...nal_mergedpeopleapi_field_acl_acl_entry.ex | 60 + ...rgedpeopleapi_field_acl_acl_entry_scope.ex | 74 + ...ield_acl_acl_entry_scope_membership_acl.ex | 67 + ...l_entry_scope_membership_acl_circle_acl.ex | 59 + ..._scope_membership_acl_contact_group_acl.ex | 56 + ...pi_field_acl_acl_entry_scope_person_acl.ex | 59 + ...al_mergedpeopleapi_field_emergency_info.ex | 51 + ...ple_oz_external_mergedpeopleapi_file_as.ex | 59 + ...nal_mergedpeopleapi_g_pay_extended_data.ex | 63 + ...ople_oz_external_mergedpeopleapi_gender.ex | 69 + ...nal_mergedpeopleapi_gplus_extended_data.ex | 54 + ..._mergedpeopleapi_hangouts_extended_data.ex | 69 + ..._external_mergedpeopleapi_identity_info.ex | 65 + ...s_people_oz_external_mergedpeopleapi_im.ex | 72 + ...gedpeopleapi_in_app_notification_target.ex | 92 + ..._in_app_notification_target_client_data.ex | 56 + ...p_notification_target_originating_field.ex | 59 + ...nal_mergedpeopleapi_in_app_reachability.ex | 72 + ...pi_in_app_reachability_reachability_key.ex | 56 + ...al_mergedpeopleapi_interaction_settings.ex | 62 + ...le_oz_external_mergedpeopleapi_interest.ex | 59 + ...le_oz_external_mergedpeopleapi_language.ex | 59 + ...ple_oz_external_mergedpeopleapi_lat_lng.ex | 54 + ..._external_mergedpeopleapi_legacy_fields.ex | 51 + ...eopleapi_limited_profile_settings_field.ex | 65 + ...le_oz_external_mergedpeopleapi_location.ex | 87 + ...rnal_mergedpeopleapi_management_upchain.ex | 71 + ...api_management_upchain_indirect_manager.ex | 56 + ...rnal_mergedpeopleapi_maps_extended_data.ex | 78 + ...z_external_mergedpeopleapi_maps_profile.ex | 79 + ...eopleapi_maps_profile_field_restriction.ex | 56 + ...l_mergedpeopleapi_maps_profile_url_link.ex | 54 + ..._oz_external_mergedpeopleapi_match_info.ex | 63 + ...peopleapi_match_info_lookup_token_match.ex | 56 + ..._oz_external_mergedpeopleapi_membership.ex | 66 + ...ple_oz_external_mergedpeopleapi_mission.ex | 59 + ...people_oz_external_mergedpeopleapi_name.ex | 119 + ..._name_pronunciation_audio_metadata_info.ex | 65 + ...le_oz_external_mergedpeopleapi_nickname.ex | 62 + ..._oz_external_mergedpeopleapi_occupation.ex | 59 + ..._external_mergedpeopleapi_opening_hours.ex | 66 + ..._mergedpeopleapi_opening_hours_endpoint.ex | 54 + ...al_mergedpeopleapi_opening_hours_period.ex | 65 + ...z_external_mergedpeopleapi_organization.ex | 148 + ...mergedpeopleapi_organization_assignment.ex | 56 + ...al_mergedpeopleapi_organization_project.ex | 63 + ..._external_mergedpeopleapi_other_keyword.ex | 69 + ...ople_oz_external_mergedpeopleapi_person.ex | 837 ++++ ...ternal_mergedpeopleapi_person_attribute.ex | 63 + ...al_mergedpeopleapi_person_extended_data.ex | 180 + ...l_mergedpeopleapi_person_field_metadata.ex | 187 + ...peopleapi_person_list_with_total_number.ex | 64 + ...xternal_mergedpeopleapi_person_metadata.ex | 170 + ...dpeopleapi_person_metadata_scoring_info.ex | 65 + ...adata_scoring_info_st_expression_result.ex | 56 + ...eople_oz_external_mergedpeopleapi_phone.ex | 89 + ...nal_mergedpeopleapi_phone_extended_data.ex | 55 + ...eople_oz_external_mergedpeopleapi_photo.ex | 106 + ..._mergedpeopleapi_photo_photo_storage_id.ex | 51 + ..._external_mergedpeopleapi_place_details.ex | 77 + ...ergedpeopleapi_play_games_extended_data.ex | 90 + ...pi_play_games_extended_data_achievement.ex | 59 + ...external_mergedpeopleapi_plus_page_info.ex | 62 + ..._oz_external_mergedpeopleapi_point_spec.ex | 57 + ..._external_mergedpeopleapi_posix_account.ex | 96 + ...ternal_mergedpeopleapi_product_metadata.ex | 51 + ...mergedpeopleapi_product_profile_failure.ex | 53 + ...nal_mergedpeopleapi_profile_owner_stats.ex | 54 + ...oz_external_mergedpeopleapi_profile_url.ex | 59 + ...ple_oz_external_mergedpeopleapi_pronoun.ex | 60 + ...eapi_raw_device_contact_analytical_info.ex | 62 + ...mergedpeopleapi_raw_device_contact_info.ex | 105 + ..._mergedpeopleapi_read_only_profile_info.ex | 121 + ...eapi_read_only_profile_info_domain_info.ex | 56 + ...le_oz_external_mergedpeopleapi_relation.ex | 78 + ...rgedpeopleapi_relation_relation_details.ex | 62 + ...l_mergedpeopleapi_relationship_interest.ex | 63 + ...nal_mergedpeopleapi_relationship_status.ex | 63 + ...ergedpeopleapi_right_of_publicity_state.ex | 61 + ...external_mergedpeopleapi_roster_details.ex | 74 + ..._external_mergedpeopleapi_roster_member.ex | 54 + ...nal_mergedpeopleapi_roster_member_count.ex | 54 + ...external_mergedpeopleapi_search_profile.ex | 62 + ...oz_external_mergedpeopleapi_sip_address.ex | 66 + ...ople_oz_external_mergedpeopleapi_skills.ex | 59 + ...ernal_mergedpeopleapi_social_connection.ex | 59 + ...e_oz_external_mergedpeopleapi_sort_keys.ex | 74 + ...xternal_mergedpeopleapi_source_identity.ex | 69 + ...external_mergedpeopleapi_ssh_public_key.ex | 65 + ...ternal_mergedpeopleapi_structured_phone.ex | 73 + ...peopleapi_structured_phone_phone_number.ex | 62 + ...structured_phone_phone_number_i18n_data.ex | 68 + ...edpeopleapi_structured_phone_short_code.ex | 56 + ...ple_oz_external_mergedpeopleapi_tagline.ex | 59 + ...nal_mergedpeopleapi_teams_extended_data.ex | 113 + ...z_external_mergedpeopleapi_user_defined.ex | 63 + ...rnal_mergedpeopleapi_user_visible_stats.ex | 54 + ...ernal_mergedpeopleapi_visible_to_guests.ex | 55 + ...gedpeopleapi_web_contacts_extended_data.ex | 53 + ...ple_oz_external_mergedpeopleapi_website.ex | 78 + ...rgedpeopleapi_website_relationship_info.ex | 53 + ...l_mergedpeopleapi_youtube_extended_data.ex | 67 + ...istant_api_action_v2_supported_features.ex | 72 + ...sistant_api_android_intent_capabilities.ex | 59 + ..._capabilities_android_intent_capability.ex | 56 + .../model/assistant_api_app_capabilities.ex | 79 + .../assistant_api_app_capabilities_delta.ex | 54 + .../assistant_api_app_control_support.ex | 49 + ...assistant_api_app_integrations_settings.ex | 48 + ...pi_assistant_continued_presence_support.ex | 51 + .../v1/model/assistant_api_audio_input.ex | 49 + .../v1/model/assistant_api_audio_output.ex | 59 + .../assistant_api_bluetooth_capabilities.ex | 46 + .../model/assistant_api_call_capabilities.ex | 61 + .../assistant_api_camera_capabilities.ex | 49 + ...istant_api_camera_receiver_capabilities.ex | 59 + ...ssistant_api_car_assistant_capabilities.ex | 51 + ...assistant_api_car_settings_capabilities.ex | 51 + ...i_cast_assistant_setting_linking_result.ex | 54 + .../model/assistant_api_cast_capabilities.ex | 72 + ...evice_modify_setting_client_op_property.ex | 62 + ...erties_provider_open_client_op_property.ex | 53 + .../model/assistant_api_clock_capabilities.ex | 72 + ...stant_api_communication_ui_capabilities.ex | 51 + ...sistant_api_contact_lookup_capabilities.ex | 51 + ...sistant_api_core_types_android_app_info.ex | 99 + ...re_types_android_app_info_activity_info.ex | 59 + ...android_app_info_activity_info_activity.ex | 54 + ...t_api_core_types_android_app_info_delta.ex | 61 + ...assistant_api_core_types_calendar_event.ex | 155 + ..._api_core_types_calendar_event_attendee.ex | 69 + ...re_types_calendar_event_meeting_contact.ex | 76 + ...tant_api_core_types_calendar_event_room.ex | 64 + ...lendar_event_room_room_location_details.ex | 71 + ...t_api_core_types_calendar_event_wrapper.ex | 46 + .../assistant_api_core_types_cast_app_info.ex | 49 + ...stant_api_core_types_chrome_os_app_info.ex | 54 + ...tant_api_core_types_cloud_provider_info.ex | 65 + ...e_types_cloud_provider_info_agent_style.ex | 75 + .../assistant_api_core_types_device_config.ex | 49 + .../assistant_api_core_types_device_id.ex | 83 + ...ant_api_core_types_device_user_identity.ex | 55 + ...assistant_api_core_types_governed_color.ex | 57 + ...t_api_core_types_governed_device_config.ex | 54 + ...stant_api_core_types_governed_device_id.ex | 93 + ...e_types_governed_ringtone_task_metadata.ex | 116 + ..._task_metadata_character_alarm_metadata.ex | 59 + ...ringtone_task_metadata_funtime_metadata.ex | 65 + ...one_task_metadata_gen_ml_alarm_metadata.ex | 56 + ...ringtone_task_metadata_gentle_wake_info.ex | 59 + ..._task_metadata_on_device_alarm_metadata.ex | 59 + ...ne_task_metadata_routine_alarm_metadata.ex | 53 + ...pi_core_types_governed_surface_identity.ex | 66 + ...api_core_types_governed_surface_version.ex | 54 + .../assistant_api_core_types_home_app_info.ex | 49 + .../model/assistant_api_core_types_image.ex | 79 + ...t_api_core_types_internal_provider_info.ex | 51 + .../assistant_api_core_types_ios_app_info.ex | 52 + ...ssistant_api_core_types_kai_os_app_info.ex | 52 + ...ant_api_core_types_location_coordinates.ex | 57 + ...ant_api_core_types_message_notification.ex | 124 + ...message_notification_notification_entry.ex | 77 + ..._core_types_message_notification_person.ex | 57 + .../assistant_api_core_types_provider.ex | 110 + ...assistant_api_core_types_provider_delta.ex | 58 + ...istant_api_core_types_sip_provider_info.ex | 57 + ...sistant_api_core_types_surface_identity.ex | 68 + .../assistant_api_core_types_surface_type.ex | 46 + ...ssistant_api_core_types_surface_version.ex | 51 + ...istant_api_core_types_web_provider_info.ex | 66 + ...ovider_info_third_party_custom_nlu_info.ex | 59 + ...t_api_cross_device_execution_capability.ex | 54 + ...ssistant_api_data_validate_capabilities.ex | 51 + .../v1/model/assistant_api_date.ex | 52 + .../v1/model/assistant_api_date_time.ex | 52 + .../v1/model/assistant_api_date_time_range.ex | 49 + .../assistant_api_device_capabilities.ex | 216 + .../v1/model/assistant_api_duration.ex | 49 + ...ant_api_feature_specific_action_support.ex | 51 + .../assistant_api_fitness_feature_support.ex | 46 + .../assistant_api_fluid_actions_support.ex | 46 + .../model/assistant_api_gacs_capabilities.ex | 58 + .../model/assistant_api_gcm_capabilities.ex | 52 + .../assistant_api_gesture_capabilities.ex | 52 + .../assistant_api_guest_access_output.ex | 46 + .../assistant_api_immersive_canvas_support.ex | 51 + .../model/assistant_api_jwn_capabilities.ex | 52 + ...istant_api_lens_perception_capabilities.ex | 68 + ...rception_capabilities_lens_capabilities.ex | 101 + ...n_capabilities_lens_capabilities_dining.ex | 48 + ...apabilities_lens_capabilities_education.ex | 48 + ..._capabilities_lens_capabilities_outdoor.ex | 48 + ...capabilities_lens_capabilities_shopping.ex | 48 + ...ion_capabilities_lens_capabilities_text.ex | 53 + ...apabilities_lens_capabilities_translate.ex | 53 + ...istant_api_live_tv_channel_capabilities.ex | 59 + ...annel_capabilities_channels_by_provider.ex | 65 + ...tv_channel_capabilities_live_tv_channel.ex | 66 + .../model/assistant_api_live_tv_provider.ex | 53 + .../assistant_api_location_capabilities.ex | 46 + .../model/assistant_api_logging_only_data.ex | 91 + .../assistant_api_media_control_support.ex | 46 + .../assistant_api_message_capabilities.ex | 52 + .../assistant_api_movement_capabilities.ex | 46 + ...nt_api_notification_output_restrictions.ex | 55 + ...ation_output_restrictions_opt_out_state.ex | 71 + ...ions_opt_out_state_category_group_state.ex | 56 + ...strictions_opt_out_state_category_state.ex | 56 + .../model/assistant_api_oem_capabilities.ex | 78 + ...nt_api_on_device_assistant_capabilities.ex | 60 + ...t_api_on_device_smart_home_capabilities.ex | 51 + ...tant_api_on_device_storage_capabilities.ex | 51 + .../assistant_api_output_restrictions.ex | 69 + .../model/assistant_api_proactive_output.ex | 58 + .../v1/model/assistant_api_protobuf.ex | 49 + .../v1/model/assistant_api_recurrence.ex | 76 + .../assistant_api_screen_capabilities.ex | 84 + .../assistant_api_screen_capabilities_mask.ex | 48 + ...creen_capabilities_proto_layout_version.ex | 54 + ...tant_api_screen_capabilities_resolution.ex | 63 + .../model/assistant_api_selina_capabilites.ex | 56 + ...assistant_api_settings_ambient_settings.ex | 57 + ...assistant_api_settings_app_capabilities.ex | 58 + ...tant_api_settings_auto_framing_settings.ex | 51 + ...i_settings_carrier_call_device_settings.ex | 51 + ...tant_api_settings_communications_filter.ex | 51 + ...t_api_settings_device_downtime_settings.ex | 62 + ...ant_api_settings_device_feature_filters.ex | 62 + ...sistant_api_settings_device_logs_opt_in.ex | 48 + .../assistant_api_settings_device_settings.ex | 358 ++ ...ice_settings_cross_surface_availability.ex | 56 + ...pi_settings_device_supervision_settings.ex | 62 + .../assistant_api_settings_downtime_period.ex | 57 + ...ssistant_api_settings_downtime_schedule.ex | 59 + ...t_api_settings_duo_call_device_settings.ex | 60 + .../assistant_api_settings_feature_filters.ex | 84 + .../assistant_api_settings_gcm_settings.ex | 49 + .../assistant_api_settings_home_graph_data.ex | 64 + ..._api_settings_hospitality_card_settings.ex | 77 + ...s_hospitality_card_settings_card_config.ex | 72 + ...lity_card_settings_you_tube_card_config.ex | 59 + ...assistant_api_settings_hospitality_mode.ex | 106 + ..._api_settings_hospitality_mode_branding.ex | 60 + ...ngs_hotword_threshold_adjustment_factor.ex | 54 + ...i_settings_internal_ancillary_device_id.ex | 51 + ...assistant_api_settings_internal_version.ex | 51 + .../model/assistant_api_settings_kids_mode.ex | 49 + ..._api_settings_labeled_downtime_schedule.ex | 55 + .../assistant_api_settings_linked_user.ex | 61 + ...ant_api_settings_marketplace_disclosure.ex | 54 + .../assistant_api_settings_masquerade_mode.ex | 60 + .../assistant_api_settings_music_filter.ex | 55 + .../assistant_api_settings_news_filter.ex | 46 + ...stant_api_settings_notification_profile.ex | 56 + ...ation_profile_allo_notification_profile.ex | 57 + ...ant_api_settings_on_device_app_settings.ex | 63 + ...t_api_settings_personalization_metadata.ex | 57 + .../assistant_api_settings_podcast_filter.ex | 46 + .../assistant_api_settings_polite_mode.ex | 46 + ...settings_reauth_trusted_device_settings.ex | 60 + ..._trusted_device_settings_trust_settings.ex | 59 + .../assistant_api_settings_search_filter.ex | 46 + ...ant_api_settings_speech_output_settings.ex | 51 + .../assistant_api_settings_speech_settings.ex | 90 + .../assistant_api_settings_tethered_info.ex | 46 + ...nt_api_settings_third_party_apps_filter.ex | 51 + .../assistant_api_settings_video_filter.ex | 58 + .../assistant_api_settings_webview_filter.ex | 49 + .../v1/model/assistant_api_sign_in_method.ex | 49 + .../model/assistant_api_soda_capabilities.ex | 55 + .../assistant_api_software_capabilities.ex | 197 + .../assistant_api_speech_capabilities.ex | 49 + .../assistant_api_suggestions_support.ex | 99 + ...gestions_support_display_target_support.ex | 60 + .../assistant_api_sunrise_features_support.ex | 48 + .../assistant_api_supported_client_op.ex | 62 + ...supported_client_op_supported_execution.ex | 54 + ...tant_api_supported_conversation_version.ex | 54 + .../model/assistant_api_supported_features.ex | 284 ++ ...ssistant_api_supported_protocol_version.ex | 59 + ...d_protocol_version_message_version_pair.ex | 54 + .../assistant_api_supported_provider_types.ex | 48 + .../model/assistant_api_surface_properties.ex | 60 + ...rface_properties_execution_capabilities.ex | 57 + ...nt_api_system_notification_restrictions.ex | 75 + ...estrictions_notification_category_state.ex | 59 + ...restrictions_notification_channel_state.ex | 56 + ...assistant_api_third_party_action_config.ex | 63 + ...hird_party_action_config_project_config.ex | 51 + .../assistant_api_third_party_capabilities.ex | 48 + .../v1/model/assistant_api_time_of_day.ex | 55 + .../v1/model/assistant_api_time_zone.ex | 46 + .../v1/model/assistant_api_timestamp.ex | 49 + ...istant_api_transaction_features_support.ex | 51 + .../model/assistant_api_volume_properties.ex | 67 + .../assistant_context_app_provider_id.ex | 55 + .../assistant_context_media_provider_id.ex | 74 + .../v1/model/assistant_context_provider_id.ex | 64 + ...stant_context_provider_selection_policy.ex | 54 + ...stant_context_provider_selection_result.ex | 67 + .../assistant_context_provider_variant.ex | 52 + ...device_targeting_device_targeting_error.ex | 51 + ...devices_platform_proto_alarm_capability.ex | 60 + ...sistant_devices_platform_proto_arg_spec.ex | 67 + ...ces_platform_proto_call_call_capability.ex | 46 + ...tform_proto_client_reconnect_capability.ex | 46 + ...devices_platform_proto_cloud_capability.ex | 58 + ...t_devices_platform_proto_cloud_endpoint.ex | 57 + ...proto_core_dismiss_assistant_capability.ex | 48 + ...platform_proto_device_action_capability.ex | 105 + ..._proto_device_modify_setting_capability.ex | 58 + ...form_proto_device_take_photo_capability.ex | 46 + ...devices_platform_proto_execution_config.ex | 69 + ...latform_proto_execution_wait_capability.ex | 46 + ...latform_proto_inlined_action_capability.ex | 95 + ...t_devices_platform_proto_int_value_spec.ex | 54 + ...assistant_devices_platform_proto_intent.ex | 90 + ...ices_platform_proto_internal_capability.ex | 94 + ...rnal_capability_stadia_assistant_config.ex | 53 + ...es_platform_proto_media_next_capability.ex | 46 + ...s_platform_proto_media_pause_capability.ex | 46 + ...tform_proto_media_play_media_capability.ex | 46 + ...latform_proto_media_previous_capability.ex | 46 + ..._platform_proto_media_resume_capability.ex | 46 + ...rm_proto_media_show_controls_capability.ex | 48 + ...es_platform_proto_media_stop_capability.ex | 46 + ...evices_platform_proto_option_value_spec.ex | 51 + ...nt_devices_platform_proto_provided_data.ex | 51 + ...tform_proto_provider_fulfill_capability.ex | 46 + ...platform_proto_provider_open_capability.ex | 56 + ..._devices_platform_proto_response_limits.ex | 60 + ..._devices_platform_proto_security_config.ex | 51 + ...form_proto_send_chat_message_capability.ex | 46 + ...ces_platform_proto_supported_device_ops.ex | 178 + ...devices_platform_proto_timer_capability.ex | 65 + ...evices_platform_proto_trigger_condition.ex | 66 + ...es_platform_proto_tts_output_capability.ex | 51 + ...ces_platform_proto_understanding_config.ex | 51 + ...ounding_provider_provider_signal_result.ex | 77 + ...g_ranker_assistant_interaction_features.ex | 87 + ...ker_contact_grounding_provider_features.ex | 86 + ...ranker_device_contact_affinity_features.ex | 57 + ...nker_device_grounding_provider_features.ex | 76 + ...unding_ranker_device_targeting_features.ex | 64 + ...er_device_targeting_features_properties.ex | 59 + ...ranker_device_targeting_features_states.ex | 90 + ...rounding_ranker_device_targeting_labels.ex | 51 + ...er_endpoint_grounding_provider_features.ex | 53 + ...ding_ranker_grounding_provider_features.ex | 100 + .../assistant_grounding_ranker_laa_feature.ex | 51 + ...assistant_grounding_ranker_laa_features.ex | 85 + ...ounding_ranker_laa_features_binding_set.ex | 55 + ...ker_laa_features_communication_endpoint.ex | 57 + ...t_grounding_ranker_laa_features_contact.ex | 63 + ..._grounding_ranker_laa_features_provider.ex | 55 + ...anker_media_grounding_provider_features.ex | 108 + ...ker_podcast_grounding_provider_features.ex | 68 + ...er_provider_grounding_provider_features.ex | 68 + .../assistant_logs_all_media_stream_log.ex | 52 + ...istant_logs_ambiguous_target_device_log.ex | 82 + ...biguous_target_device_log_punt_info_log.ex | 57 + ...s_communication_device_contact_info_log.ex | 58 + ...ogs_communication_fuzzy_ngram_match_log.ex | 54 + ...communication_google_account_provenance.ex | 57 + ..._logs_communication_person_metadata_log.ex | 58 + ...communication_personal_contact_data_log.ex | 169 + .../assistant_logs_communication_phone_log.ex | 59 + ...mmunication_raw_device_contact_info_log.ex | 51 + .../assistant_logs_default_device_log.ex | 53 + .../assistant_logs_default_devices_log.ex | 57 + .../assistant_logs_device_annotation_log.ex | 52 + .../model/assistant_logs_device_info_log.ex | 101 + ...assistant_logs_device_media_session_log.ex | 64 + .../assistant_logs_device_selection_log.ex | 124 + ...istant_logs_device_selection_result_log.ex | 105 + ...sistant_logs_device_targeting_test_code.ex | 51 + .../model/assistant_logs_input_error_log.ex | 49 + ...t_logs_low_confidence_target_device_log.ex | 59 + .../assistant_logs_lumos_processor_info.ex | 52 + .../assistant_logs_media_capabilities.ex | 49 + ...media_device_selection_decision_summary.ex | 57 + .../assistant_logs_media_focus_info_log.ex | 59 + .../model/assistant_logs_media_focuses_log.ex | 66 + .../model/assistant_logs_media_stream_log.ex | 50 + .../assistant_logs_nearby_devices_log.ex | 89 + .../assistant_logs_provider_annotation_log.ex | 54 + .../assistant_logs_query_annotation_log.ex | 86 + .../v1/model/assistant_logs_reminder_log.ex | 49 + .../assistant_logs_room_annotation_log.ex | 55 + .../assistant_logs_settings_device_id_log.ex | 61 + ...assistant_logs_structure_annotation_log.ex | 54 + .../model/assistant_logs_target_device_log.ex | 53 + .../model/assistant_pfr_device_rd_metadata.ex | 61 + ...ssistant_pfr_smart_home_intent_metadata.ex | 62 + .../assistant_pfr_tiebreaking_metadata.ex | 49 + ...lfillment_ranker_prefulfillment_signals.ex | 247 ++ .../model/assistant_productivity_list_item.ex | 46 + .../model/assistant_reminders_attachment.ex | 52 + .../assistant_reminders_attachment_link.ex | 53 + .../assistant_reminders_memory_payload.ex | 49 + .../assistant_reminders_nlg_template_key.ex | 49 + ...tant_teleport_teleport_nickname_signals.ex | 63 + ...t_verticals_common_contact_match_signal.ex | 51 + ...eautomation_proto_action_project_config.ex | 53 + ...ls_homeautomation_proto_agent_device_id.ex | 54 + ..._homeautomation_proto_agent_information.ex | 63 + ...erticals_homeautomation_proto_attribute.ex | 56 + ...rticals_homeautomation_proto_attributes.ex | 58 + ...meautomation_proto_common_event_trigger.ex | 60 + ...on_proto_common_structure_based_routine.ex | 93 + ..._common_structure_based_routine_trigger.ex | 67 + ...meautomation_proto_common_voice_trigger.ex | 51 + ...homeautomation_proto_concierge_features.ex | 51 + ...roto_device_targeting_output_query_info.ex | 62 + ...mation_proto_home_automation__meta_data.ex | 278 ++ ..._automation__meta_data_supported_traits.ex | 53 + ...automation_proto_home_automation_device.ex | 104 + ...ation_proto_home_automation_device_item.ex | 68 + ...s_homeautomation_proto_matter_unique_id.ex | 57 + ..._homeautomation_proto_physical_location.ex | 54 + ...s_homeautomation_proto_role_information.ex | 54 + ...tion_proto_smart_device_management_data.ex | 53 + ...omeautomation_proto_smart_home_features.ex | 60 + ...tion_proto_supported_structure_features.ex | 57 + ...attentional_entities_mention_properties.ex | 100 + ...ties_mention_properties_list_entry_info.ex | 54 + ...onal_entities_mention_properties_source.ex | 71 + ...tities_mention_properties_source_client.ex | 46 + ...tities_mention_properties_source_system.ex | 46 + ...entities_mention_properties_source_user.ex | 46 + .../attentional_entities_semantic_role_id.ex | 49 + ...attentional_entities_spatial_properties.ex | 51 + .../attentional_entities_surface_form.ex | 46 + .../v1/model/biasing_per_doc_data.ex | 50 + .../v1/model/biasing_per_doc_data2.ex | 50 + .../biasing_per_doc_data2_biasing_field.ex | 55 + .../biasing_per_doc_data_biasing_field.ex | 49 + .../v1/model/blobstore_blob_ref.ex | 64 + .../v1/model/blog_per_doc_data.ex | 86 + .../v1/model/blog_per_doc_data_outlinks.ex | 55 + .../v1/model/blogsearch_conversation_node.ex | 58 + .../v1/model/blogsearch_conversation_tree.ex | 49 + ...le_proto_blue_ginger_supported_services.ex | 59 + ...r_supported_services_blue_ginger_module.ex | 59 + .../v1/model/book_citation_per_doc_data.ex | 58 + .../v1/model/business_hours.ex | 49 + .../v1/model/business_hours_interval.ex | 49 + .../model/chat_bot_platform_bot_send_token.ex | 49 + .../v1/model/chat_bot_platform_fireball_id.ex | 50 + .../model/classifier_porn_classifier_data.ex | 60 + ...ier_porn_classifier_data_classification.ex | 54 + .../v1/model/classifier_porn_document_data.ex | 50 + ...classifier_porn_query_classifier_output.ex | 57 + ...orn_query_multi_label_classifier_output.ex | 84 + .../v1/model/classifier_porn_query_stats.ex | 49 + .../model/classifier_porn_referrer_counts.ex | 52 + .../v1/model/classifier_porn_site_data.ex | 81 + ...assifier_porn_site_data_versioned_score.ex | 60 + .../classifier_porn_site_violence_stats.ex | 55 + ...enantresource_cloud_sql_instance_config.ex | 69 + ...atform_tenantresource_gcs_bucket_config.ex | 66 + ...tform_tenantresource_iam_policy_binding.ex | 60 + ...orm_tenantresource_infra_spanner_config.ex | 75 + ..._spanner_config_create_database_options.ex | 59 + ...tenantresource_service_account_identity.ex | 54 + ...rm_tenantresource_tenant_project_config.ex | 74 + ..._tenantresource_tenant_project_resource.ex | 122 + ...platform_tenantresource_tenant_resource.ex | 69 + ...esource_tenant_service_account_identity.ex | 56 + .../v1/model/commerce_datastore_deep_tag.ex | 49 + .../commerce_datastore_image_deep_tags.ex | 53 + ..._datastore_image_deep_tags_model_output.ex | 85 + .../v1/model/composite_doc.ex | 242 ++ .../composite_doc_additional_checksums.ex | 58 + .../v1/model/composite_doc_alternate_name.ex | 52 + .../v1/model/composite_doc_extra_dup.ex | 49 + .../v1/model/composite_doc_forwarding_dup.ex | 64 + .../model/composite_doc_included_content.ex | 58 + .../v1/model/composite_doc_indexing_info.ex | 126 + .../composite_doc_live_experiment_info.ex | 53 + ...xperiment_info_per_live_experiment_info.ex | 54 + .../composite_doc_localized_variations.ex | 63 + .../composite_doc_partial_update_info.ex | 67 + ...ial_update_info_last_full_indexing_info.ex | 54 + .../v1/model/composite_doc_quality_signals.ex | 53 + .../model/composite_doc_robots_info_list.ex | 47 + .../v1/model/compressed_quality_signals.ex | 182 + .../v1/model/concepts_concept_id.ex | 49 + .../v1/model/content_attributions.ex | 69 + ...ntent_attributions_outgoing_attribution.ex | 60 + .../v1/model/content_aware_crops_indexing.ex | 49 + .../v1/model/copley_lexical_metadata.ex | 46 + .../v1/model/copley_personal_reference.ex | 46 + .../copley_personal_reference_metadata.ex | 54 + .../v1/model/copley_source_type_list.ex | 50 + .../v1/model/copley_source_type_metadata.ex | 81 + .../v1/model/copley_subreference_metadata.ex | 57 + .../v1/model/copley_subreference_reference.ex | 53 + .../model/copley_subreference_resolution.ex | 52 + .../v1/model/corpus_selection_info.ex | 58 + .../v1/model/country_click_distribution.ex | 53 + .../model/country_click_distribution_item.ex | 52 + .../v1/model/country_country_attachment.ex | 170 + .../v1/model/country_geo_location.ex | 61 + .../v1/model/country_geo_locations.ex | 52 + .../v1/model/country_location_info.ex | 74 + .../v1/model/country_metro_nb_feature.ex | 52 + .../v1/model/country_province_geotoken.ex | 46 + .../v1/model/country_salient_country.ex | 52 + ...ngerate_multiple_component_distribution.ex | 58 + ...hangerate_single_component_distribution.ex | 57 + .../v1/model/crawler_changerate_url_change.ex | 84 + .../crawler_changerate_url_changerate.ex | 111 + .../model/crawler_changerate_url_history.ex | 54 + .../model/crawler_changerate_url_version.ex | 90 + .../v1/model/crowding_per_doc_data.ex | 50 + .../crowding_per_doc_data_news_cluster.ex | 52 + .../v1/model/deep_crop_indexing.ex | 46 + .../v1/model/deep_crop_pixels.ex | 55 + .../v1/model/doc_properties.ex | 86 + .../v1/model/doc_properties_bad_title_info.ex | 49 + .../v1/model/drishti_compressed_feature.ex | 52 + .../v1/model/drishti_dense_feature_data.ex | 52 + .../v1/model/drishti_feature_extra.ex | 41 + .../v1/model/drishti_feature_set_data.ex | 59 + ...ti_feature_set_data_feature_set_element.ex | 82 + .../drishti_feature_set_data_sequence.ex | 55 + .../v1/model/drishti_indexed_feature_data.ex | 55 + .../v1/model/drishti_label_set_data.ex | 64 + .../v1/model/drishti_label_set_element.ex | 49 + ...ishti_quantized_byte_dense_feature_data.ex | 57 + ...hti_quantized_byte_indexed_feature_data.ex | 60 + .../drishti_quantized_dense_feature_data.ex | 52 + .../v1/model/drishti_sparse_feature_data.ex | 55 + .../model/drishti_vesper_encoded_thumbnail.ex | 70 + .../model/drishti_vesper_moving_thumbnail.ex | 98 + ...esper_moving_thumbnail_score_components.ex | 66 + .../v1/model/drishti_vesper_thumbnail.ex | 111 + .../drishti_vesper_thumbnail_quality_score.ex | 51 + .../drishti_vesper_user_report_human_label.ex | 46 + .../drishti_vesper_user_report_model_score.ex | 49 + ...per_user_report_user_reported_thumbnail.ex | 90 + .../model/drishti_vesper_video_thumbnail.ex | 59 + .../v1/model/embeds_deep_link_data.ex | 58 + .../v1/model/embeds_embed_client_item.ex | 67 + .../model/embeds_packaging_service_client.ex | 55 + .../v1/model/embeds_provenance.ex | 61 + .../v1/model/embeds_transient_data.ex | 41 + .../v1/model/event_id_message.ex | 52 + .../v1/model/extra_snippet_info_response.ex | 64 + .../extra_snippet_info_response_match_info.ex | 52 + ...tra_snippet_info_response_query_subitem.ex | 66 + .../extra_snippet_info_response_tidbit.ex | 68 + ...nippet_info_response_tidbit_anchor_info.ex | 54 + .../v1/model/face_indexing.ex | 49 + .../fatcat_compact_binary_classification.ex | 52 + .../fatcat_compact_doc_classification.ex | 79 + .../model/fatcat_compact_rephil_clusters.ex | 50 + .../fatcat_compact_rephil_clusters_cluster.ex | 51 + ...fatcat_compact_taxonomic_classification.ex | 68 + ...mpact_taxonomic_classification_category.ex | 54 + .../focus_backend_contact_detail_hash.ex | 49 + .../v1/model/focus_backend_contact_pointer.ex | 65 + .../model/focus_backend_device_contact_id.ex | 49 + .../v1/model/focus_backend_device_id.ex | 49 + .../focus_backend_device_raw_contact_id.ex | 49 + .../model/focus_backend_other_contact_id.ex | 50 + .../focus_backend_secondary_contact_id.ex | 57 + .../v1/model/freebase_citation.ex | 61 + .../content_warehouse/v1/model/freebase_id.ex | 49 + .../v1/model/freebase_lat_long.ex | 49 + .../v1/model/freebase_measurement.ex | 49 + .../v1/model/freebase_measurement_unit.ex | 52 + .../v1/model/freebase_nested_struct.ex | 47 + .../v1/model/freebase_property_value.ex | 55 + .../v1/model/freebase_topic.ex | 51 + .../v1/model/freebase_value.ex | 121 + .../v1/model/g_document_base.ex | 137 + .../v1/model/g_document_base_content.ex | 82 + .../v1/model/g_document_base_directory.ex | 67 + .../model/g_document_base_original_content.ex | 49 + .../v1/model/generic_snippet_response.ex | 58 + ...eo_ondemand_assistant_supported_actions.ex | 57 + .../v1/model/geostore_access_point_proto.ex | 79 + .../model/geostore_address_component_proto.ex | 68 + .../v1/model/geostore_address_lines_proto.ex | 49 + .../v1/model/geostore_address_proto.ex | 80 + .../v1/model/geostore_address_range_proto.ex | 61 + .../model/geostore_anchored_geometry_proto.ex | 46 + .../geostore_applied_speed_limit_proto.ex | 49 + .../geostore_attachments_attachment_proto.ex | 60 + .../v1/model/geostore_attribute_id_proto.ex | 52 + .../v1/model/geostore_attribute_proto.ex | 108 + .../geostore_attribute_value_display_proto.ex | 51 + ...geostore_barrier_logical_material_proto.ex | 48 + .../v1/model/geostore_best_locale_proto.ex | 52 + .../geostore_biz_builder_reference_proto.ex | 46 + .../v1/model/geostore_border_proto.ex | 72 + .../model/geostore_bounding_marker_proto.ex | 64 + .../v1/model/geostore_building_proto.ex | 70 + .../v1/model/geostore_business_chain_proto.ex | 50 + .../v1/model/geostore_business_hours_proto.ex | 49 + .../v1/model/geostore_call_to_action_proto.ex | 49 + .../geostore_canonical_g_concept_proto.ex | 50 + .../v1/model/geostore_cell_covering_proto.ex | 46 + .../v1/model/geostore_city_json_proto.ex | 58 + .../geostore_city_json_proto_city_object.ex | 58 + ...re_city_json_proto_city_object_geometry.ex | 75 + ..._proto_city_object_geometry_multi_point.ex | 51 + ...roto_city_object_geometry_multi_surface.ex | 58 + ...y_json_proto_city_object_geometry_solid.ex | 58 + ...json_proto_city_object_geometry_surface.ex | 58 + .../geostore_city_json_proto_transform.ex | 53 + ...ore_city_json_proto_transform_translate.ex | 57 + .../model/geostore_composable_item_proto.ex | 74 + .../model/geostore_count_comparison_proto.ex | 49 + .../geostore_crossing_stripe_pattern_proto.ex | 64 + .../v1/model/geostore_curvature_proto.ex | 50 + .../model/geostore_curve_connection_proto.ex | 60 + ...re_curve_connection_proto_bezier_params.ex | 58 + ...ction_proto_bezier_params_control_point.ex | 54 + ...re_curve_connection_proto_circle_params.ex | 51 + .../v1/model/geostore_data_source_proto.ex | 91 + .../v1/model/geostore_date_time_proto.ex | 49 + .../geostore_dimension_comparison_proto.ex | 50 + .../v1/model/geostore_dimension_proto.ex | 49 + .../v1/model/geostore_display_data_proto.ex | 46 + .../v1/model/geostore_disputed_area_proto.ex | 49 + .../v1/model/geostore_doodle_proto.ex | 46 + .../geostore_duration_based_rate_proto.ex | 58 + .../model/geostore_elevation_model_proto.ex | 61 + .../v1/model/geostore_elevation_proto.ex | 49 + .../v1/model/geostore_entrance_proto.ex | 52 + .../geostore_entrance_reference_proto.ex | 46 + .../v1/model/geostore_establishment_proto.ex | 70 + .../model/geostore_exceptional_hours_proto.ex | 52 + .../v1/model/geostore_existence_proto.ex | 67 + .../geostore_feature_field_metadata_proto.ex | 53 + ...e_field_metadata_proto_field_provenance.ex | 59 + ...geostore_feature_history_metadata_proto.ex | 54 + .../geostore_feature_id_forwardings_proto.ex | 65 + .../model/geostore_feature_id_list_proto.ex | 46 + .../v1/model/geostore_feature_id_proto.ex | 52 + .../model/geostore_feature_metadata_proto.ex | 72 + .../geostore_feature_property_id_proto.ex | 58 + .../v1/model/geostore_feature_proto.ex | 443 ++ ...geostore_feature_replacement_info_proto.ex | 53 + .../v1/model/geostore_field_metadata_proto.ex | 47 + .../model/geostore_field_with_rights_proto.ex | 58 + .../v1/model/geostore_flow_line_proto.ex | 49 + .../geostore_food_menu_item_option_proto.ex | 106 + ..._food_menu_item_option_proto_ingredient.ex | 55 + ...ood_menu_item_option_proto_portion_size.ex | 56 + .../v1/model/geostore_food_menu_item_proto.ex | 58 + .../geostore_g_concept_instance_proto.ex | 52 + .../v1/model/geostore_geometry_composition.ex | 58 + ...geostore_geometry_store_reference_proto.ex | 54 + .../geostore_geopolitical_geometry_proto.ex | 50 + .../v1/model/geostore_geopolitical_proto.ex | 54 + .../v1/model/geostore_grade_level_proto.ex | 49 + .../v1/model/geostore_html_text_proto.ex | 54 + .../model/geostore_inferred_geometry_proto.ex | 55 + .../model/geostore_internal_feature_proto.ex | 62 + .../geostore_internal_field_metadata_proto.ex | 53 + .../model/geostore_internal_segment_proto.ex | 72 + ...segment_proto_lane_connection_reference.ex | 57 + .../geostore_internal_source_summary_proto.ex | 51 + .../geostore_intersection_group_proto.ex | 59 + .../v1/model/geostore_intersection_proto.ex | 57 + .../v1/model/geostore_job_metadata.ex | 61 + .../v1/model/geostore_job_related_category.ex | 52 + ...eostore_knowledge_graph_reference_proto.ex | 51 + .../geostore_landmark_reference_proto.ex | 52 + .../v1/model/geostore_lane_marker_proto.ex | 61 + .../v1/model/geostore_lane_proto.ex | 111 + .../geostore_lane_proto_lane_connection.ex | 72 + .../geostore_language_tagged_text_proto.ex | 49 + .../v1/model/geostore_level_proto.ex | 49 + .../geostore_linear_stripe_pattern_proto.ex | 46 + .../model/geostore_locale_language_proto.ex | 58 + .../v1/model/geostore_locale_proto.ex | 54 + .../v1/model/geostore_logical_border_proto.ex | 54 + .../v1/model/geostore_media_item_proto.ex | 56 + .../geostore_media_item_proto_media_size.ex | 49 + .../v1/model/geostore_name_proto.ex | 64 + ..._raw_g_concept_instance_container_proto.ex | 56 + ...e_ontology_raw_g_concept_instance_proto.ex | 64 + .../v1/model/geostore_opening_hours_proto.ex | 55 + .../v1/model/geostore_operations_proto.ex | 50 + .../geostore_override_border_status_proto.ex | 49 + ...ore_painted_element_logical_color_proto.ex | 51 + .../model/geostore_parking_allowance_proto.ex | 81 + .../v1/model/geostore_parking_proto.ex | 74 + .../geostore_parking_restriction_proto.ex | 56 + .../v1/model/geostore_peak_proto.ex | 46 + .../geostore_pedestrian_crossing_proto.ex | 67 + .../v1/model/geostore_physical_line_proto.ex | 72 + .../model/geostore_point_curvature_proto.ex | 52 + .../v1/model/geostore_point_proto.ex | 55 + .../model/geostore_point_with_height_proto.ex | 49 + .../v1/model/geostore_political_proto.ex | 58 + .../v1/model/geostore_poly_line_proto.ex | 52 + .../v1/model/geostore_polygon_proto.ex | 67 + .../v1/model/geostore_pose_proto.ex | 64 + ...eostore_price_info_food_nutrition_facts.ex | 92 + ...info_food_nutrition_facts_calories_fact.ex | 57 + ...nfo_food_nutrition_facts_nutrition_fact.ex | 57 + .../v1/model/geostore_price_info_proto.ex | 54 + .../v1/model/geostore_price_info_status.ex | 46 + .../geostore_price_list_name_info_proto.ex | 55 + .../v1/model/geostore_price_list_proto.ex | 73 + .../geostore_price_list_section_proto.ex | 72 + .../v1/model/geostore_price_range_proto.ex | 55 + .../geostore_property_value_status_proto.ex | 50 + .../v1/model/geostore_provenance_proto.ex | 49 + .../v1/model/geostore_rank_details_proto.ex | 49 + .../v1/model/geostore_rank_signal_proto.ex | 58 + .../v1/model/geostore_raw_data_proto.ex | 49 + .../v1/model/geostore_raw_metadata_proto.ex | 55 + .../v1/model/geostore_rect_proto.ex | 49 + .../geostore_region_specific_name_proto.ex | 52 + .../v1/model/geostore_regulated_area_proto.ex | 50 + .../v1/model/geostore_relation_proto.ex | 74 + .../model/geostore_restriction_group_proto.ex | 49 + .../v1/model/geostore_restriction_proto.ex | 88 + .../v1/model/geostore_rights_status_proto.ex | 50 + .../model/geostore_road_conditional_proto.ex | 58 + .../v1/model/geostore_road_monitor_proto.ex | 50 + .../geostore_road_sign_component_proto.ex | 67 + .../v1/model/geostore_road_sign_proto.ex | 50 + .../model/geostore_route_association_proto.ex | 55 + .../v1/model/geostore_route_proto.ex | 46 + .../model/geostore_school_district_proto.ex | 46 + .../v1/model/geostore_segment_path_proto.ex | 46 + .../v1/model/geostore_segment_proto.ex | 267 ++ .../geostore_segment_proto_ramp_proto.ex | 46 + .../v1/model/geostore_service_area_proto.ex | 50 + .../v1/model/geostore_serviced_stop_proto.ex | 49 + .../v1/model/geostore_ski_boundary_proto.ex | 46 + .../v1/model/geostore_ski_lift_proto.ex | 46 + .../v1/model/geostore_ski_trail_proto.ex | 49 + .../v1/model/geostore_slope_proto.ex | 49 + .../model/geostore_social_reference_proto.ex | 52 + .../v1/model/geostore_source_info_proto.ex | 85 + .../v1/model/geostore_source_trust_proto.ex | 46 + .../v1/model/geostore_speed_limit_proto.ex | 69 + .../v1/model/geostore_speed_proto.ex | 49 + .../model/geostore_stable_field_path_proto.ex | 53 + ..._field_path_proto_stable_field_selector.ex | 54 + .../v1/model/geostore_sweep_proto.ex | 57 + .../v1/model/geostore_telephone_proto.ex | 84 + .../model/geostore_temporary_closure_proto.ex | 55 + .../v1/model/geostore_text_affix_proto.ex | 52 + .../geostore_three_dimensional_model_proto.ex | 53 + .../model/geostore_time_based_rate_proto.ex | 62 + .../v1/model/geostore_time_component_proto.ex | 50 + .../v1/model/geostore_time_endpoint_proto.ex | 70 + .../v1/model/geostore_time_interval_proto.ex | 58 + .../v1/model/geostore_time_schedule_proto.ex | 50 + .../v1/model/geostore_timezone_proto.ex | 49 + .../v1/model/geostore_toll_cluster_proto.ex | 47 + .../v1/model/geostore_track_proto.ex | 49 + .../v1/model/geostore_transit_line_proto.ex | 58 + .../geostore_transit_line_variant_proto.ex | 49 + .../model/geostore_transit_station_proto.ex | 54 + ..._proto_transit_agency_association_proto.ex | 56 + .../v1/model/geostore_trust_signals_proto.ex | 46 + .../model/geostore_unlimited_speed_proto.ex | 41 + .../v1/model/geostore_url_list_proto.ex | 46 + .../v1/model/geostore_url_proto.ex | 55 + .../v1/model/geostore_user_proto.ex | 55 + .../v1/model/geostore_variable_speed_proto.ex | 41 + ...geostore_vehicle_attribute_filter_proto.ex | 107 + .../model/geostore_vertical_ordering_proto.ex | 46 + .../model/geostore_weight_comparison_proto.ex | 52 + .../v1/model/geostore_weight_proto.ex | 49 + .../v1/model/goodoc_anchor_label.ex | 49 + .../v1/model/goodoc_bounding_box.ex | 58 + .../v1/model/goodoc_box_partitions.ex | 49 + .../v1/model/goodoc_break_label.ex | 49 + .../v1/model/goodoc_char_label.ex | 106 + .../v1/model/goodoc_document.ex | 61 + .../v1/model/goodoc_document_header.ex | 52 + .../v1/model/goodoc_document_header_font.ex | 49 + .../v1/model/goodoc_document_page.ex | 88 + .../v1/model/goodoc_document_page_block.ex | 65 + .../goodoc_document_page_merged_page_info.ex | 49 + .../v1/model/goodoc_font_size_stats.ex | 73 + .../v1/model/goodoc_label.ex | 59 + .../goodoc_language_combination_language.ex | 49 + .../v1/model/goodoc_language_label.ex | 52 + .../v1/model/goodoc_logical_entity.ex | 49 + .../v1/model/goodoc_logical_entity_link.ex | 70 + .../v1/model/goodoc_ordinal.ex | 67 + .../v1/model/goodoc_orientation_label.ex | 58 + .../v1/model/goodoc_overrides.ex | 70 + .../v1/model/goodoc_overrides_style.ex | 49 + .../v1/model/goodoc_paragraph.ex | 98 + .../v1/model/goodoc_paragraph_dropped_cap.ex | 49 + .../v1/model/goodoc_paragraph_route.ex | 55 + .../v1/model/goodoc_rotated_bounding_box.ex | 58 + .../v1/model/goodoc_route_point.ex | 49 + .../v1/model/goodoc_semantic_label.ex | 127 + .../goodoc_semantic_label_column_details.ex | 49 + .../goodoc_semantic_label_content_link.ex | 62 + ...ntic_label_content_link_citation_target.ex | 63 + ...tic_label_content_link_in_volume_target.ex | 54 + ...emantic_label_edit_correction_candidate.ex | 54 + .../goodoc_semantic_label_snippet_filter.ex | 49 + ...oodoc_semantic_label_table_cell_details.ex | 57 + .../goodoc_semantic_label_table_details.ex | 49 + .../v1/model/goodoc_summary_stats.ex | 179 + .../v1/model/goodoc_symbol.ex | 63 + .../v1/model/goodoc_symbol_symbol_variant.ex | 49 + .../content_warehouse/v1/model/goodoc_word.ex | 92 + .../v1/model/goodoc_word_alternates.ex | 54 + .../model/goodoc_word_alternates_alternate.ex | 52 + ...iceconsumermanagement_v1_billing_config.ex | 51 + ...iceconsumermanagement_v1_policy_binding.ex | 54 + ...assistant_accessory_v1_audio_out_config.ex | 60 + ...le_assistant_accessory_v1_device_config.ex | 67 + ...gle_assistant_accessory_v1_device_state.ex | 92 + ...ry_v1_device_state_installed_apps_state.ex | 52 + ..._assistant_accessory_v1_response_config.ex | 93 + ...ssistant_accessory_v1_screen_out_config.ex | 59 + ...cessory_v1_screen_out_config_dimensions.ex | 60 + .../google_assistant_embedded_v1_alarm.ex | 72 + ..._assistant_embedded_v1_alarm_recurrence.ex | 51 + .../google_assistant_embedded_v1_alarms.ex | 57 + ...d_v1_device_model_capabilities_override.ex | 56 + ...ssistant_embedded_v1_fitness_activities.ex | 56 + ..._assistant_embedded_v1_fitness_activity.ex | 63 + ..._assistant_embedded_v1_surface_identity.ex | 54 + .../google_assistant_embedded_v1_timer.ex | 61 + .../google_assistant_embedded_v1_timers.ex | 54 + ...ntentwarehouse_v1_access_control_action.ex | 54 + ...google_cloud_contentwarehouse_v1_action.ex | 104 + ...tentwarehouse_v1_action_executor_output.ex | 58 + ...cloud_contentwarehouse_v1_action_output.ex | 57 + ...ontentwarehouse_v1_add_to_folder_action.ex | 51 + ...ntwarehouse_v1_cloud_ai_document_option.ex | 54 + ...rehouse_v1_create_document_link_request.ex | 63 + ...ntwarehouse_v1_create_document_metadata.ex | 46 + ...entwarehouse_v1_create_document_request.ex | 74 + ...ntwarehouse_v1_create_document_response.ex | 76 + ...entwarehouse_v1_custom_weights_metadata.ex | 58 + ..._contentwarehouse_v1_data_update_action.ex | 51 + ...tentwarehouse_v1_data_validation_action.ex | 51 + ...oud_contentwarehouse_v1_date_time_array.ex | 51 + ...tentwarehouse_v1_date_time_type_options.ex | 46 + ...tentwarehouse_v1_delete_document_action.ex | 51 + ...rehouse_v1_delete_document_link_request.ex | 55 + ...entwarehouse_v1_delete_document_request.ex | 55 + ...ogle_cloud_contentwarehouse_v1_document.ex | 119 + ...cloud_contentwarehouse_v1_document_link.ex | 81 + ...loud_contentwarehouse_v1_document_query.ex | 111 + ..._contentwarehouse_v1_document_reference.ex | 75 + ...oud_contentwarehouse_v1_document_schema.ex | 78 + ...le_cloud_contentwarehouse_v1_enum_array.ex | 51 + ...d_contentwarehouse_v1_enum_type_options.ex | 54 + ...le_cloud_contentwarehouse_v1_enum_value.ex | 51 + ...tentwarehouse_v1_export_to_cdw_pipeline.ex | 60 + ...d_contentwarehouse_v1_fetch_acl_request.ex | 59 + ..._contentwarehouse_v1_fetch_acl_response.ex | 59 + ...ud_contentwarehouse_v1_file_type_filter.ex | 51 + ...e_cloud_contentwarehouse_v1_float_array.ex | 51 + ..._contentwarehouse_v1_float_type_options.ex | 46 + ...contentwarehouse_v1_gcs_ingest_pipeline.ex | 69 + ..._ingest_with_doc_ai_processors_pipeline.ex | 87 + ...ontentwarehouse_v1_get_document_request.ex | 55 + ...oud_contentwarehouse_v1_histogram_query.ex | 63 + ...v1_histogram_query_property_name_filter.ex | 59 + ...tentwarehouse_v1_histogram_query_result.ex | 54 + ...tentwarehouse_v1_ingest_pipeline_config.ex | 60 + ...warehouse_v1_initialize_project_request.ex | 63 + ...arehouse_v1_initialize_project_response.ex | 54 + ...cloud_contentwarehouse_v1_integer_array.ex | 51 + ...ontentwarehouse_v1_integer_type_options.ex | 46 + ..._cloud_contentwarehouse_v1_invalid_rule.ex | 54 + ...house_v1_list_document_schemas_response.ex | 64 + ...arehouse_v1_list_linked_sources_request.ex | 62 + ...rehouse_v1_list_linked_sources_response.ex | 62 + ...arehouse_v1_list_linked_targets_request.ex | 55 + ...rehouse_v1_list_linked_targets_response.ex | 62 + ...entwarehouse_v1_list_rule_sets_response.ex | 60 + ...warehouse_v1_list_synonym_sets_response.ex | 60 + ...ntentwarehouse_v1_lock_document_request.ex | 58 + ..._cloud_contentwarehouse_v1_map_property.ex | 59 + ...ud_contentwarehouse_v1_map_type_options.ex | 46 + ...ontentwarehouse_v1_merge_fields_options.ex | 54 + ...rehouse_v1_process_with_doc_ai_pipeline.ex | 66 + ...loud_contentwarehouse_v1_processor_info.ex | 57 + ...loud_contentwarehouse_v1_project_status.ex | 66 + ...ogle_cloud_contentwarehouse_v1_property.ex | 111 + ...loud_contentwarehouse_v1_property_array.ex | 56 + ...contentwarehouse_v1_property_definition.ex | 151 + ...se_v1_property_definition_schema_source.ex | 56 + ...oud_contentwarehouse_v1_property_filter.ex | 54 + ...ntentwarehouse_v1_property_type_options.ex | 58 + ...loud_contentwarehouse_v1_publish_action.ex | 54 + ...gle_cloud_contentwarehouse_v1_qa_result.ex | 62 + ...contentwarehouse_v1_qa_result_highlight.ex | 54 + ...twarehouse_v1_remove_from_folder_action.ex | 54 + ...ud_contentwarehouse_v1_request_metadata.ex | 52 + ...d_contentwarehouse_v1_response_metadata.ex | 51 + .../google_cloud_contentwarehouse_v1_rule.ex | 64 + ...d_contentwarehouse_v1_rule_actions_pair.ex | 62 + ..._contentwarehouse_v1_rule_engine_output.ex | 67 + ...ntentwarehouse_v1_rule_evaluator_output.ex | 72 + ...ogle_cloud_contentwarehouse_v1_rule_set.ex | 66 + ...ntentwarehouse_v1_run_pipeline_metadata.ex | 98 + ...etadata_export_to_cdw_pipeline_metadata.ex | 59 + ...e_metadata_gcs_ingest_pipeline_metadata.ex | 53 + ...ine_metadata_individual_document_status.ex | 56 + ...a_process_with_doc_ai_pipeline_metadata.ex | 61 + ...ontentwarehouse_v1_run_pipeline_request.ex | 88 + ...ntwarehouse_v1_search_documents_request.ex | 97 + ...twarehouse_v1_search_documents_response.ex | 88 + ...ch_documents_response_matching_document.ex | 64 + ...oud_contentwarehouse_v1_set_acl_request.ex | 62 + ...ud_contentwarehouse_v1_set_acl_response.ex | 59 + ...e_cloud_contentwarehouse_v1_synonym_set.ex | 65 + ...contentwarehouse_v1_synonym_set_synonym.ex | 51 + ...le_cloud_contentwarehouse_v1_text_array.ex | 51 + ...d_contentwarehouse_v1_text_type_options.ex | 46 + ...e_cloud_contentwarehouse_v1_time_filter.ex | 54 + ...oud_contentwarehouse_v1_timestamp_array.ex | 58 + ...tentwarehouse_v1_timestamp_type_options.ex | 46 + ...oud_contentwarehouse_v1_timestamp_value.ex | 54 + ...ntwarehouse_v1_update_document_metadata.ex | 46 + ...entwarehouse_v1_update_document_request.ex | 76 + ...ntwarehouse_v1_update_document_response.ex | 68 + ...house_v1_update_document_schema_request.ex | 57 + ...loud_contentwarehouse_v1_update_options.ex | 62 + ...entwarehouse_v1_update_rule_set_request.ex | 52 + ...gle_cloud_contentwarehouse_v1_user_info.ex | 54 + .../google_cloud_contentwarehouse_v1_value.ex | 74 + ...ntwarehouse_v1_weighted_schema_property.ex | 54 + ...ehouse_v1beta1_create_document_metadata.ex | 48 + ...use_v1beta1_initialize_project_response.ex | 56 + ...ehouse_v1beta1_update_document_metadata.ex | 48 + .../google_cloud_documentai_v1_barcode.ex | 52 + ...oogle_cloud_documentai_v1_bounding_poly.ex | 61 + .../google_cloud_documentai_v1_document.ex | 126 + ...gle_cloud_documentai_v1_document_entity.ex | 109 + ...tai_v1_document_entity_normalized_value.ex | 72 + ..._documentai_v1_document_entity_relation.ex | 57 + ...oogle_cloud_documentai_v1_document_page.ex | 196 + ...loud_documentai_v1_document_page_anchor.ex | 58 + ...mentai_v1_document_page_anchor_page_ref.ex | 65 + ...cloud_documentai_v1_document_page_block.ex | 72 + ...entai_v1_document_page_detected_barcode.ex | 58 + ...ntai_v1_document_page_detected_language.ex | 54 + ...d_documentai_v1_document_page_dimension.ex | 57 + ..._documentai_v1_document_page_form_field.ex | 104 + ...cloud_documentai_v1_document_page_image.ex | 60 + ...i_v1_document_page_image_quality_scores.ex | 63 + ...ge_image_quality_scores_detected_defect.ex | 56 + ...loud_documentai_v1_document_page_layout.ex | 67 + ..._cloud_documentai_v1_document_page_line.ex | 72 + ...loud_documentai_v1_document_page_matrix.ex | 60 + ...d_documentai_v1_document_page_paragraph.ex | 72 + ...loud_documentai_v1_document_page_symbol.ex | 64 + ...cloud_documentai_v1_document_page_table.ex | 94 + ...entai_v1_document_page_table_table_cell.ex | 72 + ...mentai_v1_document_page_table_table_row.ex | 58 + ...cloud_documentai_v1_document_page_token.ex | 88 + ...i_v1_document_page_token_detected_break.ex | 51 + ...entai_v1_document_page_token_style_info.ex | 93 + ...umentai_v1_document_page_visual_element.ex | 68 + ...cloud_documentai_v1_document_provenance.ex | 69 + ...ocumentai_v1_document_provenance_parent.ex | 57 + ...e_cloud_documentai_v1_document_revision.ex | 75 + ...entai_v1_document_revision_human_review.ex | 54 + ...cloud_documentai_v1_document_shard_info.ex | 57 + ...ogle_cloud_documentai_v1_document_style.ex | 84 + ..._documentai_v1_document_style_font_size.ex | 54 + ...loud_documentai_v1_document_text_anchor.ex | 62 + ...ai_v1_document_text_anchor_text_segment.ex | 54 + ...loud_documentai_v1_document_text_change.ex | 70 + ...e_cloud_documentai_v1_normalized_vertex.ex | 54 + .../google_cloud_documentai_v1_vertex.ex | 49 + .../v1/model/google_iam_v1_audit_config.ex | 54 + .../model/google_iam_v1_audit_log_config.ex | 49 + .../v1/model/google_iam_v1_binding.ex | 52 + .../v1/model/google_iam_v1_policy.ex | 57 + ..._apps_waldo_v1alpha_availability_period.ex | 57 + ...ternal_apps_waldo_v1alpha_calendar_busy.ex | 60 + ...rnal_apps_waldo_v1alpha_custom_location.ex | 57 + ...ernal_apps_waldo_v1alpha_do_not_disturb.ex | 57 + ...ternal_apps_waldo_v1alpha_home_location.ex | 46 + ..._internal_apps_waldo_v1alpha_in_meeting.ex | 63 + ...le_internal_apps_waldo_v1alpha_inactive.ex | 46 + ...l_apps_waldo_v1alpha_local_time_context.ex | 51 + ...rnal_apps_waldo_v1alpha_office_location.ex | 60 + ...ternal_apps_waldo_v1alpha_out_of_office.ex | 57 + ...pps_waldo_v1alpha_outside_working_hours.ex | 51 + ..._internal_apps_waldo_v1alpha_time_range.ex | 54 + ...ldo_v1alpha_upcoming_commitment_context.ex | 58 + ...apps_waldo_v1alpha_upcoming_ooo_context.ex | 54 + ..._apps_waldo_v1alpha_user_availabilities.ex | 70 + ...al_apps_waldo_v1alpha_user_availability.ex | 67 + ...nternal_apps_waldo_v1alpha_user_context.ex | 80 + ...ternal_apps_waldo_v1alpha_user_location.ex | 71 + ...internal_apps_waldo_v1alpha_user_status.ex | 91 + ...waldo_v1alpha_working_elsewhere_context.ex | 55 + ...ternal_apps_waldo_v1alpha_working_hours.ex | 58 + ...l_communications_instantmessaging_v1_id.ex | 73 + ...tions_instantmessaging_v1_location_hint.ex | 56 + .../v1/model/google_longrunning_operation.ex | 58 + .../v1/model/google_protobuf_empty.ex | 41 + .../v1/model/google_rpc_status.ex | 52 + .../v1/model/google_type_color.ex | 55 + .../v1/model/google_type_date.ex | 52 + .../v1/model/google_type_date_time.ex | 70 + .../v1/model/google_type_expr.ex | 55 + .../v1/model/google_type_interval.ex | 49 + .../v1/model/google_type_lat_lng.ex | 49 + .../v1/model/google_type_money.ex | 52 + .../v1/model/google_type_postal_address.ex | 76 + .../v1/model/google_type_time_of_day.ex | 55 + .../v1/model/google_type_time_zone.ex | 49 + .../v1/model/groups_per_doc_data.ex | 55 + .../v1/model/home_graph_common_route.ex | 55 + .../model/home_graph_common_routing_table.ex | 50 + .../home_graph_common_trait_routing_hints.ex | 49 + ...it_headless_proto_anon_timing_stat_pair.ex | 54 + .../htmlrender_webkit_headless_proto_box.ex | 55 + ...er_webkit_headless_proto_chromium_trace.ex | 51 + ...webkit_headless_proto_console_log_entry.ex | 75 + ...htmlrender_webkit_headless_proto_cookie.ex | 69 + ...mlrender_webkit_headless_proto_document.ex | 161 + ..._webkit_headless_proto_dom_storage_item.ex | 57 + ...der_webkit_headless_proto_dom_tree_node.ex | 93 + ..._headless_proto_dom_tree_node_attribute.ex | 57 + ...ebkit_headless_proto_frame_resize_event.ex | 65 + .../htmlrender_webkit_headless_proto_image.ex | 61 + ...ebkit_headless_proto_initial_load_event.ex | 51 + ...ebkit_headless_proto_modal_dialog_event.ex | 60 + ...htmlrender_webkit_headless_proto_offset.ex | 51 + ...er_webkit_headless_proto_partial_render.ex | 71 + .../htmlrender_webkit_headless_proto_pdf.ex | 46 + ...lrender_webkit_headless_proto_rectangle.ex | 64 + ...er_webkit_headless_proto_redirect_event.ex | 66 + ...nder_webkit_headless_proto_redirect_hop.ex | 54 + ...bkit_headless_proto_referenced_resource.ex | 154 + ..._proto_referenced_resource_fetch_timing.ex | 59 + ...s_proto_referenced_resource_http_header.ex | 56 + ...nder_webkit_headless_proto_render_event.ex | 94 + ..._headless_proto_render_extension_result.ex | 62 + ...r_webkit_headless_proto_render_response.ex | 152 + ...nder_webkit_headless_proto_render_stats.ex | 117 + ...kit_headless_proto_render_stats_counter.ex | 54 + ..._webkit_headless_proto_render_tree_node.ex | 76 + ..._proto_render_tree_node_inline_text_box.ex | 56 + ...mlrender_webkit_headless_proto_resource.ex | 95 + ...kit_headless_proto_resource_http_header.ex | 54 + ...ebkit_headless_proto_script_stack_frame.ex | 60 + .../htmlrender_webkit_headless_proto_style.ex | 239 ++ ...t_headless_proto_web_kit_fetch_metadata.ex | 54 + ...webkit_headless_proto_window_open_event.ex | 60 + .../model/i18n_phonenumbers_phone_number.ex | 67 + .../v1/model/image_base_thumbnail_metadata.ex | 82 + .../image_base_video_preview_metadata.ex | 82 + .../v1/model/image_content_flow_proto_prod.ex | 50 + .../v1/model/image_content_query_boost.ex | 50 + .../image_content_query_boost_query_boost.ex | 49 + .../image_content_starburst_version_group.ex | 61 + .../content_warehouse/v1/model/image_data.ex | 406 ++ .../v1/model/image_data_multibang_entities.ex | 53 + ...ata_multibang_entities_multibang_entity.ex | 54 + .../v1/model/image_data_thumbnail.ex | 61 + ...image_data_vertical_indexing_info_image.ex | 48 + .../v1/model/image_exact_boost.ex | 46 + .../v1/model/image_exact_boost_nav_query.ex | 61 + .../image_exif_image_embedded_metadata.ex | 235 + .../v1/model/image_exif_iptc_metadata.ex | 139 + .../model/image_exif_iptc_metadata_artwork.ex | 46 + .../image_exif_iptc_metadata_contact_info.ex | 67 + .../image_exif_iptc_metadata_location.ex | 61 + .../image_exif_iptc_metadata_location_info.ex | 61 + ..._monetization_featured_image_properties.ex | 51 + .../v1/model/image_moosedog_crawl_state.ex | 76 + ...image_mustang_image_link_selection_info.ex | 48 + .../v1/model/image_mustang_shopping_offer.ex | 49 + .../v1/model/image_per_doc_data.ex | 58 + .../v1/model/image_porn_debug_info.ex | 46 + ...lity_sensitive_media_or_people_entities.ex | 54 + .../v1/model/image_regions_image_region.ex | 81 + .../v1/model/image_regions_image_regions.ex | 74 + ..._repository_amarna_cloud_speech_signals.ex | 87 + .../image_repository_amarna_signals_blob.ex | 47 + ...age_repository_amarna_signals_blob_info.ex | 54 + .../model/image_repository_amarna_status.ex | 49 + ...e_repository_animated_image_perdoc_data.ex | 59 + ...e_repository_api_itag_specific_metadata.ex | 66 + .../v1/model/image_repository_api_xtag.ex | 49 + .../model/image_repository_api_xtag_list.ex | 46 + ...repository_content_based_video_metadata.ex | 264 ++ .../image_repository_crawl_status_info.ex | 49 + ...pository_deep_image_engagingness_output.ex | 51 + .../image_repository_file_truncation_info.ex | 49 + .../image_repository_frame_identifier.ex | 70 + ...rame_identifier_multi_thumbnail_variant.ex | 46 + ...e_identifier_preview_frame_zero_variant.ex | 54 + ...tory_frame_identifier_thumbnail_variant.ex | 46 + .../v1/model/image_repository_frame_perdoc.ex | 53 + .../model/image_repository_frame_perdocs.ex | 50 + ...pository_language_identification_result.ex | 57 + .../v1/model/image_repository_nima_output.ex | 46 + ...ge_repository_s3_lang_id_debugging_info.ex | 66 + .../image_repository_s3_lang_id_signals.ex | 84 + ...ository_s3_recognizer_metadata_response.ex | 57 + ...repository_shopping_product_information.ex | 59 + ...opping_product_information_bounding_box.ex | 60 + ...ory_shopping_product_information_entity.ex | 54 + ...product_information_product_information.ex | 97 + ...rmation_product_information_token_group.ex | 56 + ...ation_versioned_product_information_set.ex | 69 + ...pository_speech_recognition_alternative.ex | 57 + ...ge_repository_speech_recognition_result.ex | 68 + .../image_repository_unwanted_content.ex | 49 + .../image_repository_venom_processing_info.ex | 52 + .../v1/model/image_repository_venom_status.ex | 83 + .../image_repository_video_indexing_info.ex | 51 + ...age_repository_video_link_indexing_info.ex | 55 + ...epository_video_previews_debugging_info.ex | 54 + ...repository_video_previews_video_preview.ex | 68 + .../image_repository_video_properties.ex | 92 + ...properties_vertical_indexing_info_video.ex | 51 + .../v1/model/image_repository_word_info.ex | 58 + ...ge_repository_youtube_processing_filter.ex | 51 + ...afesearch_content_brain_porn_annotation.ex | 90 + ...image_safesearch_content_ocr_annotation.ex | 69 + ...arch_content_offensive_symbol_detection.ex | 58 + ...fesearch_content_offensive_symbol_match.ex | 54 + .../model/image_search_image_indexing_info.ex | 66 + .../model/image_search_image_license_info.ex | 79 + .../image_search_image_selection_info.ex | 53 + .../image_search_unindexed_image_link.ex | 54 + ...image_understanding_indexing_annotation.ex | 69 + ...understanding_indexing_annotation_group.ex | 56 + .../image_understanding_indexing_feature.ex | 61 + ...age_understanding_indexing_image_region.ex | 62 + .../image_understanding_indexing_label.ex | 61 + ...mage_understanding_indexing_label_group.ex | 59 + .../image_understanding_indexing_meta_data.ex | 54 + .../v1/model/indexing_bad_ssl_certificate.ex | 50 + ...xing_converter_localized_alternate_name.ex | 75 + .../indexing_converter_raw_redirect_info.ex | 60 + .../indexing_converter_redirect_chain.ex | 50 + .../indexing_converter_redirect_chain_hop.ex | 53 + .../indexing_converter_redirect_params.ex | 61 + .../indexing_converter_rich_content_data.ex | 51 + ...exing_converter_rich_content_data_range.ex | 66 + .../model/indexing_converter_robots_info.ex | 85 + .../indexing_converter_shingle_fingerprint.ex | 51 + ..._crawler_id_serving_document_identifier.ex | 57 + ...exing_docjoiner_anchor_phrase_spam_info.ex | 75 + .../indexing_docjoiner_anchor_spam_info.ex | 115 + .../indexing_docjoiner_anchor_statistics.ex | 227 + ...cjoiner_anchor_statistics_per_dup_stats.ex | 69 + ...anchor_statistics_redundant_anchor_info.ex | 57 + ...cs_redundant_anchor_info_for_phrase_cap.ex | 56 + .../indexing_docjoiner_anchor_trusted_info.ex | 63 + .../indexing_docjoiner_c_doc_build_info.ex | 46 + .../model/indexing_docjoiner_data_version.ex | 3765 +++++++++++++++++ ...ing_docjoiner_data_version_version_info.ex | 57 + ...exing_docjoiner_serving_time_cluster_id.ex | 57 + ...xing_docjoiner_serving_time_cluster_ids.ex | 56 + ..._localized_alternate_names_locale_entry.ex | 66 + ...dexing_dups_localized_localized_cluster.ex | 115 + ...ups_localized_localized_cluster_cluster.ex | 69 + ...calized_cluster_link_based_cluster_info.ex | 83 + ...uster_link_based_cluster_info_link_data.ex | 59 + ...ter_link_based_cluster_info_link_member.ex | 59 + ...localized_localized_cluster_target_link.ex | 77 + ...ized_localized_cluster_target_link_link.ex | 66 + ...target_link_link_annotation_source_info.ex | 62 + ..._localized_cluster_target_link_metadata.ex | 54 + ...ized_localized_cluster_target_link_sets.ex | 69 + ...zed_cluster_target_link_target_doc_data.ex | 73 + ..._embedded_content_embedded_content_info.ex | 127 + ...ng_embedded_content_embedded_links_info.ex | 72 + ...indexing_embedded_content_embedder_info.ex | 52 + ...exing_embedded_content_fetch_host_count.ex | 65 + ...bedded_content_fetch_host_count_counter.ex | 54 + ...ded_content_fetch_url_response_metadata.ex | 78 + .../indexing_embedded_content_link_info.ex | 109 + ...ed_content_output_generation_timestamps.ex | 54 + ...ndexing_embedded_content_page_size_info.ex | 60 + ...ing_embedded_content_render_cache_stats.ex | 63 + ...ent_render_request_config_config_params.ex | 51 + ..._embedded_content_rendering_fetch_stats.ex | 56 + ...edded_content_rendering_output_metadata.ex | 141 + ...exing_embedded_content_selection_result.ex | 54 + .../indexing_ml_vertical_vertical_item.ex | 55 + ...terstitials_proto_desktop_interstitials.ex | 73 + ...als_proto_desktop_interstitials_details.ex | 61 + ...rstitials_proto_interstitial_basic_info.ex | 61 + .../indexing_mobile_volt_core_web_vitals.ex | 55 + .../indexing_mobile_volt_volt_per_doc_data.ex | 57 + ...xing_privacy_access_access_requirements.ex | 51 + ...ignal_aggregator_adaptive_interval_data.ex | 78 + ...l_aggregator_age_weighted_coverage_data.ex | 135 + ...xing_signal_aggregator_aggregated_score.ex | 132 + ...unning_mean_and_variance_internal_state.ex | 59 + .../indexing_signal_aggregator_scc_data.ex | 51 + .../indexing_signal_aggregator_scc_signal.ex | 64 + ...g_signal_aggregator_url_pattern_signals.ex | 92 + ...egator_url_pattern_signals_prior_signal.ex | 58 + .../indexing_signal_aggregator_url_score.ex | 64 + ...indexing_speech_speech_properties_proto.ex | 72 + ...ng_url_pattern_url_tree_big_tree_branch.ex | 58 + ...dexing_url_pattern_url_tree_url_feature.ex | 60 + ...exing_url_pattern_url_tree_url_features.ex | 56 + .../indexing_url_pattern_url_tree_url_tree.ex | 86 + ...rl_pattern_url_tree_url_tree_debug_info.ex | 51 + ...exing_url_pattern_url_tree_url_tree_key.ex | 54 + ...xing_url_pattern_url_tree_url_tree_node.ex | 77 + ...videos_asr_transcript_repair_annotation.ex | 57 + .../v1/model/kaltix_per_doc_data.ex | 52 + .../v1/model/ke_governance_typed_regions.ex | 49 + .../v1/model/knowledge_answers_any_type.ex | 54 + .../model/knowledge_answers_attribute_type.ex | 61 + .../model/knowledge_answers_boolean_type.ex | 54 + .../knowledge_answers_collection_type.ex | 58 + .../model/knowledge_answers_compound_type.ex | 54 + .../model/knowledge_answers_container_type.ex | 46 + .../v1/model/knowledge_answers_date_type.ex | 97 + .../knowledge_answers_dependency_type.ex | 68 + ...e_answers_dialog_referential_resolution.ex | 54 + .../model/knowledge_answers_duration_type.ex | 58 + .../v1/model/knowledge_answers_entity_type.ex | 80 + .../knowledge_answers_intent_modifiers.ex | 67 + ...s_intent_query_annotation_layer_signals.ex | 105 + ...knowledge_answers_intent_query_arg_path.ex | 55 + ...answers_intent_query_arg_path_component.ex | 54 + ...knowledge_answers_intent_query_argument.ex | 81 + ...nswers_intent_query_argument_provenance.ex | 119 + ..._argument_provenance_attentional_entity.ex | 60 + ...query_argument_provenance_current_query.ex | 67 + ...t_provenance_injected_contextual_schema.ex | 48 + ...nt_provenance_neural_location_annotator.ex | 48 + ...uery_argument_provenance_previous_query.ex | 93 + ...argument_provenance_previous_query_role.ex | 56 + ...nt_provenance_previous_response_meaning.ex | 48 + ...argument_provenance_previous_task_state.ex | 87 + ...ance_previous_task_state_list_candidate.ex | 53 + ...vious_task_state_previous_function_call.ex | 48 + ...query_argument_provenance_query_anaphor.ex | 58 + ...argument_provenance_search_answer_value.ex | 62 + ...e_answers_intent_query_argument_signals.ex | 357 ++ ...dge_answers_intent_query_argument_value.ex | 291 ++ ...e_answers_intent_query_attribute_signal.ex | 54 + ...wers_intent_query_collection_membership.ex | 68 + ...e_answers_intent_query_collection_score.ex | 54 + ...ledge_answers_intent_query_concept_info.ex | 51 + ...ge_answers_intent_query_concept_signals.ex | 51 + ...wledge_answers_intent_query_coreference.ex | 52 + ...hicle_action_argument_annotator_signals.ex | 53 + ...ntent_query_freetext_annotation_signals.ex | 46 + ...edge_answers_intent_query_function_call.ex | 128 + ...wers_intent_query_function_call_signals.ex | 242 ++ ..._answers_intent_query_grounding_signals.ex | 84 + ...owledge_answers_intent_query_identifier.ex | 54 + ...dge_answers_intent_query_implied_entity.ex | 71 + ...rs_intent_query_indexing_iql_attachment.ex | 60 + ...swers_intent_query_local_result_signals.ex | 56 + ...edge_answers_intent_query_local_signals.ex | 62 + ...s_intent_query_location_markers_signals.ex | 51 + ...swers_intent_query_media_entity_signals.ex | 54 + ...edge_answers_intent_query_munin_signals.ex | 57 + ..._intent_query_nimble_annotation_signals.ex | 57 + ...rs_intent_query_ntpr_annotation_signals.ex | 46 + ...tent_query_on_device_annotation_signals.ex | 51 + ...ge_answers_intent_query_parsing_signals.ex | 63 + ...ge_answers_intent_query_personal_entity.ex | 78 + ...ery_personal_entity_entity_relationship.ex | 56 + ...rs_intent_query_qref_annotation_signals.ex | 54 + ...nswers_intent_query_relatedness_signals.ex | 54 + ..._meaning_signals_answers_header_signals.ex | 56 + ...eaning_signals_response_meaning_signals.ex | 67 + ...ledge_answers_intent_query_saft_signals.ex | 60 + ...ntent_query_semantic_annotation_signals.ex | 70 + ...ery_semantic_annotation_signals_feature.ex | 56 + ...nt_query_sensitive_argument_value_guard.ex | 58 + ...ledge_answers_intent_query_shopping_ids.ex | 78 + ...intent_query_shopping_ids_measure_value.ex | 54 + ...uery_signal_computation_fallback_intent.ex | 53 + ...ledge_answers_intent_query_simple_value.ex | 69 + ...s_intent_query_support_transfer_signals.ex | 54 + ...ery_teleport_argument_annotator_signals.ex | 48 + .../knowledge_answers_intent_query_token.ex | 74 + ...edge_answers_intent_query_token_synonym.ex | 54 + .../knowledge_answers_intent_query_tokens.ex | 54 + .../model/knowledge_answers_intersect_type.ex | 46 + .../v1/model/knowledge_answers_marker.ex | 64 + .../model/knowledge_answers_marker_command.ex | 41 + .../knowledge_answers_marker_open_question.ex | 52 + ...knowledge_answers_marker_polar_question.ex | 43 + ...owledge_answers_marker_state_of_affairs.ex | 46 + .../knowledge_answers_meaning_schema_key.ex | 49 + ...owledge_answers_meaning_schema_slot_key.ex | 54 + .../knowledge_answers_measurement_type.ex | 54 + ...nowledge_answers_normalized_string_type.ex | 62 + .../v1/model/knowledge_answers_number_type.ex | 64 + .../knowledge_answers_opaque_aog_type.ex | 41 + ...edge_answers_opaque_app_annotation_type.ex | 46 + .../knowledge_answers_opaque_audio_type.ex | 41 + ...edge_answers_opaque_calendar_event_type.ex | 46 + ...wers_opaque_calendar_event_wrapper_type.ex | 46 + ..._answers_opaque_calendar_reference_type.ex | 46 + ...ers_opaque_complex_queries_rewrite_type.ex | 46 + ...s_opaque_component_reference_index_type.ex | 46 + ...knowledge_answers_opaque_device_id_type.ex | 43 + .../knowledge_answers_opaque_device_type.ex | 41 + ...nswers_opaque_device_user_identity_type.ex | 46 + ...wers_opaque_home_automation_device_type.ex | 46 + .../knowledge_answers_opaque_location_type.ex | 43 + .../knowledge_answers_opaque_media_type.ex | 41 + ...nswers_opaque_message_notification_type.ex | 46 + .../knowledge_answers_opaque_money_type.ex | 41 + ...ledge_answers_opaque_news_provider_type.ex | 46 + ...knowledge_answers_opaque_on_device_type.ex | 43 + .../knowledge_answers_opaque_person_type.ex | 41 + ...paque_personal_intelligence_entity_type.ex | 46 + ...wers_opaque_productivity_list_item_type.ex | 46 + ...nowledge_answers_opaque_recurrence_type.ex | 46 + .../knowledge_answers_opaque_reminder_type.ex | 43 + ...e_answers_opaque_shopping_merchant_type.ex | 46 + ...edge_answers_opaque_shopping_offer_type.ex | 46 + ...opaque_shopping_product_expression_type.ex | 46 + ...ge_answers_opaque_shopping_product_type.ex | 46 + ...edge_answers_opaque_shopping_store_type.ex | 46 + .../knowledge_answers_opaque_timer_type.ex | 41 + .../v1/model/knowledge_answers_opaque_type.ex | 242 ++ .../knowledge_answers_plexity_requirement.ex | 59 + .../knowledge_answers_polar_question_type.ex | 54 + .../knowledge_answers_range_constraint.ex | 54 + ...answers_range_constraint_range_endpoint.ex | 54 + .../v1/model/knowledge_answers_same_type.ex | 46 + .../model/knowledge_answers_semantic_type.ex | 87 + ...nswers_sensitivity_argument_eval_policy.ex | 60 + ...owledge_answers_sensitivity_instruction.ex | 82 + ...nswers_sensitivity_instruction_argument.ex | 70 + ..._answers_sensitivity_instruction_intent.ex | 76 + ..._sensitivity_instruction_previous_query.ex | 62 + ..._answers_sensitivity_intent_eval_policy.ex | 65 + ...edge_answers_sensitivity_logging_policy.ex | 54 + ..._answers_sensitivity_my_activity_policy.ex | 54 + ...owledge_answers_sensitivity_sensitivity.ex | 69 + ...edge_answers_sensitivity_serving_policy.ex | 51 + ...edge_answers_sensitivity_storage_policy.ex | 60 + ...knowledge_answers_state_of_affairs_type.ex | 56 + .../v1/model/knowledge_answers_string_type.ex | 57 + .../model/knowledge_answers_time_zone_type.ex | 54 + .../knowledge_answers_tracking_number_type.ex | 56 + .../v1/model/knowledge_answers_union_type.ex | 46 + .../v1/model/knowledge_answers_value_type.ex | 146 + .../model/knowledge_graph_date_time_proto.ex | 67 + .../v1/model/knowledge_graph_nested_struct.ex | 51 + ...edge_graph_nested_struct_predicate_objs.ex | 54 + .../v1/model/knowledge_graph_qualifier.ex | 49 + .../v1/model/knowledge_graph_qualifier_set.ex | 47 + .../v1/model/knowledge_graph_triple.ex | 72 + .../v1/model/knowledge_graph_triple_obj.ex | 85 + .../model/knowledge_graph_triple_obj_proto.ex | 49 + .../knowledge_graph_triple_provenance.ex | 90 + ...s_weather_proto_user_specified_location.ex | 63 + .../v1/model/legal_citation.ex | 62 + .../v1/model/legal_citation_court_document.ex | 108 + .../legal_citation_court_document_court.ex | 66 + ...ion_court_document_court_name_component.ex | 54 + ...al_citation_court_document_opinion_info.ex | 60 + ...citation_court_document_per_docket_info.ex | 66 + .../legal_citation_court_document_pub.ex | 58 + ...al_citation_court_document_unknown_date.ex | 54 + .../v1/model/legal_citation_law.ex | 59 + .../legal_citation_law_collection_name.ex | 49 + .../v1/model/legal_citation_law_level.ex | 64 + .../content_warehouse/v1/model/legal_date.ex | 52 + .../v1/model/legal_person.ex | 52 + ...iscovery_style_aesthetics_score_signals.ex | 54 + .../lens_discovery_style_bounding_box.ex | 55 + .../lens_discovery_style_person_attributes.ex | 80 + ...son_attributes_person_visibility_scores.ex | 65 + ...ity_scores_person_visibility_prediction.ex | 56 + ...iscovery_style_person_detection_signals.ex | 63 + ...erson_detection_signals_detected_person.ex | 52 + ...iscovery_style_style_image_type_signals.ex | 63 + ...ype_signals_style_image_type_prediction.ex | 56 + .../v1/model/list_snippet_response.ex | 55 + .../v1/model/list_snippet_response_row.ex | 46 + .../v1/model/local_www_info.ex | 87 + .../v1/model/local_www_info_address.ex | 55 + .../v1/model/local_www_info_cluster.ex | 112 + .../v1/model/local_www_info_opening_hours.ex | 49 + .../v1/model/local_www_info_phone.ex | 49 + .../v1/model/local_www_info_wrapptor_item.ex | 52 + .../v1/model/localsearch_chain_id.ex | 52 + .../v1/model/localsearch_doc_info.ex | 41 + ..._internal_food_ordering_action_metadata.ex | 85 + ..._action_metadata_available_partner_info.ex | 56 + ...d_ordering_action_metadata_service_info.ex | 74 + ...to_indexing_crawler_id_crawler_id_proto.ex | 63 + ...ation_intent_query_entity_link_metadata.ex | 66 + ...rpretation_intent_query_link_kind_flags.ex | 69 + ...erpretation_intent_query_link_kind_info.ex | 62 + ...tion_intent_query_support_transfer_rule.ex | 74 + ...intent_query_webref_entity_relationship.ex | 66 + .../v1/model/long_structured_snippet.ex | 46 + .../v1/model/long_structured_snippet_entry.ex | 49 + ...ontact_information_shortcut_information.ex | 51 + .../model/maps_quality_special_words_flags.ex | 106 + .../model/maps_quality_special_words_proto.ex | 64 + .../v1/model/media_index_boundingbox.ex | 58 + .../v1/model/media_index_entity_field.ex | 55 + .../v1/model/media_index_frame_identifier.ex | 54 + ...e_identifier_preview_frame_zero_variant.ex | 54 + .../v1/model/media_index_region.ex | 85 + .../model/media_index_sparse_float_vector.ex | 61 + .../v1/model/media_index_video_centroid.ex | 50 + ...media_index_video_centroid_domain_score.ex | 54 + .../model/media_index_video_core_signals.ex | 49 + .../v1/model/media_index_video_frame.ex | 62 + .../v1/model/media_index_video_frames.ex | 46 + .../v1/model/media_index_xtag.ex | 49 + .../v1/model/media_index_xtag_list.ex | 46 + .../v1/model/mobile_per_doc_data.ex | 52 + .../v1/model/multiscale_field_presence.ex | 49 + .../v1/model/multiscale_layer_presence.ex | 49 + .../v1/model/multiscale_pointer_index.ex | 46 + .../v1/model/multiscale_pointer_span.ex | 49 + ...ng_repos_www_snippets_candidate_feature.ex | 54 + ..._snippets_organic_list_snippet_response.ex | 66 + ...ng_repos_www_snippets_snippet_candidate.ex | 64 + ..._www_snippets_snippets_ranklab_features.ex | 108 + .../model/mustang_snippets_rendered_token.ex | 58 + .../net_fabric_rpc_virtual_network_id.ex | 46 + ...lp_meaning_component_specific_contracts.ex | 51 + .../model/nlp_meaning_meaning_remodeling.ex | 49 + .../nlp_meaning_meaning_remodeling_control.ex | 48 + .../model/nlp_meaning_meaning_remodelings.ex | 50 + ..._type_name_component_specific_contracts.ex | 58 + ..._semantic_type_name_meaning_remodelings.ex | 55 + .../v1/model/nlp_saft_annotated_phrase.ex | 49 + .../v1/model/nlp_saft_constituency_node.ex | 52 + .../v1/model/nlp_saft_document.ex | 156 + .../v1/model/nlp_saft_document_topic.ex | 49 + .../v1/model/nlp_saft_entity.ex | 79 + .../v1/model/nlp_saft_entity_profile.ex | 122 + .../nlp_saft_entity_profile_alternate.ex | 61 + .../nlp_saft_entity_profile_attribute.ex | 67 + .../model/nlp_saft_entity_profile_keyword.ex | 58 + .../nlp_saft_entity_profile_reference.ex | 49 + .../model/nlp_saft_entity_profile_related.ex | 70 + .../v1/model/nlp_saft_entity_type.ex | 58 + .../v1/model/nlp_saft_hyperlink.ex | 58 + .../v1/model/nlp_saft_identifier.ex | 49 + .../v1/model/nlp_saft_labeled_span.ex | 64 + .../v1/model/nlp_saft_labeled_spans.ex | 46 + .../v1/model/nlp_saft_measure.ex | 64 + .../v1/model/nlp_saft_mention.ex | 67 + .../v1/model/nlp_saft_mention_resolution.ex | 49 + .../v1/model/nlp_saft_morphology.ex | 46 + .../v1/model/nlp_saft_phrase.ex | 55 + .../v1/model/nlp_saft_referent.ex | 64 + .../v1/model/nlp_saft_relation.ex | 70 + .../v1/model/nlp_saft_relation_mention.ex | 58 + .../v1/model/nlp_saft_semantic_node.ex | 79 + .../v1/model/nlp_saft_semantic_node_arc.ex | 58 + .../v1/model/nlp_saft_token.ex | 88 + .../v1/model/nlp_sciencelit_article_data.ex | 96 + .../v1/model/nlp_sciencelit_article_id.ex | 49 + .../model/nlp_sciencelit_article_metadata.ex | 109 + .../v1/model/nlp_sciencelit_author.ex | 49 + .../v1/model/nlp_sciencelit_citation_data.ex | 65 + .../v1/model/nlp_sciencelit_dataset.ex | 53 + .../v1/model/nlp_sciencelit_mesh_heading.ex | 55 + .../v1/model/nlp_sciencelit_pub_date.ex | 49 + .../model/nlp_sciencelit_publication_type.ex | 49 + .../model/nlp_sciencelit_referenced_block.ex | 55 + ...lit_retrieval_query_encoding_debug_info.ex | 54 + ...elit_retrieval_search_result_debug_info.ex | 69 + ..._retrieval_search_result_set_debug_info.ex | 59 + ...sciencelit_retrieval_snippet_debug_info.ex | 72 + .../model/nlp_sciencelit_subject_heading.ex | 52 + .../v1/model/nlp_sciencelit_tokenized_text.ex | 49 + ...p_semantic_parsing_annotation_eval_data.ex | 69 + .../nlp_semantic_parsing_app_annotation.ex | 46 + ...p_semantic_parsing_date_time_annotation.ex | 75 + ...tic_parsing_datetime_absolute_date_time.ex | 124 + ...nlp_semantic_parsing_datetime_date_time.ex | 109 + ...tic_parsing_datetime_date_time_property.ex | 95 + .../nlp_semantic_parsing_datetime_duration.ex | 59 + .../nlp_semantic_parsing_datetime_event.ex | 60 + ...ing_datetime_fetched_relative_date_time.ex | 79 + .../nlp_semantic_parsing_datetime_holiday.ex | 46 + ...mantic_parsing_datetime_moon_event_info.ex | 54 + ...tic_parsing_datetime_non_gregorian_date.ex | 63 + .../nlp_semantic_parsing_datetime_quantity.ex | 67 + .../nlp_semantic_parsing_datetime_range.ex | 107 + ...nlp_semantic_parsing_datetime_recurrent.ex | 134 + ...tic_parsing_datetime_relative_date_time.ex | 70 + ..._parsing_datetime_resolution_properties.ex | 62 + ...ing_datetime_shifted_relative_date_time.ex | 75 + .../nlp_semantic_parsing_datetime_span.ex | 52 + ...mantic_parsing_datetime_target_to_fetch.ex | 72 + ...nlp_semantic_parsing_datetime_time_zone.ex | 48 + ...nlp_semantic_parsing_entity_source_data.ex | 48 + .../nlp_semantic_parsing_expression_status.ex | 51 + .../nlp_semantic_parsing_local_amenities.ex | 46 + ...p_semantic_parsing_local_basic_location.ex | 56 + ...lp_semantic_parsing_local_business_type.ex | 162 + ...c_parsing_local_chain_member_constraint.ex | 51 + ...emantic_parsing_local_compound_location.ex | 59 + ...semantic_parsing_local_contact_location.ex | 63 + ...mantic_parsing_local_cuisine_constraint.ex | 51 + ...v_charging_station_connector_constraint.ex | 53 + ..._ev_charging_station_payment_constraint.ex | 53 + ...al_ev_charging_station_speed_constraint.ex | 51 + .../nlp_semantic_parsing_local_extent.ex | 58 + ..._semantic_parsing_local_gcid_constraint.ex | 51 + ...rsing_local_health_insurance_constraint.ex | 51 + .../nlp_semantic_parsing_local_hotel_type.ex | 184 + ...antic_parsing_local_hyper_reliable_data.ex | 70 + ..._hyper_reliable_data_gcid_syns_override.ex | 56 + ...c_parsing_local_implicit_local_category.ex | 84 + .../nlp_semantic_parsing_local_joiner.ex | 61 + ..._semantic_parsing_local_local_result_id.ex | 63 + .../nlp_semantic_parsing_local_location.ex | 111 + ...antic_parsing_local_location_constraint.ex | 178 + ...semantic_parsing_local_location_element.ex | 159 + .../nlp_semantic_parsing_local_menu_item.ex | 46 + ...semantic_parsing_local_price_constraint.ex | 69 + ...mantic_parsing_local_quality_constraint.ex | 64 + ..._semantic_parsing_local_room_constraint.ex | 54 + ...mantic_parsing_local_scalable_attribute.ex | 51 + ...mantic_parsing_local_service_constraint.ex | 51 + ...nlp_semantic_parsing_local_star_ratings.ex | 81 + ...emantic_parsing_local_vicinity_location.ex | 57 + ..._parsing_local_visit_history_constraint.ex | 51 + ...parsing_models_communication_phone_type.ex | 64 + ..._parsing_models_communication_recipient.ex | 100 + ...els_communication_relationship_argument.ex | 59 + .../nlp_semantic_parsing_models_device.ex | 50 + ...nlp_semantic_parsing_models_device_name.ex | 52 + ...odels_dialog_referents_dialog_referents.ex | 94 + ..._models_dialog_referents_list_selection.ex | 64 + ...mantic_parsing_models_media_album_title.ex | 81 + ...nlp_semantic_parsing_models_media_audio.ex | 155 + ...tic_parsing_models_media_audiobook_info.ex | 60 + .../nlp_semantic_parsing_models_media_book.ex | 67 + ...ing_models_media_cast_device_annotation.ex | 75 + .../nlp_semantic_parsing_models_media_cost.ex | 49 + ...ntic_parsing_models_media_deeplink_info.ex | 113 + ..._models_media_deeplink_info_time_window.ex | 54 + ...mantic_parsing_models_media_description.ex | 55 + ...parsing_models_media_episode_constraint.ex | 73 + ...semantic_parsing_models_media_frequency.ex | 54 + .../nlp_semantic_parsing_models_media_game.ex | 56 + ...ntic_parsing_models_media_generic_music.ex | 69 + ...p_semantic_parsing_models_media_lat_lng.ex | 51 + ...c_parsing_models_media_media_annotation.ex | 134 + ...sing_models_media_media_annotation_list.ex | 58 + ...arsing_models_media_media_provider_info.ex | 71 + ...nlp_semantic_parsing_models_media_movie.ex | 81 + ...antic_parsing_models_media_music_artist.ex | 75 + ...mantic_parsing_models_media_music_genre.ex | 69 + ...tic_parsing_models_media_music_playlist.ex | 78 + ...semantic_parsing_models_media_news_info.ex | 60 + ...emantic_parsing_models_media_news_topic.ex | 55 + ..._parsing_models_media_paid_offer_detail.ex | 59 + ...p_semantic_parsing_models_media_podcast.ex | 64 + ...antic_parsing_models_media_podcast_info.ex | 69 + ..._parsing_models_media_provider_metadata.ex | 54 + ...ntic_parsing_models_media_purchase_info.ex | 54 + ...tic_parsing_models_media_quantification.ex | 54 + ...nlp_semantic_parsing_models_media_radio.ex | 78 + ...emantic_parsing_models_media_radio_info.ex | 60 + ...ntic_parsing_models_media_radio_network.ex | 66 + ...mantic_parsing_models_media_rental_info.ex | 60 + ..._parsing_models_media_season_constraint.ex | 61 + .../nlp_semantic_parsing_models_media_song.ex | 76 + ...p_semantic_parsing_models_media_tv_show.ex | 78 + ...ing_models_media_you_tube_deeplink_info.ex | 54 + ...ing_models_media_you_tube_playlist_info.ex | 54 + ..._semantic_parsing_models_money_currency.ex | 51 + ...nlp_semantic_parsing_models_money_money.ex | 52 + ...ing_models_narrative_news_news_provider.ex | 59 + .../nlp_semantic_parsing_models_on_device.ex | 50 + ...p_semantic_parsing_models_person_person.ex | 94 + .../nlp_semantic_parsing_models_recurrence.ex | 112 + ...parsing_models_recurrence_daily_pattern.ex | 56 + ...rsing_models_recurrence_monthly_pattern.ex | 63 + ...arsing_models_recurrence_recurrence_end.ex | 70 + ...sing_models_recurrence_recurrence_start.ex | 58 + ...arsing_models_recurrence_weekly_pattern.ex | 57 + ...arsing_models_recurrence_yearly_pattern.ex | 59 + ..._models_shopping_assistant_brand_phrase.ex | 54 + ...sing_models_shopping_assistant_merchant.ex | 77 + ...g_assistant_merchant_merchant_center_id.ex | 62 + ...parsing_models_shopping_assistant_offer.ex | 80 + ...arsing_models_shopping_assistant_phrase.ex | 80 + ...rsing_models_shopping_assistant_product.ex | 75 + ...opping_assistant_product_classification.ex | 62 + ...s_shopping_assistant_product_expression.ex | 89 + ...hopping_assistant_product_media_product.ex | 94 + ...uct_media_product_media_attribute_value.ex | 56 + ...odels_shopping_assistant_product_phrase.ex | 59 + ...pping_assistant_shopping_list_item_info.ex | 56 + ...parsing_models_shopping_assistant_store.ex | 58 + ..._shopping_assistant_unrecognized_phrase.ex | 53 + ...semantic_parsing_number_fraction_number.ex | 65 + .../nlp_semantic_parsing_number_number.ex | 78 + ...p_semantic_parsing_number_simple_number.ex | 69 + ...ic_parsing_personal_intelligence_entity.ex | 63 + ...c_parsing_personal_reference_annotation.ex | 60 + ...arsing_proto_actions_on_google_aog_slot.ex | 88 + ...rsing_proto_actions_on_google_date_time.ex | 66 + ...to_actions_on_google_date_time_property.ex | 54 + ...rsing_proto_actions_on_google_slot_list.ex | 58 + ...arsing_proto_actions_on_google_slot_map.ex | 59 + ...sing_proto_actions_on_google_slot_value.ex | 59 + ...tions_on_google_slot_value_single_value.ex | 69 + ...ing_proto_actions_on_google_typed_value.ex | 66 + .../nlp_semantic_parsing_q_ref_annotation.ex | 226 + ..._q_ref_annotation_collection_membership.ex | 54 + ...ng_q_ref_annotation_entity_relationship.ex | 60 + ...g_q_ref_annotation_merlot_category_data.ex | 54 + ...ic_parsing_q_ref_annotation_sub_cluster.ex | 57 + .../nlp_semantic_parsing_related_entity.ex | 64 + .../nlp_semantic_parsing_saft_coreference.ex | 52 + .../nlp_semantic_parsing_saft_measure.ex | 52 + ...emantic_parsing_saft_mention_annotation.ex | 61 + .../model/nlp_semantic_parsing_saft_span.ex | 49 + .../v1/model/nlx_data_schema_byte.ex | 46 + .../v1/model/nlx_data_schema_character.ex | 58 + .../v1/model/nlx_data_schema_document.ex | 79 + .../v1/model/nlx_data_schema_entity.ex | 55 + .../v1/model/nlx_data_schema_language_span.ex | 55 + .../v1/model/nlx_data_schema_mention.ex | 64 + .../v1/model/nlx_data_schema_paragraph.ex | 61 + .../v1/model/nlx_data_schema_scale_set.ex | 406 ++ .../v1/model/nlx_data_schema_sentence.ex | 61 + .../v1/model/nlx_data_schema_token.ex | 74 + .../nlx_data_schema_token_dependency_edge.ex | 49 + .../v1/model/nsr_versioned_item.ex | 49 + ...ean_data_docinfo_woodwing_item_metadata.ex | 60 + .../v1/model/ocean_doc_info.ex | 46 + .../v1/model/ocean_doc_tag.ex | 195 + .../v1/model/ocean_doc_tag_book_specific.ex | 77 + ...n_doc_tag_book_specific_numbering_range.ex | 60 + .../model/ocean_doc_tag_catalog_specific.ex | 52 + .../v1/model/ocean_doc_tag_contributor.ex | 49 + .../model/ocean_doc_tag_magazine_specific.ex | 92 + .../model/ocean_doc_tag_newspaper_specific.ex | 61 + .../v1/model/ocean_doc_tag_patent_specific.ex | 76 + .../v1/model/ocean_doc_tag_work_cluster.ex | 49 + .../v1/model/ocean_ge_money.ex | 49 + .../v1/model/ocean_ge_price.ex | 46 + .../v1/model/ocean_ge_price_locale.ex | 52 + .../v1/model/ocean_image_size.ex | 49 + .../v1/model/ocean_locale_viewability.ex | 120 + .../model/ocean_locale_viewability_dates.ex | 46 + ...ocean_locale_viewability_source_details.ex | 48 + .../v1/model/ocean_per_doc_data.ex | 58 + .../v1/model/ocean_volume_access_rights.ex | 85 + .../ocean_volume_computed_access_rights.ex | 52 + .../v1/model/ocean_volume_display_details.ex | 46 + .../v1/model/ocean_volume_imprint.ex | 134 + .../v1/model/ocean_volume_viewability.ex | 62 + .../model/ocean_volume_viewability_locale.ex | 52 + .../v1/model/ocr_photo_bounding_box.ex | 61 + .../v1/model/ocr_photo_curve.ex | 46 + .../v1/model/ocr_photo_curve_point.ex | 49 + .../v1/model/ocr_photo_curved_bounding_box.ex | 52 + .../v1/model/ocr_photo_text_box.ex | 58 + .../v1/model/official_pages_official_key.ex | 52 + .../v1/model/official_pages_query_set.ex | 50 + .../v1/model/orion_doc_entities_proto.ex | 49 + .../v1/model/pairwise_q_scoring_data.ex | 49 + .../v1/model/pairwise_q_versioned_item.ex | 52 + ...estack_flexorgs_proto_internal_external.ex | 62 + ...gs_proto_internal_external_state_status.ex | 54 + .../v1/model/per_doc_data.ex | 525 +++ .../v1/model/per_doc_debug_event.ex | 55 + .../personalization_maps_alias_alias_id.ex | 49 + .../model/personalization_maps_alias_icon.ex | 80 + ...overy_local_discovery_settings_metadata.ex | 62 + ...oto_local_discovery_opa_recipes_context.ex | 56 + .../v1/model/phil_per_doc_data.ex | 49 + .../v1/model/photos_animation_metadata.ex | 52 + .../v1/model/photos_dynamic_depth_metadata.ex | 41 + .../v1/model/photos_four_c_metadata.ex | 55 + .../v1/model/photos_g_depth_metadata.ex | 64 + .../v1/model/photos_hdr_metadata.ex | 46 + .../v1/model/photos_hdr_metadata_gainmap.ex | 52 + .../v1/model/photos_image_metadata.ex | 982 +++++ .../v1/model/photos_panorama_metadata.ex | 49 + ...n_groundtruthdb_normalized_bounding_box.ex | 60 + .../photos_vision_objectrec_feature_vector.ex | 48 + .../photos_vision_objectrec_geo_location.ex | 64 + .../photos_vision_objectrec_global_feature.ex | 68 + .../photos_vision_objectrec_image_template.ex | 104 + ...vision_objectrec_image_template_sub_set.ex | 66 + ...hotos_vision_objectrec_local_descriptor.ex | 82 + .../photos_vision_objectrec_matrix2_d.ex | 55 + ...sion_objectrec_quantized_feature_vector.ex | 54 + .../v1/model/photos_vision_objectrec_roi.ex | 55 + .../v1/model/porn_flag_data.ex | 113 + .../v1/model/postal_address.ex | 103 + .../v1/model/precomputed_restricts.ex | 46 + .../v1/model/premium_per_doc_data.ex | 64 + .../v1/model/proto2_bridge_message_set.ex | 41 + .../v1/model/pseudo_video_data.ex | 67 + .../v1/model/pseudo_video_data_transcript.ex | 54 + .../pseudo_video_data_transcript_timestamp.ex | 54 + .../v1/model/ptoken_p_token.ex | 41 + .../v1/model/quality_actions_app_info.ex | 76 + .../quality_actions_app_info_source_data.ex | 79 + ...info_source_data_allow_list_source_data.ex | 54 + ..._source_data_media_provider_source_data.ex | 54 + ...lity_actions_app_understanding_category.ex | 54 + ...quality_actions_customized_notification.ex | 74 + ..._actions_customized_notification_button.ex | 59 + ...actions_customized_notification_payload.ex | 51 + ...y_actions_news_provider_annotation_data.ex | 58 + ..._news_provider_annotation_data_provider.ex | 63 + .../v1/model/quality_actions_reminder.ex | 162 + .../quality_actions_reminder_document.ex | 41 + ...quality_actions_reminder_dynamite_group.ex | 43 + .../quality_actions_reminder_location.ex | 86 + ...actions_reminder_location_category_info.ex | 54 + ...ty_actions_reminder_location_chain_info.ex | 57 + .../model/quality_actions_reminder_person.ex | 58 + ...uality_actions_reminder_recurrence_info.ex | 60 + .../v1/model/quality_actions_ringtone.ex | 49 + .../v1/model/quality_actions_room.ex | 49 + .../v1/model/quality_actions_timer.ex | 117 + ...thority_topic_embeddings_versioned_item.ex | 63 + .../v1/model/quality_calypso_apps_link.ex | 46 + ...alypso_apps_universal_au_live_op_detail.ex | 100 + ...calypso_apps_universal_au_live_op_event.ex | 57 + ...alypso_apps_universal_au_live_op_format.ex | 78 + ..._apps_universal_au_live_ops_detail_info.ex | 62 + .../quality_calypso_apps_universal_image.ex | 52 + ...ality_calypso_apps_universal_image_data.ex | 64 + .../quality_copia_firefly_site_signal.ex | 88 + .../quality_dialog_manager_external_ids.ex | 66 + ...ity_dialog_manager_local_intent_options.ex | 51 + .../quality_dialog_manager_local_result.ex | 124 + ...ity_dialog_manager_reminder_client_type.ex | 51 + .../quality_dni_doc_preview_restrictions.ex | 96 + .../quality_dni_extended_news_previews.ex | 55 + ..._fringe_fringe_query_prior_per_doc_data.ex | 84 + ..._queries_complex_queries_output_rewrite.ex | 66 + ...s_complex_queries_output_rewrite_entity.ex | 56 + ...uality_geo_brainloc_brainloc_attachment.ex | 75 + .../model/quality_labels_google_label_data.ex | 50 + .../quality_labels_google_label_data_label.ex | 73 + ...labels_google_label_data_label_provider.ex | 63 + .../quality_navboost_craps_aging_data.ex | 74 + ...boost_craps_aging_data_aging_age_bucket.ex | 54 + ...lity_navboost_craps_craps_click_signals.ex | 78 + .../quality_navboost_craps_craps_data.ex | 141 + .../quality_navboost_craps_craps_device.ex | 52 + ...ality_navboost_craps_feature_craps_data.ex | 72 + ...navboost_craps_stats_with_weights_proto.ex | 93 + ...avboost_glue_voter_token_bitmap_message.ex | 54 + .../quality_nsr_experimental_nsr_team_data.ex | 53 + ...sr_experimental_nsr_team_scoring_signal.ex | 69 + ...lity_nsr_experimental_nsr_team_wsj_data.ex | 58 + .../v1/model/quality_nsr_nsr_chunks_proto.ex | 49 + ...quality_nsr_nsr_chunks_with_source_info.ex | 49 + .../v1/model/quality_nsr_nsr_data.ex | 227 + .../quality_nsr_nsr_data_cluster_uplift.ex | 49 + .../v1/model/quality_nsr_nsr_data_metadata.ex | 81 + .../model/quality_nsr_nsr_versioned_data.ex | 49 + .../v1/model/quality_nsr_pq_data.ex | 97 + .../quality_nsr_pq_data_subchunk_data.ex | 55 + .../quality_nsr_versioned_float_signal.ex | 49 + ...it_asteroid_belt_document_intent_scores.ex | 76 + ...orbit_asteroid_belt_image_intent_scores.ex | 54 + .../model/quality_orbit_orbit_image_intent.ex | 55 + .../quality_orbit_orbit_image_intents.ex | 57 + .../quality_preview_chosen_snippet_info.ex | 73 + ...preview_chosen_snippet_info_tidbit_info.ex | 63 + .../model/quality_preview_ranklab_snippet.ex | 109 + .../v1/model/quality_preview_ranklab_title.ex | 223 + .../quality_preview_snippet_brain_features.ex | 51 + ...ality_preview_snippet_document_features.ex | 69 + ...y_preview_snippet_experimental_features.ex | 64 + ...uality_preview_snippet_quality_features.ex | 69 + .../quality_preview_snippet_query_features.ex | 60 + ...ew_snippet_query_term_coverage_features.ex | 57 + ...quality_preview_snippet_radish_features.ex | 69 + .../quality_product_product_site_data.ex | 51 + ...y_product_product_site_data_locale_data.ex | 57 + .../v1/model/quality_prose_cse_url_info.ex | 46 + .../quality_qrewrite_account_provenance.ex | 62 + ...write_account_provenance_google_account.ex | 60 + ..._account_provenance_third_party_account.ex | 54 + .../quality_qrewrite_alternative_name_info.ex | 59 + .../quality_qrewrite_calendar_reference.ex | 72 + .../quality_qrewrite_contact_calendar_name.ex | 49 + .../quality_qrewrite_family_calendar_alias.ex | 48 + .../quality_qrewrite_personal_contact_data.ex | 162 + ...quality_qrewrite_primary_calendar_alias.ex | 43 + ...te_account_aware_calendar_alias_wrapper.ex | 46 + ...ality_qrewrite_relationship_memory_data.ex | 55 + ...nkembed_mustang_mustang_rank_embed_info.ex | 76 + ...ng_rank_embed_info_compressed_embedding.ex | 56 + ...pps_protos_launch_app_info_per_doc_data.ex | 58 + ...apps_protos_launchable_app_per_doc_data.ex | 57 + ...ality_salient_countries_salient_country.ex | 54 + ...y_salient_countries_salient_country_set.ex | 63 + .../model/quality_salient_terms_doc_data.ex | 64 + .../quality_salient_terms_salient_term.ex | 76 + .../quality_salient_terms_salient_term_set.ex | 58 + .../quality_salient_terms_signal_data.ex | 70 + .../quality_salient_terms_signal_term_data.ex | 94 + .../model/quality_sherlock_knex_annotation.ex | 50 + .../quality_sherlock_knex_annotation_item.ex | 58 + .../quality_shopping_shopping_attachment.ex | 110 + ...ity_shopping_shopping_attachment_locale.ex | 54 + ...ng_shopping_attachment_moka_facet_value.ex | 57 + ...lity_shopping_shopping_attachment_offer.ex | 120 + ...ty_shopping_shopping_attachment_p_block.ex | 93 + ..._shopping_attachment_p_block_image_info.ex | 54 + ...ty_shopping_shopping_attachment_product.ex | 131 + .../quality_sitemap_breadcrumb_target.ex | 50 + .../quality_sitemap_breadcrumb_target_doc.ex | 52 + .../model/quality_sitemap_co_click_target.ex | 51 + .../quality_sitemap_co_click_target_doc.ex | 60 + ..._co_click_target_doc_co_click_by_locale.ex | 60 + .../model/quality_sitemap_scoring_signals.ex | 97 + .../v1/model/quality_sitemap_subresult.ex | 55 + .../model/quality_sitemap_subresult_list.ex | 47 + .../v1/model/quality_sitemap_target.ex | 85 + .../v1/model/quality_sitemap_target_group.ex | 95 + ...rty_carousels_list_item_muppet_metadata.ex | 51 + .../v1/model/quality_sitemap_top_url.ex | 49 + .../model/quality_sitemap_two_level_target.ex | 54 + ...nippets_truncation_snippet_bolded_range.ex | 70 + ...runcation_snippet_bolded_range_position.ex | 54 + .../quality_timebased_date_unreliability.ex | 58 + ...ality_timebased_last_significant_update.ex | 70 + ...sed_last_significant_update_adjustments.ex | 63 + .../v1/model/quality_timebased_page_type.ex | 52 + ...ty_timebased_petacat_date_unreliability.ex | 69 + .../model/quality_timebased_syntactic_date.ex | 89 + ...ity_timebased_syntactic_date_date_range.ex | 54 + ...ality_timebased_syntactic_date_position.ex | 54 + .../model/quality_travel_good_sites_data.ex | 81 + .../quality_travel_good_sites_data_i18n.ex | 49 + .../quality_travel_good_sites_data_signal.ex | 49 + ...ity_vidya_video_language_video_language.ex | 54 + .../quality_views_extraction_cluster_info.ex | 63 + ...ality_webanswers_transcript_annotations.ex | 58 + ...webanswers_video_transcript_annotations.ex | 91 + ...ou_tube_caption_timing_info_annotations.ex | 69 + ...aption_timing_info_annotations_instance.ex | 62 + .../v1/model/registration_info.ex | 49 + .../model/repository_annotations_geo_topic.ex | 86 + .../repository_annotations_geo_topicality.ex | 52 + ...sitory_annotations_geo_topicality_score.ex | 54 + ...s_mustang_sentiment_snippet_annotations.ex | 72 + ...repository_annotations_rdfa_breadcrumbs.ex | 59 + .../repository_annotations_rdfa_crumb.ex | 49 + ...ons_rdfa_rdfa_rich_snippets_application.ex | 255 ++ ...rich_snippets_application_app_type_data.ex | 53 + ...rich_snippets_application_country_price.ex | 59 + ...ts_application_localized_trusted_genome.ex | 61 + ...dfa_rdfa_rich_snippets_application_rank.ex | 65 + ...dfa_rich_snippets_application_rank_data.ex | 65 + ...ry_webref_aggregated_entity_name_scores.ex | 55 + .../model/repository_webref_anchor_indices.ex | 46 + ...pository_webref_annotated_category_info.ex | 54 + ...repository_webref_annotation_debug_info.ex | 48 + .../repository_webref_annotation_ratings.ex | 49 + ...sitory_webref_annotation_stats_per_type.ex | 69 + ...tory_webref_annotator_checkpoint_fprint.ex | 54 + .../repository_webref_annotator_profile.ex | 62 + ...repository_webref_book_edition_metadata.ex | 51 + .../repository_webref_bootstrapping_score.ex | 48 + .../repository_webref_category_annotation.ex | 76 + ...webref_category_annotation_browsy_topic.ex | 51 + ...bref_category_annotation_hit_cat_source.ex | 57 + ...ef_category_annotation_shopping_signals.ex | 51 + .../model/repository_webref_category_info.ex | 94 + .../repository_webref_cluster_metadata.ex | 53 + ...tory_webref_cluster_proto_mid_list_rule.ex | 54 + ...ef_cluster_proto_mid_list_rule_instance.ex | 55 + ...tory_webref_cluster_proto_relation_rule.ex | 51 + ...ef_cluster_proto_relation_rule_instance.ex | 58 + ...tory_webref_cluster_proto_rule_instance.ex | 66 + ...tory_webref_compact_flat_property_value.ex | 62 + ...sitory_webref_compact_kg_property_value.ex | 66 + .../repository_webref_compact_kg_topic.ex | 55 + .../repository_webref_compact_kg_value.ex | 77 + .../repository_webref_component_reference.ex | 54 + ...repository_webref_concept_name_metadata.ex | 48 + ...epository_webref_detailed_entity_scores.ex | 80 + ...pository_webref_detailed_mention_scores.ex | 51 + .../model/repository_webref_display_info.ex | 50 + .../model/repository_webref_display_name.ex | 52 + ...tory_webref_doc_level_relevance_ratings.ex | 56 + .../repository_webref_document_metadata.ex | 78 + ...y_webref_domain_specific_representation.ex | 51 + .../repository_webref_enricher_debug_data.ex | 69 + .../repository_webref_entity_annotations.ex | 86 + .../repository_webref_entity_debug_info.ex | 58 + .../v1/model/repository_webref_entity_join.ex | 131 + .../repository_webref_entity_link_metadata.ex | 57 + .../repository_webref_entity_link_source.ex | 52 + .../repository_webref_entity_name_ratings.ex | 64 + ..._entity_name_ratings_entity_name_rating.ex | 57 + .../repository_webref_entity_name_score.ex | 135 + .../repository_webref_entity_name_source.ex | 54 + .../model/repository_webref_entity_scores.ex | 55 + .../repository_webref_explained_range_info.ex | 59 + ...ef_explained_range_info_explained_range.ex | 51 + ...itory_webref_extended_entity_name_score.ex | 57 + .../model/repository_webref_extra_metadata.ex | 127 + .../repository_webref_fatcat_category.ex | 49 + .../repository_webref_forwarding_urls.ex | 46 + ...repository_webref_fprint_modifier_proto.ex | 51 + .../model/repository_webref_freebase_type.ex | 58 + .../repository_webref_generic_indices.ex | 46 + .../repository_webref_geo_metadata_proto.ex | 90 + ...bref_geo_metadata_proto_address_synonym.ex | 57 + .../repository_webref_global_link_info.ex | 60 + .../repository_webref_global_name_info.ex | 54 + .../model/repository_webref_human_ratings.ex | 49 + .../repository_webref_image_query_indices.ex | 56 + .../repository_webref_juggernaut_indices.ex | 49 + ...repository_webref_kc_attribute_metadata.ex | 48 + .../model/repository_webref_kg_collection.ex | 49 + .../repository_webref_latent_entities.ex | 50 + .../model/repository_webref_latent_entity.ex | 52 + .../repository_webref_lexical_annotation.ex | 50 + .../model/repository_webref_lexical_range.ex | 58 + ...weight_tokens_matched_lightweight_token.ex | 71 + ...ht_tokens_per_mention_lightweight_token.ex | 61 + ...eight_tokens_per_name_lightweight_token.ex | 61 + .../v1/model/repository_webref_link_info.ex | 61 + .../repository_webref_link_kind_flags.ex | 61 + .../model/repository_webref_link_kind_info.ex | 49 + .../repository_webref_localized_string.ex | 69 + .../model/repository_webref_mdvc_metadata.ex | 68 + ...itory_webref_mdvc_metadata_per_vertical.ex | 78 + .../v1/model/repository_webref_mention.ex | 161 + ...bref_mention_additional_explained_range.ex | 60 + .../repository_webref_mention_component.ex | 55 + ...ository_webref_mention_compound_mention.ex | 59 + .../repository_webref_mention_debug_info.ex | 55 + .../repository_webref_mention_eval_info.ex | 49 + .../repository_webref_mention_ratings.ex | 63 + ...f_mention_ratings_single_mention_rating.ex | 75 + .../repository_webref_meta_tag_indices.ex | 49 + .../repository_webref_name_debug_info.ex | 60 + ...y_webref_name_debug_info_candidate_info.ex | 60 + .../v1/model/repository_webref_name_info.ex | 99 + .../v1/model/repository_webref_name_scores.ex | 61 + .../model/repository_webref_ngram_context.ex | 57 + .../model/repository_webref_ngram_mention.ex | 49 + .../v1/model/repository_webref_oyster_type.ex | 46 + ...ository_webref_per_doc_relevance_rating.ex | 79 + ...sitory_webref_per_doc_relevance_ratings.ex | 80 + ...y_webref_personalization_context_output.ex | 54 + ..._webref_personalization_context_outputs.ex | 58 + ...bref_preprocessing_name_entity_metadata.ex | 120 + ...webref_preprocessing_name_entity_scores.ex | 54 + ...bref_preprocessing_name_variant_signals.ex | 59 + ...ory_webref_preprocessing_original_names.ex | 63 + ...processing_original_names_original_name.ex | 60 + ...ref_preprocessing_url_matching_metadata.ex | 58 + ...ry_webref_preprocessing_url_source_info.ex | 54 + .../repository_webref_processor_counter.ex | 49 + .../repository_webref_processor_timing.ex | 69 + .../repository_webref_product_metadata.ex | 57 + .../model/repository_webref_query_indices.ex | 49 + .../repository_webref_range_annotations.ex | 54 + .../model/repository_webref_range_metadata.ex | 49 + ...ry_webref_refcon_document_mention_spans.ex | 55 + .../repository_webref_refcon_mention_spans.ex | 54 + .../repository_webref_refcon_query_stats.ex | 46 + ..._webref_refcon_refcon_document_metadata.ex | 52 + ...pository_webref_refcon_refcon_name_info.ex | 81 + ...repository_webref_reference_page_scores.ex | 60 + .../repository_webref_segment_mention.ex | 49 + .../repository_webref_segment_mentions.ex | 49 + .../repository_webref_semantic_date_range.ex | 61 + .../repository_webref_simplified_anchor.ex | 99 + .../repository_webref_simplified_anchors.ex | 50 + ...ository_webref_simplified_composite_doc.ex | 102 + ...sitory_webref_simplified_forwarding_dup.ex | 51 + .../repository_webref_sub_segment_index.ex | 71 + ...repository_webref_support_transfer_rule.ex | 73 + .../v1/model/repository_webref_task_data.ex | 59 + .../model/repository_webref_task_details.ex | 58 + .../repository_webref_triple_annotation.ex | 70 + .../repository_webref_triple_annotations.ex | 50 + .../model/repository_webref_triple_mention.ex | 67 + .../repository_webref_universal_ngram_data.ex | 51 + ...pository_webref_webref_annotation_stats.ex | 81 + ...itory_webref_webref_attachment_metadata.ex | 63 + .../repository_webref_webref_document_info.ex | 58 + .../repository_webref_webref_entities.ex | 108 + .../model/repository_webref_webref_entity.ex | 79 + ...sitory_webref_webref_entity_collections.ex | 55 + .../repository_webref_webref_entity_id.ex | 49 + ...itory_webref_webref_entity_relationship.ex | 58 + ...sitory_webref_webref_mustang_attachment.ex | 96 + .../repository_webref_webref_outlink_info.ex | 58 + .../repository_webref_webref_outlink_infos.ex | 52 + .../model/repository_webref_webref_status.ex | 52 + .../repository_webref_wikipedia_category.ex | 46 + .../repository_webref_wikipedia_geocode.ex | 49 + .../model/research_scam_coscam_conjunction.ex | 49 + .../model/research_scam_coscam_disjunction.ex | 54 + .../research_scam_coscam_easy_conjunction.ex | 50 + .../research_scam_coscam_easy_disjunction.ex | 54 + ...ch_scam_coscam_easy_restrict_definition.ex | 55 + ...esearch_scam_coscam_restrict_definition.ex | 67 + ...research_scam_coscam_restrict_tokens_v2.ex | 52 + .../model/research_scam_coscam_token_group.ex | 52 + .../research_scam_generic_feature_vector.ex | 118 + ...ch_scam_generic_feature_vector_crowding.ex | 51 + ...ric_feature_vector_fixed_point_metadata.ex | 51 + ..._generic_feature_vector_restrict_tokens.ex | 79 + .../model/research_scam_nearest_neighbors.ex | 73 + ...esearch_scam_nearest_neighbors_neighbor.ex | 63 + ...search_scam_neighbor_selection_override.ex | 72 + ...esearch_scam_numeric_restrict_namespace.ex | 63 + ...search_scam_online_search_latency_stats.ex | 57 + .../v1/model/research_scam_query_metadata.ex | 49 + .../v1/model/research_scam_query_response.ex | 84 + .../v1/model/research_scam_restrict_stats.ex | 49 + .../v1/model/research_scam_token_namespace.ex | 58 + .../v1/model/research_scam_v3_restrict.ex | 59 + .../model/research_science_search_catalog.ex | 55 + .../model/research_science_search_citation.ex | 50 + .../research_science_search_data_download.ex | 59 + .../research_science_search_data_size.ex | 49 + .../v1/model/research_science_search_date.ex | 49 + ...arch_science_search_field_of_study_info.ex | 60 + .../model/research_science_search_license.ex | 58 + .../model/research_science_search_location.ex | 70 + ...arch_science_search_navboost_query_info.ex | 63 + .../research_science_search_organization.ex | 58 + ...arch_science_search_reconciled_metadata.ex | 293 ++ .../model/research_science_search_replica.ex | 55 + ...search_science_search_scholarly_article.ex | 66 + ..._science_search_source_url_docjoin_info.ex | 120 + ...rce_url_docjoin_info_webref_entity_info.ex | 65 + ...rch_science_search_version_cluster_info.ex | 57 + .../v1/model/richsnippets_data_object.ex | 61 + .../richsnippets_data_object_attribute.ex | 61 + .../v1/model/richsnippets_page_map.ex | 61 + .../richsnippets_page_map_template_type.ex | 46 + .../s3_audio_language_s3_audio_language.ex | 52 + .../safesearch_image_offensive_annotation.ex | 48 + .../safesearch_internal_image_signals.ex | 60 + .../safesearch_video_classifier_output.ex | 41 + .../model/safesearch_video_content_signals.ex | 68 + ...signals_multi_label_classification_info.ex | 61 + ...ideo_content_signals_multi_label_output.ex | 63 + .../v1/model/science_citation.ex | 413 ++ .../v1/model/science_citation_access_url.ex | 55 + .../science_citation_alternate_abstract.ex | 61 + .../model/science_citation_alternate_title.ex | 55 + .../v1/model/science_citation_anchor.ex | 64 + .../v1/model/science_citation_author.ex | 79 + .../v1/model/science_citation_category.ex | 49 + .../v1/model/science_citation_download_url.ex | 169 + .../v1/model/science_citation_funding.ex | 74 + ...cience_citation_funding_extraction_info.ex | 63 + .../science_citation_reference_discussion.ex | 51 + .../v1/model/science_citation_subject.ex | 49 + .../science_citation_translated_author.ex | 70 + .../model/science_citation_union_catalog.ex | 58 + .../v1/model/science_index_signal.ex | 82 + .../v1/model/science_index_signal_author.ex | 49 + .../v1/model/science_ocean_view.ex | 50 + .../model/science_ocean_view_country_view.ex | 49 + .../v1/model/sdr_embedding.ex | 57 + .../v1/model/sdr_page_anchors_doc_info.ex | 65 + .../v1/model/sdr_page_anchors_sitelink.ex | 67 + .../sdr_page_anchors_sitelink_wrapper.ex | 61 + .../v1/model/sdr_scroll_to.ex | 59 + .../v1/model/sdr_scroll_to_on_page_matches.ex | 55 + .../search_policy_rankable_sensitivity.ex | 110 + ...rankable_sensitivity_attentional_entity.ex | 51 + ...h_policy_rankable_sensitivity_follow_on.ex | 54 + ...policy_rankable_sensitivity_fulfillment.ex | 46 + ...rankable_sensitivity_grounding_provider.ex | 46 + ...h_policy_rankable_sensitivity_prefilter.ex | 51 + ...ankable_sensitivity_query_understanding.ex | 54 + ...y_rankable_sensitivity_synthetic_intent.ex | 46 + ...edentials_all_authenticated_users_proto.ex | 46 + ...rity_credentials_cap_token_holder_proto.ex | 51 + .../model/security_credentials_chat_proto.ex | 49 + .../security_credentials_circle_proto.ex | 52 + ...urity_credentials_cloud_principal_proto.ex | 51 + ...ecurity_credentials_contact_group_proto.ex | 57 + .../security_credentials_email_owner_proto.ex | 48 + .../model/security_credentials_event_proto.ex | 49 + .../security_credentials_gaia_group_proto.ex | 46 + .../security_credentials_gaia_user_proto.ex | 46 + .../model/security_credentials_host_proto.ex | 49 + .../security_credentials_ldap_group_proto.ex | 46 + .../security_credentials_ldap_user_proto.ex | 46 + .../security_credentials_mdb_group_proto.ex | 46 + .../security_credentials_mdb_user_proto.ex | 49 + ...urity_credentials_o_auth_consumer_proto.ex | 51 + ...security_credentials_postini_user_proto.ex | 48 + .../security_credentials_principal_proto.ex | 182 + .../security_credentials_rbac_role_proto.ex | 55 + ...security_credentials_rbac_subject_proto.ex | 48 + ...ecurity_credentials_resource_role_proto.ex | 60 + ...credentials_signing_key_possessor_proto.ex | 57 + ..._credentials_simple_secret_holder_proto.ex | 53 + ...y_credentials_simple_secret_label_proto.ex | 60 + ...ity_credentials_social_graph_node_proto.ex | 54 + .../security_credentials_square_proto.ex | 49 + ...security_credentials_youtube_user_proto.ex | 48 + ...rity_credentials_zwieback_session_proto.ex | 51 + .../v1/model/sentence_boundary_annotations.ex | 55 + .../sentence_boundary_annotations_instance.ex | 72 + .../v1/model/sentiment_sentiment.ex | 54 + .../v1/model/sentiment_sentiment_behaviors.ex | 46 + .../v1/model/sentiment_sentiment_emotions.ex | 61 + .../v1/model/shingle_info_per_doc_data.ex | 49 + .../v1/model/shingle_source.ex | 52 + ...tity_shopping_annotation_inferred_image.ex | 69 + ..._annotation_inferred_image_neardup_info.ex | 56 + ...ping_annotation_offer_availability_info.ex | 53 + ...ntity_shopping_annotation_product_image.ex | 54 + ...tity_shopping_annotation_product_rating.ex | 66 + ...ity_shopping_annotation_sori_version_id.ex | 59 + .../content_warehouse/v1/model/sitemap.ex | 83 + .../v1/model/sitemap_deprecated__target.ex | 61 + .../v1/model/smartphone_per_doc_data.ex | 70 + .../model/smeared_web_landing_page_entry.ex | 49 + .../v1/model/snapshot_box.ex | 55 + .../v1/model/snapshot_image_node.ex | 52 + .../v1/model/snapshot_snapshot_document.ex | 61 + .../v1/model/snapshot_snapshot_metadata.ex | 59 + .../v1/model/snapshot_text_node.ex | 58 + .../v1/model/snippet_extra_info.ex | 77 + ...ippet_extra_info_snippet_candidate_info.ex | 110 + ...snippet_candidate_info_extended_snippet.ex | 54 + ...snippet_extra_info_snippet_scoring_info.ex | 60 + ...et_extra_info_snippets_brain_model_info.ex | 60 + ...ets_leadingtext_leading_text_annotation.ex | 65 + ...adingtext_leading_text_annotation_piece.ex | 63 + .../snippets_leadingtext_leading_text_info.ex | 64 + .../social_common_attachment_attachment.ex | 49 + .../v1/model/social_common_formatting.ex | 61 + .../v1/model/social_common_hashtag_data.ex | 46 + .../v1/model/social_common_link_data.ex | 62 + .../model/social_common_search_link_data.ex | 52 + .../v1/model/social_common_segment.ex | 66 + .../v1/model/social_common_segments.ex | 46 + .../model/social_common_user_mention_data.ex | 56 + .../social_discovery_external_entity_key.ex | 52 + .../social_graph_api_app_contact_data.ex | 49 + .../v1/model/social_graph_api_data_column.ex | 49 + ...ial_graph_api_proto_android_device_info.ex | 51 + ...ial_graph_api_proto_birthday_decoration.ex | 51 + ..._graph_api_proto_contact_create_context.ex | 55 + ...raph_api_proto_contact_deletion_context.ex | 55 + ...al_graph_api_proto_contact_edit_context.ex | 55 + ...raph_api_proto_contact_mutation_context.ex | 71 + ...graph_api_proto_contact_prompt_settings.ex | 51 + .../social_graph_api_proto_contact_state.ex | 54 + ...social_graph_api_proto_daily_recurrence.ex | 43 + ...cial_graph_api_proto_decoration_overlay.ex | 55 + ...cial_graph_api_proto_delegated_group_id.ex | 48 + ...ial_graph_api_proto_display_name_source.ex | 51 + .../social_graph_api_proto_host_app_info.ex | 46 + .../social_graph_api_proto_image_reference.ex | 49 + ...api_proto_limited_profile_name_settings.ex | 58 + ..._proto_limited_profile_picture_settings.ex | 51 + ...raph_api_proto_limited_profile_settings.ex | 82 + ..._graph_api_proto_monthly_day_recurrence.ex | 54 + ...cial_graph_api_proto_monthly_recurrence.ex | 62 + ...ph_api_proto_monthly_weekday_recurrence.ex | 54 + ...proto_name_pronunciation_audio_metadata.ex | 54 + ...al_graph_api_proto_notification_trigger.ex | 55 + ...al_graph_api_proto_partial_name_options.ex | 68 + ...oto_partial_name_options_name_part_spec.ex | 63 + ...l_name_options_parsed_display_name_spec.ex | 71 + ...partial_name_options_two_part_name_spec.ex | 63 + .../social_graph_api_proto_photo_overlay.ex | 54 + .../v1/model/social_graph_api_proto_prompt.ex | 73 + .../social_graph_api_proto_prompt_content.ex | 46 + .../social_graph_api_proto_pronoun_data.ex | 50 + .../social_graph_api_proto_pronoun_entry.ex | 52 + .../social_graph_api_proto_pronunciation.ex | 64 + .../social_graph_api_proto_pronunciations.ex | 50 + .../social_graph_api_proto_recurrence.ex | 99 + ...aph_api_proto_recurrence_repeat_forever.ex | 46 + ...ocial_graph_api_proto_relative_position.ex | 51 + .../social_graph_api_proto_relative_scale.ex | 49 + ...ial_graph_api_proto_search_profile_data.ex | 133 + ...raph_api_proto_search_profile_education.ex | 71 + ...l_graph_api_proto_search_profile_entity.ex | 57 + ...graph_api_proto_search_profile_location.ex | 73 + ..._api_proto_search_profile_location_info.ex | 57 + ...graph_api_proto_search_profile_metadata.ex | 66 + ...ph_api_proto_search_profile_social_link.ex | 54 + ...al_graph_api_proto_search_profile_state.ex | 57 + ...raph_api_proto_search_profile_workplace.ex | 58 + ...ocial_graph_api_proto_single_recurrence.ex | 48 + .../model/social_graph_api_proto_sync_info.ex | 58 + ...social_graph_api_proto_third_party_info.ex | 49 + .../social_graph_api_proto_usage_info.ex | 49 + ...ocial_graph_api_proto_weekly_recurrence.ex | 48 + ...ocial_graph_api_proto_yearly_recurrence.ex | 55 + ..._wire_proto_peopleapi_affinity_metadata.ex | 72 + ...finity_metadata_client_interaction_info.ex | 53 + ...ffinity_metadata_cloud_device_data_info.ex | 56 + ...eapi_extension_apps_waldo_extended_data.ex | 57 + ...pleapi_extension_dynamite_extended_data.ex | 90 + ...peopleapi_extension_paisa_extended_data.ex | 54 + ...pi_extension_people_stack_extended_data.ex | 65 + ...nsion_people_stack_person_extended_data.ex | 71 + .../social_personalization_knex_annotation.ex | 53 + ...al_personalization_knex_annotation_item.ex | 78 + ...sonalization_knex_annotation_item_topic.ex | 54 + .../social_stanza_delivery_restriction.ex | 46 + .../v1/model/social_stanza_moderation_info.ex | 53 + .../model/social_stanza_stanza_restriction.ex | 79 + .../v1/model/spam_brain_data.ex | 49 + .../v1/model/spam_brain_score.ex | 49 + .../v1/model/spam_cookbook_action.ex | 46 + .../model/spam_muppetjoins_muppet_signals.ex | 55 + ...peech_s3_language_identification_result.ex | 69 + .../v1/model/speech_s3_locale.ex | 49 + .../v1/model/speech_wave_header.ex | 85 + ...e_graph_bfg_authority_feedback_metadata.ex | 46 + ...torage_graph_bfg_legal_request_metadata.ex | 48 + ...graph_bfg_livegraph_provenance_metadata.ex | 63 + .../storage_graph_bfg_lms_policy_metadata.ex | 72 + .../storage_graph_bfg_policy_metadata.ex | 93 + ...e_graph_bfg_public_information_metadata.ex | 54 + .../storage_graph_bfg_rwj_policy_metadata.ex | 46 + .../storage_graph_bfg_spii_certification.ex | 61 + .../storage_graph_bfg_triple_provenance.ex | 115 + .../storage_graph_bfg_ump_policy_metadata.ex | 53 + ...s_recommendations_podcast_recs_features.ex | 329 ++ ...ons_podcast_recs_features_user_language.ex | 56 + .../v1/model/telephone_number.ex | 58 + .../v1/model/teragoogle_document_info.ex | 78 + .../teragoogle_document_info_attachment.ex | 53 + .../model/teragoogle_document_info_section.ex | 52 + ...eragoogle_repository_attachment_options.ex | 51 + .../v1/model/title_size_params.ex | 49 + .../v1/model/tool_bar_per_doc_data.ex | 46 + .../v1/model/travel_flights_airline_config.ex | 151 + ...vel_flights_airline_config_contact_info.ex | 54 + ...hts_airline_config_country_contact_info.ex | 60 + ...flights_airline_config_green_fares_info.ex | 63 + ...s_airline_config_localized_contact_info.ex | 60 + .../travel_flights_name_catalog_entry.ex | 49 + .../travel_flights_name_catalog_proto.ex | 47 + .../v1/model/trawler_client_service_info.ex | 58 + ...awler_client_service_info_client_labels.ex | 66 + ..._info_client_labels_client_label_values.ex | 51 + .../v1/model/trawler_content_range_info.ex | 52 + .../v1/model/trawler_crawl_times.ex | 52 + .../v1/model/trawler_event.ex | 58 + .../v1/model/trawler_fetch_body_data.ex | 52 + .../v1/model/trawler_fetch_reply_data.ex | 256 ++ .../trawler_fetch_reply_data_crawl_dates.ex | 52 + ...rawler_fetch_reply_data_delivery_report.ex | 54 + .../trawler_fetch_reply_data_fetch_stats.ex | 82 + ...ply_data_fetch_stats_client_state_stats.ex | 51 + ...etch_reply_data_fetch_stats_state_stats.ex | 93 + .../trawler_fetch_reply_data_http_header.ex | 49 + ...awler_fetch_reply_data_partial_response.ex | 66 + ...wler_fetch_reply_data_protocol_response.ex | 66 + .../trawler_fetch_reply_data_redirects.ex | 97 + .../trawler_fetch_reply_data_web_io_info.ex | 49 + .../v1/model/trawler_fetch_status.ex | 49 + .../v1/model/trawler_host_bucket_data.ex | 84 + .../trawler_host_bucket_data_url_list.ex | 70 + .../model/trawler_logged_vpc_destination.ex | 49 + .../trawler_multiverse_client_identifier.ex | 49 + .../model/trawler_original_client_params.ex | 55 + .../v1/model/trawler_policy_data.ex | 49 + .../v1/model/trawler_ssl_certificate_info.ex | 73 + .../v1/model/trawler_tcpip_info.ex | 55 + .../v1/model/trawler_throttle_client_data.ex | 49 + ...rawler_trawler_private_fetch_reply_data.ex | 192 + ...rch_new_packer_knowledge_result_support.ex | 82 + ...ker_knowledge_result_support_provenance.ex | 59 + .../v1/model/url_poisoning_data.ex | 58 + .../v1/model/util_status_proto.ex | 58 + ...onsumer_proto_trusted_genome_annotation.ex | 66 + ...ng_consumer_proto_trusted_genome_entity.ex | 78 + ...consumer_proto_trusted_genome_hierarchy.ex | 66 + ...ng_consumer_proto_trusted_genome_policy.ex | 65 + ...oto_trusted_genome_policy_target_region.ex | 54 + .../video_ambisonics_ambisonics_metadata.ex | 67 + .../v1/model/video_assets_venom_acl.ex | 52 + .../v1/model/video_assets_venom_settings.ex | 41 + .../v1/model/video_assets_venom_transition.ex | 52 + .../v1/model/video_assets_venom_video_id.ex | 49 + .../v1/model/video_audio_stream.ex | 70 + .../v1/model/video_clip_info.ex | 49 + .../v1/model/video_closed_captions.ex | 46 + ...ontent_search_anchor_common_feature_set.ex | 139 + ...common_feature_set_label_span_timestamp.ex | 65 + .../video_content_search_anchor_thumbnail.ex | 64 + ...eo_content_search_anchor_thumbnail_info.ex | 64 + ...ntent_search_anchors_common_feature_set.ex | 73 + ...o_content_search_anchors_thumbnail_info.ex | 57 + .../v1/model/video_content_search_aspect.ex | 49 + .../model/video_content_search_asr_caption.ex | 55 + .../video_content_search_bleurt_features.ex | 49 + ...t_search_caption_entity_anchor_features.ex | 140 + ...arch_caption_entity_anchor_set_features.ex | 84 + ..._content_search_caption_entity_doc_info.ex | 63 + .../video_content_search_caption_info.ex | 54 + ...o_content_search_caption_label_features.ex | 76 + ...ent_search_caption_span_anchor_features.ex | 98 + ...search_caption_span_anchor_set_features.ex | 54 + ...tent_search_comment_anchor_set_features.ex | 66 + ...rch_comment_anchor_set_features_comment.ex | 70 + ...tent_search_description_anchor_features.ex | 60 + ..._search_description_anchor_set_features.ex | 57 + ...eo_content_search_description_span_info.ex | 72 + ...o_content_search_dolphin_ensemble_score.ex | 54 + .../video_content_search_dolphin_features.ex | 61 + ...o_content_search_dolphin_scoring_config.ex | 81 + ...video_content_search_entity_annotations.ex | 57 + .../video_content_search_entity_group_info.ex | 49 + ...ontent_search_frame_similarity_interval.ex | 60 + ...deo_content_search_frame_starburst_data.ex | 57 + ...t_search_generative_prediction_features.ex | 57 + ...ch_generative_topic_prediction_features.ex | 57 + ...tent_search_instruction_anchor_features.ex | 46 + ...struction_training_data_anchor_features.ex | 74 + ...deo_content_search_list_anchor_features.ex | 78 + ...content_search_list_anchor_set_features.ex | 120 + ...arch_list_training_data_anchor_features.ex | 66 + ..._search_list_training_data_set_features.ex | 70 + .../video_content_search_match_scores.ex | 54 + .../video_content_search_metric_stats.ex | 61 + ...ontent_search_multimodal_topic_features.ex | 89 + ...arch_multimodal_topic_training_features.ex | 83 + .../video_content_search_named_entity.ex | 49 + ...content_search_navboost_anchor_features.ex | 57 + .../video_content_search_ocr_asr_feature.ex | 70 + ...ideo_content_search_ocr_asr_set_feature.ex | 51 + ...scription_training_data_anchor_features.ex | 65 + ..._description_training_data_set_features.ex | 57 + .../v1/model/video_content_search_ocr_text.ex | 54 + .../video_content_search_ocr_video_feature.ex | 64 + ...t_search_on_screen_text_cluster_feature.ex | 140 + ...o_content_search_on_screen_text_feature.ex | 178 + ...tent_search_qbst_terms_overlap_features.ex | 54 + ...ideo_content_search_qna_anchor_features.ex | 111 + ..._content_search_qna_anchor_set_features.ex | 83 + ...h_rank_embed_nearest_neighbors_features.ex | 57 + .../video_content_search_saft_entity_info.ex | 64 + ...earch_shopping_opinions_anchor_features.ex | 147 + ...eo_content_search_similarity_match_info.ex | 78 + ...eo_content_search_span_dolphin_features.ex | 54 + ...ideo_content_search_span_dolphin_scores.ex | 66 + ...arch_span_dolphin_scores_span_candidate.ex | 66 + ...t_search_span_dolphin_scores_span_token.ex | 63 + ..._sports_key_moments_anchor_set_features.ex | 54 + .../video_content_search_text_match_info.ex | 73 + ...content_search_text_similarity_features.ex | 77 + .../video_content_search_token_alignment.ex | 58 + .../video_content_search_token_timing_info.ex | 55 + .../video_content_search_video_actions.ex | 49 + .../video_content_search_video_anchor.ex | 125 + ...ontent_search_video_anchor_rating_score.ex | 57 + ..._content_search_video_anchor_score_info.ex | 233 + ..._anchor_score_info_label_transformation.ex | 56 + ...nt_search_video_anchor_set_rating_score.ex | 54 + .../video_content_search_video_anchor_sets.ex | 63 + .../video_content_search_video_anchors.ex | 108 + ...content_search_video_anchors_score_info.ex | 146 + ...eo_content_search_video_common_features.ex | 61 + ...t_search_video_generated_query_features.ex | 65 + .../model/video_content_search_video_info.ex | 143 + ...video_content_search_video_introduction.ex | 54 + ..._search_video_multimodal_topic_features.ex | 56 + .../video_content_search_video_score_info.ex | 84 + .../video_content_search_visual_features.ex | 52 + ...eo_crawl_video_inline_playback_metadata.ex | 72 + .../video_do_vi_decoder_configuration.ex | 70 + .../v1/model/video_file_color_info.ex | 55 + .../model/video_file_content_light_level.ex | 49 + .../video_file_frame_packing_arrangement.ex | 64 + .../v1/model/video_file_hdr10_plus_stats.ex | 58 + .../video_file_mastering_display_metadata.ex | 81 + ...ing_display_metadata_cie1931_coordinate.ex | 54 + .../v1/model/video_file_spherical_metadata.ex | 125 + ...eo_file_spherical_metadata_cropped_area.ex | 60 + ...e_spherical_metadata_cubemap_projection.ex | 54 + ..._spherical_metadata_equirect_projection.ex | 60 + ...ideo_file_spherical_metadata_fov_bounds.ex | 57 + ...file_spherical_metadata_mesh_projection.ex | 58 + .../video_file_spherical_metadata_pose.ex | 52 + ..._file_spherical_metadata_view_direction.ex | 57 + .../v1/model/video_google_video_clip_info.ex | 49 + .../video_legos_legos_annotations_set.ex | 53 + .../video_legos_legos_annotations_sets.ex | 50 + .../v1/model/video_media_info.ex | 58 + .../v1/model/video_media_overview.ex | 126 + .../video_media_overview_audio_overview.ex | 61 + .../video_media_overview_data_overview.ex | 49 + ...media_overview_media_clip_info_overview.ex | 51 + ...ideo_media_overview_timed_text_overview.ex | 43 + .../video_media_overview_video_overview.ex | 73 + .../v1/model/video_per_doc_data.ex | 50 + ..._pipeline_viper_thumbnailer_column_data.ex | 124 + .../video_pipeline_viper_vsi_column_data.ex | 64 + ...ipeline_viper_vsi_column_data_vsi_stats.ex | 54 + .../v1/model/video_rational32.ex | 49 + .../v1/model/video_sei_message.ex | 52 + .../v1/model/video_storage_loudness_data.ex | 49 + .../v1/model/video_thumbnails_frame_file.ex | 55 + .../model/video_thumbnails_frame_file_list.ex | 47 + .../model/video_thumbnails_thumbnail_score.ex | 90 + .../model/video_timedtext_s4_ali_results.ex | 54 + .../v1/model/video_timedtext_s4_lang_score.ex | 49 + .../video_user_data_registered_itu_tt35.ex | 52 + .../v1/model/video_user_data_unregistered.ex | 52 + .../v1/model/video_video_clip_info.ex | 118 + .../v1/model/video_video_geo_location.ex | 52 + .../v1/model/video_video_stream.ex | 64 + .../v1/model/video_video_stream_info.ex | 292 ++ .../video_video_stream_info_audio_stream.ex | 110 + .../video_video_stream_info_data_stream.ex | 55 + .../model/video_video_stream_info_metadata.ex | 52 + ...eo_stream_info_metadata_lut_attachments.ex | 58 + ...am_info_metadata_lut_attachments_lut3_d.ex | 57 + ...deo_video_stream_info_timed_text_stream.ex | 57 + .../video_video_stream_info_video_stream.ex | 221 + ...stream_info_video_stream_clean_aperture.ex | 60 + ...deo_stream_info_video_stream_statistics.ex | 57 + ...s_classification_proto_smart_suggestion.ex | 60 + ...tion_proto_you_tube_comment_smart_reply.ex | 65 + ...eo_youtube_comments_ranking_ctr_metrics.ex | 66 + ...e_watch_page_language_model_predictions.ex | 66 + ...nguage_model_predictions_language_score.ex | 56 + ...age_language_watch_page_language_result.ex | 62 + .../weboftrust_live_result_doc_boost_data.ex | 49 + ...ust_live_result_provider_doc_attachment.ex | 57 + ...weboftrust_live_results_doc_attachments.ex | 63 + .../v1/model/weboftrust_time_range.ex | 49 + .../webutil_html_types_safe_html_proto.ex | 46 + ...ireless_transcoder_fetch_fetch_metadata.ex | 54 + ...less_transcoder_fetch_fetch_source_info.ex | 54 + .../v1/model/www_doc_info.ex | 268 ++ .../v1/model/www_doc_info_related_images.ex | 55 + .../v1/model/www_doc_info_thumbnail.ex | 55 + .../v1/model/www_meta_tag.ex | 49 + .../www_result_info_sub_image_doc_info.ex | 118 + .../v1/model/www_snippet_response.ex | 226 + .../model/www_snippet_response_bitmap_pb.ex | 49 + ...outube_backstage_super_vod_comment_info.ex | 63 + ...ments_api_comment_moderated_restriction.ex | 92 + ...striction_auto_mod_decision_enforcement.ex | 56 + ...comments_api_comment_restriction_issuer.ex | 69 + ...iction_issuer_channel_moderator_details.ex | 53 + ...estriction_issuer_channel_owner_details.ex | 53 + ...comments_api_comment_restriction_reason.ex | 51 + ...youtube_comments_clustering_mini_stanza.ex | 321 ++ ...ranking_you_tube_comment_text_embedding.ex | 51 + ...ou_tube_comment_text_quality_annotation.ex | 56 + .../youtube_comments_sentiment_sentiment.ex | 64 + ...t_sentiment_entity_sentiment_annotation.ex | 78 + ...annotation_mention_sentiment_annotation.ex | 65 + ...outube_discovery_legos_legos_annotation.ex | 84 + ...utube_discovery_legos_legos_annotations.ex | 56 + .../youtube_discovery_legos_legos_entity.ex | 49 + ...scovery_legos_legos_format_relationship.ex | 51 + ...covery_legos_legos_present_relationship.ex | 62 + ...overy_legos_legos_semantic_relationship.ex | 66 + ...gos_legos_semantic_relationship_context.ex | 55 + ...very_legos_legos_taxonomic_relationship.ex | 54 + .../youtube_distiller_blarney_stone_scores.ex | 66 + .../v1/model/youtube_distiller_model_score.ex | 52 + clients/content_warehouse/mix.exs | 66 + .../content_warehouse/test/test_helper.exs | 35 + 2596 files changed, 178764 insertions(+) create mode 100644 clients/content_warehouse/.gitignore create mode 100644 clients/content_warehouse/LICENSE create mode 100644 clients/content_warehouse/README.md create mode 100644 clients/content_warehouse/config/config.exs create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/api/projects.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/connection.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_abuse_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_age_restriction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_and_restriction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_client.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_cluster_evaluation_context.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_constant_restriction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_content_restriction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_evaluation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_feature.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_geo_restriction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_geo_restriction_locale.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_hash.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_manual_review_evaluation_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_manual_review_tool.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_manual_reviewer_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_name_value_pair.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_not_restriction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_or_restriction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_region.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_special_restriction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_target.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_user_notification.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_user_restriction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_verdict.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_verdict_restriction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_verdict_restriction_context.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_video_review_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_video_reviewer.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ads_shopping_reporting_offers_serialized_sori_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/anchors.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/anchors_anchor.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/anchors_anchor_source.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/anchors_redundant_anchor_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_customer_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_organization_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_organization_info_consumer_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_organization_info_customer_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_segmented_membership_count.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_segmented_membership_counts.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_activity_backend_destination_stream.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_activity_streamquality_distiller_engagements.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_name_display_options.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_photos_compare_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_photos_compare_data_diff_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_profile_editability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_profile_name_modification_history.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_account_email.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_additional_container_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_address.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_affinity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_age_range_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_app_unique_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_best_display_name.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_birthday.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_birthday_age_disable_grace_period.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_birthday_age_disable_grace_period_manual_grace_period_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_bragging_rights.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_calendar.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_caller_id_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_caller_id_extended_data_caller_id_source.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_certified_born_before.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_channel_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_circle_membership.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_client_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_communication_email.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_connection_reminder.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_create_context_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_edit_context_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_group_membership.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_prompt_settings_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_state_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_cover_photo.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_custom_schema_field.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_customer_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_deduped_container_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_delegated_group_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_device_contact_extra_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_device_contact_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_device_contact_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_edge_key_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_edge_key_info_extension_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_certificate.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_certificate_certificate_status.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_contact_group_preference.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_signup_email_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_emergency_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_event.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_external_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope_membership_acl.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope_membership_acl_circle_acl.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope_membership_acl_contact_group_acl.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope_person_acl.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_emergency_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_file_as.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_g_pay_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_gender.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_gplus_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_hangouts_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_identity_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_im.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_notification_target.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_notification_target_client_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_notification_target_originating_field.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_reachability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_reachability_reachability_key.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_interaction_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_interest.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_language.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_lat_lng.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_legacy_fields.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_limited_profile_settings_field.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_management_upchain.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_management_upchain_indirect_manager.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_maps_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_maps_profile.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_maps_profile_field_restriction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_maps_profile_url_link.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_match_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_match_info_lookup_token_match.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_membership.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_mission.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_name.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_name_pronunciation_audio_metadata_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_nickname.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_occupation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_opening_hours.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_opening_hours_endpoint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_opening_hours_period.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_organization.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_organization_assignment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_organization_project.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_other_keyword.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_attribute.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_field_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_list_with_total_number.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_metadata_scoring_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_metadata_scoring_info_st_expression_result.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_phone.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_phone_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_photo.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_photo_photo_storage_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_place_details.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_play_games_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_play_games_extended_data_achievement.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_plus_page_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_point_spec.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_posix_account.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_product_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_product_profile_failure.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_profile_owner_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_profile_url.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_pronoun.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_raw_device_contact_analytical_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_raw_device_contact_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_read_only_profile_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_read_only_profile_info_domain_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_relation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_relation_relation_details.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_relationship_interest.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_relationship_status.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_right_of_publicity_state.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_roster_details.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_roster_member.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_roster_member_count.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_search_profile.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_sip_address.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_skills.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_social_connection.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_sort_keys.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_source_identity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_ssh_public_key.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_structured_phone.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_structured_phone_phone_number.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_structured_phone_phone_number_i18n_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_structured_phone_short_code.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_tagline.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_teams_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_user_defined.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_user_visible_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_visible_to_guests.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_web_contacts_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_website.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_website_relationship_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_youtube_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_action_v2_supported_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_android_intent_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_android_intent_capabilities_android_intent_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_app_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_app_capabilities_delta.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_app_control_support.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_app_integrations_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_assistant_continued_presence_support.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_audio_input.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_audio_output.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_bluetooth_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_call_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_camera_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_camera_receiver_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_car_assistant_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_car_settings_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_cast_assistant_setting_linking_result.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_cast_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_client_op_properties_device_modify_setting_client_op_property.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_client_op_properties_provider_open_client_op_property.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_clock_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_communication_ui_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_contact_lookup_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_android_app_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_android_app_info_activity_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_android_app_info_activity_info_activity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_android_app_info_delta.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_attendee.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_meeting_contact.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_room.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_room_room_location_details.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_wrapper.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_cast_app_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_chrome_os_app_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_cloud_provider_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_cloud_provider_info_agent_style.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_device_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_device_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_device_user_identity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_color.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_device_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_device_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_character_alarm_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_funtime_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_gen_ml_alarm_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_gentle_wake_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_on_device_alarm_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_routine_alarm_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_surface_identity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_surface_version.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_home_app_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_image.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_internal_provider_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_ios_app_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_kai_os_app_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_location_coordinates.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_message_notification.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_message_notification_notification_entry.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_message_notification_person.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_provider.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_provider_delta.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_sip_provider_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_surface_identity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_surface_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_surface_version.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_web_provider_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_web_provider_info_third_party_custom_nlu_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_cross_device_execution_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_data_validate_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_date.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_date_time.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_date_time_range.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_device_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_duration.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_feature_specific_action_support.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_fitness_feature_support.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_fluid_actions_support.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_gacs_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_gcm_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_gesture_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_guest_access_output.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_immersive_canvas_support.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_jwn_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_dining.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_education.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_outdoor.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_shopping.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_text.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_translate.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_live_tv_channel_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_live_tv_channel_capabilities_channels_by_provider.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_live_tv_channel_capabilities_live_tv_channel.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_live_tv_provider.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_location_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_logging_only_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_media_control_support.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_message_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_movement_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_notification_output_restrictions.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_notification_output_restrictions_opt_out_state.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_notification_output_restrictions_opt_out_state_category_group_state.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_notification_output_restrictions_opt_out_state_category_state.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_oem_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_on_device_assistant_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_on_device_smart_home_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_on_device_storage_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_output_restrictions.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_proactive_output.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_protobuf.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_recurrence.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_screen_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_screen_capabilities_mask.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_screen_capabilities_proto_layout_version.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_screen_capabilities_resolution.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_selina_capabilites.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_ambient_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_app_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_auto_framing_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_carrier_call_device_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_communications_filter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_downtime_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_feature_filters.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_logs_opt_in.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_settings_cross_surface_availability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_supervision_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_downtime_period.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_downtime_schedule.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_duo_call_device_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_feature_filters.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_gcm_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_home_graph_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_card_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_card_settings_card_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_card_settings_you_tube_card_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_mode.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_mode_branding.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hotword_threshold_adjustment_factor.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_internal_ancillary_device_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_internal_version.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_kids_mode.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_labeled_downtime_schedule.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_linked_user.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_marketplace_disclosure.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_masquerade_mode.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_music_filter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_news_filter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_notification_profile.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_notification_profile_allo_notification_profile.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_on_device_app_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_personalization_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_podcast_filter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_polite_mode.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_reauth_trusted_device_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_reauth_trusted_device_settings_trust_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_search_filter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_speech_output_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_speech_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_tethered_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_third_party_apps_filter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_video_filter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_webview_filter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_sign_in_method.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_soda_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_software_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_speech_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_suggestions_support.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_suggestions_support_display_target_support.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_sunrise_features_support.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_client_op.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_client_op_supported_execution.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_conversation_version.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_protocol_version.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_protocol_version_message_version_pair.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_provider_types.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_surface_properties.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_surface_properties_execution_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_system_notification_restrictions.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_system_notification_restrictions_notification_category_state.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_system_notification_restrictions_notification_channel_state.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_third_party_action_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_third_party_action_config_project_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_third_party_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_time_of_day.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_time_zone.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_timestamp.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_transaction_features_support.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_volume_properties.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_app_provider_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_media_provider_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_provider_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_provider_selection_policy.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_provider_selection_result.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_provider_variant.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_device_targeting_device_targeting_error.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_alarm_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_arg_spec.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_call_call_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_client_reconnect_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_cloud_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_cloud_endpoint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_core_dismiss_assistant_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_device_action_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_device_modify_setting_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_device_take_photo_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_execution_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_execution_wait_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_inlined_action_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_int_value_spec.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_intent.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_internal_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_internal_capability_stadia_assistant_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_next_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_pause_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_play_media_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_previous_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_resume_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_show_controls_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_stop_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_option_value_spec.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_provided_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_provider_fulfill_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_provider_open_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_response_limits.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_security_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_send_chat_message_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_supported_device_ops.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_timer_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_trigger_condition.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_tts_output_capability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_understanding_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_provider_provider_signal_result.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_assistant_interaction_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_contact_grounding_provider_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_contact_affinity_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_grounding_provider_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_targeting_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_targeting_features_properties.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_targeting_features_states.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_targeting_labels.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_endpoint_grounding_provider_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_grounding_provider_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_feature.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features_binding_set.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features_communication_endpoint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features_contact.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features_provider.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_media_grounding_provider_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_podcast_grounding_provider_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_provider_grounding_provider_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_all_media_stream_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_ambiguous_target_device_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_ambiguous_target_device_log_punt_info_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_device_contact_info_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_fuzzy_ngram_match_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_google_account_provenance.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_person_metadata_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_personal_contact_data_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_phone_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_raw_device_contact_info_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_default_device_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_default_devices_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_annotation_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_info_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_media_session_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_selection_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_selection_result_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_targeting_test_code.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_input_error_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_low_confidence_target_device_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_lumos_processor_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_capabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_device_selection_decision_summary.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_focus_info_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_focuses_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_stream_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_nearby_devices_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_provider_annotation_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_query_annotation_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_reminder_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_room_annotation_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_settings_device_id_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_structure_annotation_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_target_device_log.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_pfr_device_rd_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_pfr_smart_home_intent_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_pfr_tiebreaking_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_prefulfillment_ranker_prefulfillment_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_productivity_list_item.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_reminders_attachment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_reminders_attachment_link.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_reminders_memory_payload.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_reminders_nlg_template_key.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_teleport_teleport_nickname_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_common_contact_match_signal.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_action_project_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_agent_device_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_agent_information.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_attribute.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_attributes.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_common_event_trigger.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_common_structure_based_routine.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_common_structure_based_routine_trigger.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_common_voice_trigger.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_concierge_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_device_targeting_output_query_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_home_automation__meta_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_home_automation__meta_data_supported_traits.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_home_automation_device.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_home_automation_device_item.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_matter_unique_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_physical_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_role_information.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_smart_device_management_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_smart_home_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_supported_structure_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_list_entry_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_source.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_source_client.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_source_system.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_source_user.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_semantic_role_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_spatial_properties.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_surface_form.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/biasing_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/biasing_per_doc_data2.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/biasing_per_doc_data2_biasing_field.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/biasing_per_doc_data_biasing_field.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blobstore_blob_ref.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blog_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blog_per_doc_data_outlinks.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blogsearch_conversation_node.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blogsearch_conversation_tree.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blue_ginger_client_visible_proto_blue_ginger_supported_services.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blue_ginger_client_visible_proto_blue_ginger_supported_services_blue_ginger_module.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/book_citation_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/business_hours.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/business_hours_interval.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/chat_bot_platform_bot_send_token.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/chat_bot_platform_fireball_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_classifier_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_classifier_data_classification.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_document_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_query_classifier_output.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_query_multi_label_classifier_output.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_query_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_referrer_counts.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_site_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_site_data_versioned_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_site_violence_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_cloud_sql_instance_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_gcs_bucket_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_iam_policy_binding.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_infra_spanner_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_infra_spanner_config_create_database_options.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_service_account_identity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_tenant_project_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_tenant_project_resource.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_tenant_resource.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_tenant_service_account_identity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/commerce_datastore_deep_tag.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/commerce_datastore_image_deep_tags.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/commerce_datastore_image_deep_tags_model_output.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_additional_checksums.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_alternate_name.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_extra_dup.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_forwarding_dup.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_included_content.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_indexing_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_live_experiment_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_live_experiment_info_per_live_experiment_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_localized_variations.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_partial_update_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_partial_update_info_last_full_indexing_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_quality_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_robots_info_list.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/compressed_quality_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/concepts_concept_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/content_attributions.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/content_attributions_outgoing_attribution.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/content_aware_crops_indexing.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_lexical_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_personal_reference.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_personal_reference_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_source_type_list.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_source_type_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_subreference_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_subreference_reference.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_subreference_resolution.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/corpus_selection_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_click_distribution.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_click_distribution_item.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_country_attachment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_geo_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_geo_locations.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_location_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_metro_nb_feature.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_province_geotoken.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_salient_country.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_multiple_component_distribution.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_single_component_distribution.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_url_change.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_url_changerate.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_url_history.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_url_version.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crowding_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crowding_per_doc_data_news_cluster.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/deep_crop_indexing.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/deep_crop_pixels.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/doc_properties.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/doc_properties_bad_title_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_compressed_feature.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_dense_feature_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_feature_extra.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_feature_set_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_feature_set_data_feature_set_element.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_feature_set_data_sequence.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_indexed_feature_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_label_set_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_label_set_element.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_quantized_byte_dense_feature_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_quantized_byte_indexed_feature_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_quantized_dense_feature_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_sparse_feature_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_encoded_thumbnail.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_moving_thumbnail.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_moving_thumbnail_score_components.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_thumbnail.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_thumbnail_quality_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_user_report_human_label.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_user_report_model_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_user_report_user_reported_thumbnail.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_video_thumbnail.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_deep_link_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_embed_client_item.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_packaging_service_client.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_provenance.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_transient_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/event_id_message.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response_match_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response_query_subitem.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response_tidbit.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response_tidbit_anchor_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/face_indexing.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_binary_classification.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_doc_classification.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_rephil_clusters.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_rephil_clusters_cluster.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_taxonomic_classification.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_taxonomic_classification_category.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_contact_detail_hash.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_contact_pointer.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_device_contact_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_device_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_device_raw_contact_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_other_contact_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_secondary_contact_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_citation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_lat_long.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_measurement.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_measurement_unit.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_nested_struct.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_property_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_topic.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/g_document_base.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/g_document_base_content.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/g_document_base_directory.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/g_document_base_original_content.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/generic_snippet_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geo_ondemand_assistant_supported_actions.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_access_point_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_address_component_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_address_lines_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_address_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_address_range_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_anchored_geometry_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_applied_speed_limit_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_attachments_attachment_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_attribute_id_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_attribute_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_attribute_value_display_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_barrier_logical_material_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_best_locale_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_biz_builder_reference_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_border_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_bounding_marker_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_building_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_business_chain_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_business_hours_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_call_to_action_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_canonical_g_concept_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_cell_covering_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry_multi_point.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry_multi_surface.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry_solid.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry_surface.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_transform.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_transform_translate.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_composable_item_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_count_comparison_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_crossing_stripe_pattern_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curvature_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curve_connection_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curve_connection_proto_bezier_params.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curve_connection_proto_bezier_params_control_point.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curve_connection_proto_circle_params.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_data_source_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_date_time_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_dimension_comparison_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_dimension_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_display_data_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_disputed_area_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_doodle_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_duration_based_rate_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_elevation_model_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_elevation_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_entrance_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_entrance_reference_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_establishment_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_exceptional_hours_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_existence_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_field_metadata_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_field_metadata_proto_field_provenance.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_history_metadata_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_id_forwardings_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_id_list_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_id_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_metadata_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_property_id_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_replacement_info_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_field_metadata_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_field_with_rights_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_flow_line_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_food_menu_item_option_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_food_menu_item_option_proto_ingredient.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_food_menu_item_option_proto_portion_size.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_food_menu_item_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_g_concept_instance_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_geometry_composition.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_geometry_store_reference_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_geopolitical_geometry_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_geopolitical_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_grade_level_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_html_text_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_inferred_geometry_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_feature_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_field_metadata_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_segment_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_segment_proto_lane_connection_reference.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_source_summary_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_intersection_group_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_intersection_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_job_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_job_related_category.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_knowledge_graph_reference_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_landmark_reference_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_lane_marker_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_lane_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_lane_proto_lane_connection.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_language_tagged_text_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_level_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_linear_stripe_pattern_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_locale_language_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_locale_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_logical_border_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_media_item_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_media_item_proto_media_size.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_name_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ontology_raw_g_concept_instance_container_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ontology_raw_g_concept_instance_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_opening_hours_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_operations_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_override_border_status_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_painted_element_logical_color_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_parking_allowance_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_parking_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_parking_restriction_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_peak_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_pedestrian_crossing_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_physical_line_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_point_curvature_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_point_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_point_with_height_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_political_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_poly_line_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_polygon_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_pose_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_food_nutrition_facts.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_food_nutrition_facts_calories_fact.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_food_nutrition_facts_nutrition_fact.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_status.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_list_name_info_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_list_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_list_section_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_range_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_property_value_status_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_provenance_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_rank_details_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_rank_signal_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_raw_data_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_raw_metadata_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_rect_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_region_specific_name_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_regulated_area_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_relation_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_restriction_group_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_restriction_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_rights_status_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_road_conditional_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_road_monitor_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_road_sign_component_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_road_sign_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_route_association_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_route_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_school_district_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_segment_path_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_segment_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_segment_proto_ramp_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_service_area_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_serviced_stop_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ski_boundary_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ski_lift_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ski_trail_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_slope_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_social_reference_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_source_info_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_source_trust_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_speed_limit_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_speed_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_stable_field_path_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_stable_field_path_proto_stable_field_selector.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_sweep_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_telephone_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_temporary_closure_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_text_affix_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_three_dimensional_model_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_based_rate_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_component_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_endpoint_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_interval_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_schedule_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_timezone_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_toll_cluster_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_track_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_transit_line_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_transit_line_variant_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_transit_station_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_transit_station_proto_transit_agency_association_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_trust_signals_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_unlimited_speed_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_url_list_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_url_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_user_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_variable_speed_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_vehicle_attribute_filter_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_vertical_ordering_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_weight_comparison_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_weight_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_anchor_label.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_bounding_box.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_box_partitions.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_break_label.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_char_label.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_header.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_header_font.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_page.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_page_block.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_page_merged_page_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_font_size_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_label.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_language_combination_language.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_language_label.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_logical_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_logical_entity_link.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_ordinal.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_orientation_label.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_overrides.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_overrides_style.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_paragraph.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_paragraph_dropped_cap.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_paragraph_route.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_rotated_bounding_box.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_route_point.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_column_details.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_content_link.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_content_link_citation_target.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_content_link_in_volume_target.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_edit_correction_candidate.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_snippet_filter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_table_cell_details.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_table_details.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_summary_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_symbol.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_symbol_symbol_variant.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_word.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_word_alternates.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_word_alternates_alternate.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_api_serviceconsumermanagement_v1_billing_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_api_serviceconsumermanagement_v1_policy_binding.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_audio_out_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_device_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_device_state.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_device_state_installed_apps_state.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_response_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_screen_out_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_screen_out_config_dimensions.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_alarm.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_alarm_recurrence.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_alarms.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_device_model_capabilities_override.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_fitness_activities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_fitness_activity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_surface_identity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_timer.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_timers.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_access_control_action.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_action.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_action_executor_output.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_action_output.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_add_to_folder_action.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_cloud_ai_document_option.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_create_document_link_request.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_create_document_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_create_document_request.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_create_document_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_custom_weights_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_data_update_action.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_data_validation_action.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_date_time_array.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_date_time_type_options.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_delete_document_action.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_delete_document_link_request.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_delete_document_request.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document_link.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document_query.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document_reference.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document_schema.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_enum_array.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_enum_type_options.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_enum_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_export_to_cdw_pipeline.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_fetch_acl_request.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_fetch_acl_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_file_type_filter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_float_array.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_float_type_options.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_gcs_ingest_pipeline.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_gcs_ingest_with_doc_ai_processors_pipeline.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_get_document_request.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_histogram_query.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_histogram_query_property_name_filter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_histogram_query_result.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_ingest_pipeline_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_initialize_project_request.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_initialize_project_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_integer_array.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_integer_type_options.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_invalid_rule.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_document_schemas_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_linked_sources_request.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_linked_sources_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_linked_targets_request.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_linked_targets_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_rule_sets_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_synonym_sets_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_lock_document_request.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_map_property.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_map_type_options.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_merge_fields_options.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_process_with_doc_ai_pipeline.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_processor_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_project_status.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_array.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_definition.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_definition_schema_source.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_filter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_type_options.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_publish_action.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_qa_result.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_qa_result_highlight.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_remove_from_folder_action.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_request_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_response_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule_actions_pair.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule_engine_output.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule_evaluator_output.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule_set.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata_export_to_cdw_pipeline_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata_gcs_ingest_pipeline_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata_individual_document_status.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata_process_with_doc_ai_pipeline_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_request.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_search_documents_request.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_search_documents_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_search_documents_response_matching_document.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_set_acl_request.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_set_acl_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_synonym_set.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_synonym_set_synonym.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_text_array.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_text_type_options.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_time_filter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_timestamp_array.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_timestamp_type_options.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_timestamp_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_document_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_document_request.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_document_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_document_schema_request.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_options.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_rule_set_request.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_user_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_weighted_schema_property.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1beta1_create_document_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1beta1_initialize_project_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1beta1_update_document_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_barcode.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_bounding_poly.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_entity_normalized_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_entity_relation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_anchor.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_anchor_page_ref.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_block.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_detected_barcode.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_detected_language.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_dimension.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_form_field.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_image.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_image_quality_scores.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_image_quality_scores_detected_defect.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_layout.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_line.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_matrix.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_paragraph.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_symbol.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_table.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_table_table_cell.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_table_table_row.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_token.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_token_detected_break.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_token_style_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_visual_element.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_provenance.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_provenance_parent.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_revision.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_revision_human_review.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_shard_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_style.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_style_font_size.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_text_anchor.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_text_anchor_text_segment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_text_change.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_normalized_vertex.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_vertex.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_iam_v1_audit_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_iam_v1_audit_log_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_iam_v1_binding.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_iam_v1_policy.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_availability_period.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_calendar_busy.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_custom_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_do_not_disturb.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_home_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_in_meeting.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_inactive.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_local_time_context.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_office_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_out_of_office.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_outside_working_hours.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_time_range.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_upcoming_commitment_context.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_upcoming_ooo_context.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_availabilities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_availability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_context.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_status.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_working_elsewhere_context.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_working_hours.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_communications_instantmessaging_v1_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_communications_instantmessaging_v1_location_hint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_longrunning_operation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_protobuf_empty.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_rpc_status.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_color.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_date.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_date_time.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_expr.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_interval.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_lat_lng.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_money.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_postal_address.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_time_of_day.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_time_zone.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/groups_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/home_graph_common_route.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/home_graph_common_routing_table.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/home_graph_common_trait_routing_hints.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_anon_timing_stat_pair.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_box.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_chromium_trace.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_console_log_entry.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_cookie.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_document.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_dom_storage_item.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_dom_tree_node.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_dom_tree_node_attribute.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_frame_resize_event.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_image.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_initial_load_event.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_modal_dialog_event.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_offset.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_partial_render.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_pdf.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_rectangle.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_redirect_event.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_redirect_hop.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_referenced_resource.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_referenced_resource_fetch_timing.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_referenced_resource_http_header.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_render_event.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_render_extension_result.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_render_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_render_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_render_stats_counter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_render_tree_node.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_render_tree_node_inline_text_box.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_resource.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_resource_http_header.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_script_stack_frame.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_style.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_web_kit_fetch_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_window_open_event.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/i18n_phonenumbers_phone_number.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_base_thumbnail_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_base_video_preview_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_content_flow_proto_prod.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_content_query_boost.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_content_query_boost_query_boost.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_content_starburst_version_group.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_data_multibang_entities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_data_multibang_entities_multibang_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_data_thumbnail.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_data_vertical_indexing_info_image.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_exact_boost.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_exact_boost_nav_query.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_exif_image_embedded_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_exif_iptc_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_exif_iptc_metadata_artwork.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_exif_iptc_metadata_contact_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_exif_iptc_metadata_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_exif_iptc_metadata_location_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_monetization_featured_image_properties.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_moosedog_crawl_state.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_mustang_image_link_selection_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_mustang_shopping_offer.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_porn_debug_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_quality_sensitive_media_or_people_entities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_regions_image_region.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_regions_image_regions.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_amarna_cloud_speech_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_amarna_signals_blob.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_amarna_signals_blob_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_amarna_status.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_animated_image_perdoc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_api_itag_specific_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_api_xtag.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_api_xtag_list.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_content_based_video_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_crawl_status_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_deep_image_engagingness_output.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_file_truncation_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_frame_identifier.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_frame_identifier_multi_thumbnail_variant.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_frame_identifier_preview_frame_zero_variant.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_frame_identifier_thumbnail_variant.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_frame_perdoc.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_frame_perdocs.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_language_identification_result.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_nima_output.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_s3_lang_id_debugging_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_s3_lang_id_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_s3_recognizer_metadata_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_shopping_product_information.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_shopping_product_information_bounding_box.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_shopping_product_information_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_shopping_product_information_product_information.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_shopping_product_information_product_information_token_group.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_shopping_product_information_versioned_product_information_set.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_speech_recognition_alternative.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_speech_recognition_result.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_unwanted_content.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_venom_processing_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_venom_status.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_video_indexing_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_video_link_indexing_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_video_previews_debugging_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_video_previews_video_preview.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_video_properties.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_video_properties_vertical_indexing_info_video.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_word_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_repository_youtube_processing_filter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_safesearch_content_brain_porn_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_safesearch_content_ocr_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_safesearch_content_offensive_symbol_detection.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_safesearch_content_offensive_symbol_match.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_search_image_indexing_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_search_image_license_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_search_image_selection_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_search_unindexed_image_link.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_understanding_indexing_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_understanding_indexing_annotation_group.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_understanding_indexing_feature.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_understanding_indexing_image_region.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_understanding_indexing_label.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_understanding_indexing_label_group.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/image_understanding_indexing_meta_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_bad_ssl_certificate.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_converter_localized_alternate_name.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_converter_raw_redirect_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_converter_redirect_chain.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_converter_redirect_chain_hop.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_converter_redirect_params.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_converter_rich_content_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_converter_rich_content_data_range.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_converter_robots_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_converter_shingle_fingerprint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_crawler_id_serving_document_identifier.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_docjoiner_anchor_phrase_spam_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_docjoiner_anchor_spam_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_docjoiner_anchor_statistics.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_docjoiner_anchor_statistics_per_dup_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_docjoiner_anchor_statistics_redundant_anchor_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_docjoiner_anchor_statistics_redundant_anchor_info_for_phrase_cap.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_docjoiner_anchor_trusted_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_docjoiner_c_doc_build_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_docjoiner_data_version.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_docjoiner_data_version_version_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_docjoiner_serving_time_cluster_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_docjoiner_serving_time_cluster_ids.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_dups_computed_localized_alternate_names_locale_entry.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_dups_localized_localized_cluster.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_dups_localized_localized_cluster_cluster.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_dups_localized_localized_cluster_link_based_cluster_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_dups_localized_localized_cluster_link_based_cluster_info_link_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_dups_localized_localized_cluster_link_based_cluster_info_link_member.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_dups_localized_localized_cluster_target_link.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_dups_localized_localized_cluster_target_link_link.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_dups_localized_localized_cluster_target_link_link_annotation_source_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_dups_localized_localized_cluster_target_link_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_dups_localized_localized_cluster_target_link_sets.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_dups_localized_localized_cluster_target_link_target_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_embedded_content_embedded_content_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_embedded_content_embedded_links_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_embedded_content_embedder_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_embedded_content_fetch_host_count.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_embedded_content_fetch_host_count_counter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_embedded_content_fetch_url_response_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_embedded_content_link_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_embedded_content_output_generation_timestamps.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_embedded_content_page_size_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_embedded_content_render_cache_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_embedded_content_render_request_config_config_params.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_embedded_content_rendering_fetch_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_embedded_content_rendering_output_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_embedded_content_selection_result.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_ml_vertical_vertical_item.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_mobile_interstitials_proto_desktop_interstitials.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_mobile_interstitials_proto_desktop_interstitials_details.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_mobile_interstitials_proto_interstitial_basic_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_mobile_volt_core_web_vitals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_mobile_volt_volt_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_privacy_access_access_requirements.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_signal_aggregator_adaptive_interval_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_signal_aggregator_age_weighted_coverage_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_signal_aggregator_aggregated_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_signal_aggregator_running_mean_and_variance_internal_state.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_signal_aggregator_scc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_signal_aggregator_scc_signal.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_signal_aggregator_url_pattern_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_signal_aggregator_url_pattern_signals_prior_signal.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_signal_aggregator_url_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_speech_speech_properties_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_url_pattern_url_tree_big_tree_branch.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_url_pattern_url_tree_url_feature.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_url_pattern_url_tree_url_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_url_pattern_url_tree_url_tree.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_url_pattern_url_tree_url_tree_debug_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_url_pattern_url_tree_url_tree_key.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_url_pattern_url_tree_url_tree_node.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/indexing_videos_asr_transcript_repair_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/kaltix_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ke_governance_typed_regions.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_any_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_attribute_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_boolean_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_collection_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_compound_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_container_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_date_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_dependency_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_dialog_referential_resolution.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_duration_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_entity_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_modifiers.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_annotation_layer_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_arg_path.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_arg_path_component.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_argument.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_argument_provenance.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_argument_provenance_attentional_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_argument_provenance_current_query.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_argument_provenance_injected_contextual_schema.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_argument_provenance_neural_location_annotator.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_argument_provenance_previous_query.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_argument_provenance_previous_query_role.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_argument_provenance_previous_response_meaning.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_argument_provenance_previous_task_state.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_argument_provenance_previous_task_state_list_candidate.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_argument_provenance_previous_task_state_previous_function_call.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_argument_provenance_query_anaphor.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_argument_provenance_search_answer_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_argument_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_argument_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_attribute_signal.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_collection_membership.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_collection_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_concept_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_concept_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_coreference.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_custom_vehicle_action_argument_annotator_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_freetext_annotation_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_function_call.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_function_call_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_grounding_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_identifier.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_implied_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_indexing_iql_attachment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_local_result_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_local_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_location_markers_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_media_entity_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_munin_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_nimble_annotation_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_ntpr_annotation_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_on_device_annotation_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_parsing_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_personal_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_personal_entity_entity_relationship.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_qref_annotation_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_relatedness_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_response_meaning_signals_answers_header_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_response_meaning_signals_response_meaning_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_saft_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_semantic_annotation_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_semantic_annotation_signals_feature.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_sensitive_argument_value_guard.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_shopping_ids.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_shopping_ids_measure_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_signal_computation_fallback_intent.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_simple_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_support_transfer_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_teleport_argument_annotator_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_token.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_token_synonym.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intent_query_tokens.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_intersect_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_marker.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_marker_command.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_marker_open_question.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_marker_polar_question.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_marker_state_of_affairs.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_meaning_schema_key.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_meaning_schema_slot_key.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_measurement_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_normalized_string_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_number_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_aog_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_app_annotation_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_audio_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_calendar_event_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_calendar_event_wrapper_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_calendar_reference_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_complex_queries_rewrite_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_component_reference_index_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_device_id_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_device_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_device_user_identity_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_home_automation_device_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_location_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_media_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_message_notification_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_money_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_news_provider_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_on_device_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_person_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_personal_intelligence_entity_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_productivity_list_item_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_recurrence_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_reminder_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_shopping_merchant_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_shopping_offer_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_shopping_product_expression_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_shopping_product_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_shopping_store_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_timer_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_opaque_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_plexity_requirement.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_polar_question_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_range_constraint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_range_constraint_range_endpoint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_same_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_semantic_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_sensitivity_argument_eval_policy.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_sensitivity_instruction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_sensitivity_instruction_argument.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_sensitivity_instruction_intent.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_sensitivity_instruction_previous_query.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_sensitivity_intent_eval_policy.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_sensitivity_logging_policy.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_sensitivity_my_activity_policy.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_sensitivity_sensitivity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_sensitivity_serving_policy.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_sensitivity_storage_policy.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_state_of_affairs_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_string_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_time_zone_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_tracking_number_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_union_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_answers_value_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_graph_date_time_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_graph_nested_struct.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_graph_nested_struct_predicate_objs.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_graph_qualifier.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_graph_qualifier_set.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_graph_triple.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_graph_triple_obj.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_graph_triple_obj_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_graph_triple_provenance.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/knowledge_verticals_weather_proto_user_specified_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/legal_citation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/legal_citation_court_document.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/legal_citation_court_document_court.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/legal_citation_court_document_court_name_component.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/legal_citation_court_document_opinion_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/legal_citation_court_document_per_docket_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/legal_citation_court_document_pub.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/legal_citation_court_document_unknown_date.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/legal_citation_law.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/legal_citation_law_collection_name.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/legal_citation_law_level.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/legal_date.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/legal_person.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/lens_discovery_style_aesthetics_score_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/lens_discovery_style_bounding_box.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/lens_discovery_style_person_attributes.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/lens_discovery_style_person_attributes_person_visibility_scores.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/lens_discovery_style_person_attributes_person_visibility_scores_person_visibility_prediction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/lens_discovery_style_person_detection_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/lens_discovery_style_person_detection_signals_detected_person.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/lens_discovery_style_style_image_type_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/lens_discovery_style_style_image_type_signals_style_image_type_prediction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/list_snippet_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/list_snippet_response_row.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/local_www_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/local_www_info_address.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/local_www_info_cluster.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/local_www_info_opening_hours.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/local_www_info_phone.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/local_www_info_wrapptor_item.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/localsearch_chain_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/localsearch_doc_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/localsearch_proto_internal_food_ordering_action_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/localsearch_proto_internal_food_ordering_action_metadata_available_partner_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/localsearch_proto_internal_food_ordering_action_metadata_service_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/logs_proto_indexing_crawler_id_crawler_id_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/logs_semantic_interpretation_intent_query_entity_link_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/logs_semantic_interpretation_intent_query_link_kind_flags.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/logs_semantic_interpretation_intent_query_link_kind_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/logs_semantic_interpretation_intent_query_support_transfer_rule.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/logs_semantic_interpretation_intent_query_webref_entity_relationship.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/long_structured_snippet.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/long_structured_snippet_entry.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/majel_contact_information_shortcut_information.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/maps_quality_special_words_flags.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/maps_quality_special_words_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/media_index_boundingbox.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/media_index_entity_field.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/media_index_frame_identifier.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/media_index_frame_identifier_preview_frame_zero_variant.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/media_index_region.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/media_index_sparse_float_vector.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/media_index_video_centroid.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/media_index_video_centroid_domain_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/media_index_video_core_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/media_index_video_frame.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/media_index_video_frames.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/media_index_xtag.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/media_index_xtag_list.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/mobile_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/multiscale_field_presence.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/multiscale_layer_presence.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/multiscale_pointer_index.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/multiscale_pointer_span.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/mustang_repos_www_snippets_candidate_feature.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/mustang_repos_www_snippets_organic_list_snippet_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/mustang_repos_www_snippets_snippet_candidate.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/mustang_repos_www_snippets_snippets_ranklab_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/mustang_snippets_rendered_token.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/net_fabric_rpc_virtual_network_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_meaning_component_specific_contracts.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_meaning_meaning_remodeling.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_meaning_meaning_remodeling_control.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_meaning_meaning_remodelings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_meaning_semantic_type_name_component_specific_contracts.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_meaning_semantic_type_name_meaning_remodelings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_annotated_phrase.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_constituency_node.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_document.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_document_topic.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_entity_profile.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_entity_profile_alternate.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_entity_profile_attribute.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_entity_profile_keyword.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_entity_profile_reference.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_entity_profile_related.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_entity_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_hyperlink.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_identifier.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_labeled_span.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_labeled_spans.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_measure.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_mention.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_mention_resolution.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_morphology.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_phrase.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_referent.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_relation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_relation_mention.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_semantic_node.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_semantic_node_arc.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_saft_token.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_sciencelit_article_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_sciencelit_article_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_sciencelit_article_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_sciencelit_author.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_sciencelit_citation_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_sciencelit_dataset.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_sciencelit_mesh_heading.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_sciencelit_pub_date.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_sciencelit_publication_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_sciencelit_referenced_block.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_sciencelit_retrieval_query_encoding_debug_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_sciencelit_retrieval_search_result_debug_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_sciencelit_retrieval_search_result_set_debug_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_sciencelit_retrieval_snippet_debug_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_sciencelit_subject_heading.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_sciencelit_tokenized_text.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_annotation_eval_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_app_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_date_time_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_absolute_date_time.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_date_time.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_date_time_property.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_duration.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_event.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_fetched_relative_date_time.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_holiday.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_moon_event_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_non_gregorian_date.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_quantity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_range.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_recurrent.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_relative_date_time.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_resolution_properties.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_shifted_relative_date_time.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_span.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_target_to_fetch.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_datetime_time_zone.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_entity_source_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_expression_status.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_amenities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_basic_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_business_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_chain_member_constraint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_compound_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_contact_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_cuisine_constraint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_ev_charging_station_connector_constraint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_ev_charging_station_payment_constraint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_ev_charging_station_speed_constraint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_extent.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_gcid_constraint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_health_insurance_constraint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_hotel_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_hyper_reliable_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_hyper_reliable_data_gcid_syns_override.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_implicit_local_category.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_joiner.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_local_result_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_location_constraint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_location_element.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_menu_item.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_price_constraint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_quality_constraint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_room_constraint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_scalable_attribute.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_service_constraint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_star_ratings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_vicinity_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_local_visit_history_constraint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_communication_phone_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_communication_recipient.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_communication_relationship_argument.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_device.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_device_name.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_dialog_referents_dialog_referents.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_dialog_referents_list_selection.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_album_title.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_audio.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_audiobook_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_book.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_cast_device_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_cost.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_deeplink_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_deeplink_info_time_window.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_description.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_episode_constraint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_frequency.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_game.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_generic_music.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_lat_lng.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_media_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_media_annotation_list.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_media_provider_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_movie.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_music_artist.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_music_genre.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_music_playlist.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_news_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_news_topic.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_paid_offer_detail.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_podcast.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_podcast_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_provider_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_purchase_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_quantification.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_radio.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_radio_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_radio_network.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_rental_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_season_constraint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_song.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_tv_show.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_you_tube_deeplink_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_media_you_tube_playlist_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_money_currency.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_money_money.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_narrative_news_news_provider.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_on_device.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_person_person.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_recurrence.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_recurrence_daily_pattern.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_recurrence_monthly_pattern.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_recurrence_recurrence_end.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_recurrence_recurrence_start.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_recurrence_weekly_pattern.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_recurrence_yearly_pattern.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_shopping_assistant_brand_phrase.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_shopping_assistant_merchant.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_shopping_assistant_merchant_merchant_center_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_shopping_assistant_offer.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_shopping_assistant_phrase.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_shopping_assistant_product.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_shopping_assistant_product_classification.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_shopping_assistant_product_expression.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_shopping_assistant_product_media_product.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_shopping_assistant_product_media_product_media_attribute_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_shopping_assistant_product_phrase.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_shopping_assistant_shopping_list_item_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_shopping_assistant_store.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_models_shopping_assistant_unrecognized_phrase.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_number_fraction_number.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_number_number.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_number_simple_number.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_personal_intelligence_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_personal_reference_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_proto_actions_on_google_aog_slot.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_proto_actions_on_google_date_time.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_proto_actions_on_google_date_time_property.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_proto_actions_on_google_slot_list.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_proto_actions_on_google_slot_map.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_proto_actions_on_google_slot_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_proto_actions_on_google_slot_value_single_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_proto_actions_on_google_typed_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_q_ref_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_q_ref_annotation_collection_membership.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_q_ref_annotation_entity_relationship.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_q_ref_annotation_merlot_category_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_q_ref_annotation_sub_cluster.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_related_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_saft_coreference.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_saft_measure.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_saft_mention_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlp_semantic_parsing_saft_span.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlx_data_schema_byte.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlx_data_schema_character.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlx_data_schema_document.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlx_data_schema_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlx_data_schema_language_span.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlx_data_schema_mention.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlx_data_schema_paragraph.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlx_data_schema_scale_set.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlx_data_schema_sentence.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlx_data_schema_token.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nlx_data_schema_token_dependency_edge.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/nsr_versioned_item.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_data_docinfo_woodwing_item_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_doc_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_doc_tag.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_doc_tag_book_specific.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_doc_tag_book_specific_numbering_range.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_doc_tag_catalog_specific.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_doc_tag_contributor.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_doc_tag_magazine_specific.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_doc_tag_newspaper_specific.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_doc_tag_patent_specific.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_doc_tag_work_cluster.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_ge_money.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_ge_price.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_ge_price_locale.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_image_size.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_locale_viewability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_locale_viewability_dates.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_locale_viewability_source_details.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_volume_access_rights.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_volume_computed_access_rights.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_volume_display_details.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_volume_imprint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_volume_viewability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocean_volume_viewability_locale.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocr_photo_bounding_box.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocr_photo_curve.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocr_photo_curve_point.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocr_photo_curved_bounding_box.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ocr_photo_text_box.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/official_pages_official_key.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/official_pages_query_set.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/orion_doc_entities_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/pairwise_q_scoring_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/pairwise_q_versioned_item.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/peoplestack_flexorgs_proto_internal_external.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/peoplestack_flexorgs_proto_internal_external_state_status.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/per_doc_debug_event.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/personalization_maps_alias_alias_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/personalization_maps_alias_icon.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/personalization_settings_api_proto_local_discovery_local_discovery_settings_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/personalization_settings_api_proto_local_discovery_opa_recipes_context.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/phil_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_animation_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_dynamic_depth_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_four_c_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_g_depth_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_hdr_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_hdr_metadata_gainmap.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_image_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_panorama_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_vision_groundtruthdb_normalized_bounding_box.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_vision_objectrec_feature_vector.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_vision_objectrec_geo_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_vision_objectrec_global_feature.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_vision_objectrec_image_template.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_vision_objectrec_image_template_sub_set.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_vision_objectrec_local_descriptor.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_vision_objectrec_matrix2_d.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_vision_objectrec_quantized_feature_vector.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/photos_vision_objectrec_roi.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/porn_flag_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/postal_address.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/precomputed_restricts.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/premium_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/proto2_bridge_message_set.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/pseudo_video_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/pseudo_video_data_transcript.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/pseudo_video_data_transcript_timestamp.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ptoken_p_token.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_app_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_app_info_source_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_app_info_source_data_allow_list_source_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_app_info_source_data_media_provider_source_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_app_understanding_category.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_customized_notification.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_customized_notification_button.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_customized_notification_payload.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_news_provider_annotation_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_news_provider_annotation_data_provider.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_reminder.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_reminder_document.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_reminder_dynamite_group.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_reminder_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_reminder_location_category_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_reminder_location_chain_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_reminder_person.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_reminder_recurrence_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_ringtone.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_room.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_actions_timer.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_authority_topic_embeddings_versioned_item.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_calypso_apps_link.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_calypso_apps_universal_au_live_op_detail.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_calypso_apps_universal_au_live_op_event.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_calypso_apps_universal_au_live_op_format.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_calypso_apps_universal_au_live_ops_detail_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_calypso_apps_universal_image.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_calypso_apps_universal_image_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_copia_firefly_site_signal.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_dialog_manager_external_ids.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_dialog_manager_local_intent_options.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_dialog_manager_local_result.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_dialog_manager_reminder_client_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_dni_doc_preview_restrictions.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_dni_extended_news_previews.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_fringe_fringe_query_prior_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_genie_complex_queries_complex_queries_output_rewrite.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_genie_complex_queries_complex_queries_output_rewrite_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_geo_brainloc_brainloc_attachment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_labels_google_label_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_labels_google_label_data_label.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_labels_google_label_data_label_provider.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_navboost_craps_aging_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_navboost_craps_aging_data_aging_age_bucket.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_navboost_craps_craps_click_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_navboost_craps_craps_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_navboost_craps_craps_device.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_navboost_craps_feature_craps_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_navboost_craps_stats_with_weights_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_navboost_glue_voter_token_bitmap_message.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_nsr_experimental_nsr_team_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_nsr_experimental_nsr_team_scoring_signal.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_nsr_experimental_nsr_team_wsj_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_nsr_nsr_chunks_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_nsr_nsr_chunks_with_source_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_nsr_nsr_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_nsr_nsr_data_cluster_uplift.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_nsr_nsr_data_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_nsr_nsr_versioned_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_nsr_pq_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_nsr_pq_data_subchunk_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_nsr_versioned_float_signal.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_orbit_asteroid_belt_document_intent_scores.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_orbit_asteroid_belt_image_intent_scores.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_orbit_orbit_image_intent.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_orbit_orbit_image_intents.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_preview_chosen_snippet_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_preview_chosen_snippet_info_tidbit_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_preview_ranklab_snippet.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_preview_ranklab_title.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_preview_snippet_brain_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_preview_snippet_document_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_preview_snippet_experimental_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_preview_snippet_quality_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_preview_snippet_query_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_preview_snippet_query_term_coverage_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_preview_snippet_radish_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_product_product_site_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_product_product_site_data_locale_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_prose_cse_url_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_qrewrite_account_provenance.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_qrewrite_account_provenance_google_account.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_qrewrite_account_provenance_third_party_account.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_qrewrite_alternative_name_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_qrewrite_calendar_reference.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_qrewrite_contact_calendar_name.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_qrewrite_family_calendar_alias.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_qrewrite_personal_contact_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_qrewrite_primary_calendar_alias.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_qrewrite_q_rewrite_account_aware_calendar_alias_wrapper.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_qrewrite_relationship_memory_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_rankembed_mustang_mustang_rank_embed_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_rankembed_mustang_mustang_rank_embed_info_compressed_embedding.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_richsnippets_apps_protos_launch_app_info_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_richsnippets_apps_protos_launchable_app_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_salient_countries_salient_country.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_salient_countries_salient_country_set.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_salient_terms_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_salient_terms_salient_term.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_salient_terms_salient_term_set.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_salient_terms_signal_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_salient_terms_signal_term_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_sherlock_knex_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_sherlock_knex_annotation_item.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_shopping_shopping_attachment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_shopping_shopping_attachment_locale.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_shopping_shopping_attachment_moka_facet_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_shopping_shopping_attachment_offer.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_shopping_shopping_attachment_p_block.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_shopping_shopping_attachment_p_block_image_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_shopping_shopping_attachment_product.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_sitemap_breadcrumb_target.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_sitemap_breadcrumb_target_doc.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_sitemap_co_click_target.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_sitemap_co_click_target_doc.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_sitemap_co_click_target_doc_co_click_by_locale.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_sitemap_scoring_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_sitemap_subresult.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_sitemap_subresult_list.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_sitemap_target.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_sitemap_target_group.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_sitemap_third_party_carousels_list_item_muppet_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_sitemap_top_url.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_sitemap_two_level_target.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_snippets_truncation_snippet_bolded_range.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_snippets_truncation_snippet_bolded_range_position.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_timebased_date_unreliability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_timebased_last_significant_update.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_timebased_last_significant_update_adjustments.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_timebased_page_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_timebased_petacat_date_unreliability.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_timebased_syntactic_date.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_timebased_syntactic_date_date_range.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_timebased_syntactic_date_position.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_travel_good_sites_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_travel_good_sites_data_i18n.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_travel_good_sites_data_signal.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_vidya_video_language_video_language.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_views_extraction_cluster_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_webanswers_transcript_annotations.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_webanswers_video_transcript_annotations.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_webanswers_video_you_tube_caption_timing_info_annotations.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/quality_webanswers_video_you_tube_caption_timing_info_annotations_instance.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/registration_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_annotations_geo_topic.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_annotations_geo_topicality.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_annotations_geo_topicality_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_annotations_mustang_sentiment_snippet_annotations.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_annotations_rdfa_breadcrumbs.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_annotations_rdfa_crumb.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_annotations_rdfa_rdfa_rich_snippets_application.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_annotations_rdfa_rdfa_rich_snippets_application_app_type_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_annotations_rdfa_rdfa_rich_snippets_application_country_price.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_annotations_rdfa_rdfa_rich_snippets_application_localized_trusted_genome.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_annotations_rdfa_rdfa_rich_snippets_application_rank.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_annotations_rdfa_rdfa_rich_snippets_application_rank_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_aggregated_entity_name_scores.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_anchor_indices.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_annotated_category_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_annotation_debug_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_annotation_ratings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_annotation_stats_per_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_annotator_checkpoint_fprint.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_annotator_profile.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_book_edition_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_bootstrapping_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_category_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_category_annotation_browsy_topic.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_category_annotation_hit_cat_source.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_category_annotation_shopping_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_category_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_cluster_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_cluster_proto_mid_list_rule.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_cluster_proto_mid_list_rule_instance.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_cluster_proto_relation_rule.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_cluster_proto_relation_rule_instance.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_cluster_proto_rule_instance.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_compact_flat_property_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_compact_kg_property_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_compact_kg_topic.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_compact_kg_value.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_component_reference.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_concept_name_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_detailed_entity_scores.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_detailed_mention_scores.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_display_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_display_name.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_doc_level_relevance_ratings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_document_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_domain_specific_representation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_enricher_debug_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_entity_annotations.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_entity_debug_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_entity_join.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_entity_link_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_entity_link_source.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_entity_name_ratings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_entity_name_ratings_entity_name_rating.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_entity_name_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_entity_name_source.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_entity_scores.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_explained_range_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_explained_range_info_explained_range.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_extended_entity_name_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_extra_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_fatcat_category.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_forwarding_urls.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_fprint_modifier_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_freebase_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_generic_indices.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_geo_metadata_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_geo_metadata_proto_address_synonym.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_global_link_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_global_name_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_human_ratings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_image_query_indices.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_juggernaut_indices.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_kc_attribute_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_kg_collection.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_latent_entities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_latent_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_lexical_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_lexical_range.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_lightweight_tokens_matched_lightweight_token.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_lightweight_tokens_per_mention_lightweight_token.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_lightweight_tokens_per_name_lightweight_token.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_link_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_link_kind_flags.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_link_kind_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_localized_string.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_mdvc_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_mdvc_metadata_per_vertical.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_mention.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_mention_additional_explained_range.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_mention_component.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_mention_compound_mention.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_mention_debug_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_mention_eval_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_mention_ratings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_mention_ratings_single_mention_rating.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_meta_tag_indices.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_name_debug_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_name_debug_info_candidate_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_name_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_name_scores.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_ngram_context.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_ngram_mention.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_oyster_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_per_doc_relevance_rating.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_per_doc_relevance_ratings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_personalization_context_output.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_personalization_context_outputs.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_preprocessing_name_entity_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_preprocessing_name_entity_scores.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_preprocessing_name_variant_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_preprocessing_original_names.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_preprocessing_original_names_original_name.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_preprocessing_url_matching_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_preprocessing_url_source_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_processor_counter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_processor_timing.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_product_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_query_indices.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_range_annotations.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_range_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_refcon_document_mention_spans.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_refcon_mention_spans.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_refcon_query_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_refcon_refcon_document_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_refcon_refcon_name_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_reference_page_scores.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_segment_mention.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_segment_mentions.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_semantic_date_range.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_simplified_anchor.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_simplified_anchors.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_simplified_composite_doc.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_simplified_forwarding_dup.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_sub_segment_index.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_support_transfer_rule.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_task_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_task_details.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_triple_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_triple_annotations.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_triple_mention.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_universal_ngram_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_webref_annotation_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_webref_attachment_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_webref_document_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_webref_entities.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_webref_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_webref_entity_collections.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_webref_entity_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_webref_entity_relationship.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_webref_mustang_attachment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_webref_outlink_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_webref_outlink_infos.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_webref_status.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_wikipedia_category.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/repository_webref_wikipedia_geocode.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_coscam_conjunction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_coscam_disjunction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_coscam_easy_conjunction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_coscam_easy_disjunction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_coscam_easy_restrict_definition.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_coscam_restrict_definition.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_coscam_restrict_tokens_v2.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_coscam_token_group.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_generic_feature_vector.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_generic_feature_vector_crowding.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_generic_feature_vector_fixed_point_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_generic_feature_vector_restrict_tokens.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_nearest_neighbors.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_nearest_neighbors_neighbor.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_neighbor_selection_override.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_numeric_restrict_namespace.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_online_search_latency_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_query_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_query_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_restrict_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_token_namespace.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_scam_v3_restrict.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_science_search_catalog.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_science_search_citation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_science_search_data_download.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_science_search_data_size.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_science_search_date.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_science_search_field_of_study_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_science_search_license.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_science_search_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_science_search_navboost_query_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_science_search_organization.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_science_search_reconciled_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_science_search_replica.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_science_search_scholarly_article.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_science_search_source_url_docjoin_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_science_search_source_url_docjoin_info_webref_entity_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/research_science_search_version_cluster_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/richsnippets_data_object.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/richsnippets_data_object_attribute.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/richsnippets_page_map.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/richsnippets_page_map_template_type.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/s3_audio_language_s3_audio_language.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/safesearch_image_offensive_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/safesearch_internal_image_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/safesearch_video_classifier_output.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/safesearch_video_content_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/safesearch_video_content_signals_multi_label_classification_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/safesearch_video_content_signals_multi_label_output.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_citation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_citation_access_url.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_citation_alternate_abstract.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_citation_alternate_title.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_citation_anchor.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_citation_author.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_citation_category.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_citation_download_url.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_citation_funding.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_citation_funding_extraction_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_citation_reference_discussion.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_citation_subject.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_citation_translated_author.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_citation_union_catalog.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_index_signal.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_index_signal_author.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_ocean_view.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/science_ocean_view_country_view.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/sdr_embedding.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/sdr_page_anchors_doc_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/sdr_page_anchors_sitelink.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/sdr_page_anchors_sitelink_wrapper.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/sdr_scroll_to.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/sdr_scroll_to_on_page_matches.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/search_policy_rankable_sensitivity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/search_policy_rankable_sensitivity_attentional_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/search_policy_rankable_sensitivity_follow_on.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/search_policy_rankable_sensitivity_fulfillment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/search_policy_rankable_sensitivity_grounding_provider.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/search_policy_rankable_sensitivity_prefilter.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/search_policy_rankable_sensitivity_query_understanding.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/search_policy_rankable_sensitivity_synthetic_intent.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_all_authenticated_users_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_cap_token_holder_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_chat_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_circle_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_cloud_principal_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_contact_group_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_email_owner_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_event_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_gaia_group_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_gaia_user_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_host_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_ldap_group_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_ldap_user_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_mdb_group_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_mdb_user_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_o_auth_consumer_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_postini_user_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_principal_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_rbac_role_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_rbac_subject_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_resource_role_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_signing_key_possessor_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_simple_secret_holder_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_simple_secret_label_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_social_graph_node_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_square_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_youtube_user_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/security_credentials_zwieback_session_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/sentence_boundary_annotations.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/sentence_boundary_annotations_instance.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/sentiment_sentiment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/sentiment_sentiment_behaviors.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/sentiment_sentiment_emotions.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/shingle_info_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/shingle_source.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/shopping_webentity_shopping_annotation_inferred_image.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/shopping_webentity_shopping_annotation_inferred_image_neardup_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/shopping_webentity_shopping_annotation_offer_availability_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/shopping_webentity_shopping_annotation_product_image.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/shopping_webentity_shopping_annotation_product_rating.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/shopping_webentity_shopping_annotation_sori_version_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/sitemap.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/sitemap_deprecated__target.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/smartphone_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/smeared_web_landing_page_entry.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/snapshot_box.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/snapshot_image_node.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/snapshot_snapshot_document.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/snapshot_snapshot_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/snapshot_text_node.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/snippet_extra_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/snippet_extra_info_snippet_candidate_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/snippet_extra_info_snippet_candidate_info_extended_snippet.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/snippet_extra_info_snippet_scoring_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/snippet_extra_info_snippets_brain_model_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/snippets_leadingtext_leading_text_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/snippets_leadingtext_leading_text_annotation_piece.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/snippets_leadingtext_leading_text_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_common_attachment_attachment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_common_formatting.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_common_hashtag_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_common_link_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_common_search_link_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_common_segment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_common_segments.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_common_user_mention_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_discovery_external_entity_key.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_app_contact_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_data_column.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_android_device_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_birthday_decoration.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_contact_create_context.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_contact_deletion_context.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_contact_edit_context.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_contact_mutation_context.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_contact_prompt_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_contact_state.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_daily_recurrence.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_decoration_overlay.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_delegated_group_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_display_name_source.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_host_app_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_image_reference.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_limited_profile_name_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_limited_profile_picture_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_limited_profile_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_monthly_day_recurrence.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_monthly_recurrence.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_monthly_weekday_recurrence.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_name_pronunciation_audio_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_notification_trigger.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_partial_name_options.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_partial_name_options_name_part_spec.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_partial_name_options_parsed_display_name_spec.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_partial_name_options_two_part_name_spec.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_photo_overlay.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_prompt.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_prompt_content.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_pronoun_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_pronoun_entry.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_pronunciation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_pronunciations.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_recurrence.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_recurrence_repeat_forever.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_relative_position.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_relative_scale.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_search_profile_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_search_profile_education.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_search_profile_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_search_profile_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_search_profile_location_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_search_profile_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_search_profile_social_link.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_search_profile_state.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_search_profile_workplace.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_single_recurrence.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_sync_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_third_party_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_usage_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_weekly_recurrence.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_api_proto_yearly_recurrence.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_wire_proto_peopleapi_affinity_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_wire_proto_peopleapi_affinity_metadata_client_interaction_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_wire_proto_peopleapi_affinity_metadata_cloud_device_data_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_wire_proto_peopleapi_extension_apps_waldo_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_wire_proto_peopleapi_extension_dynamite_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_wire_proto_peopleapi_extension_paisa_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_wire_proto_peopleapi_extension_people_stack_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_graph_wire_proto_peopleapi_extension_people_stack_person_extended_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_personalization_knex_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_personalization_knex_annotation_item.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_personalization_knex_annotation_item_topic.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_stanza_delivery_restriction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_stanza_moderation_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/social_stanza_stanza_restriction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/spam_brain_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/spam_brain_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/spam_cookbook_action.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/spam_muppetjoins_muppet_signals.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/speech_s3_language_identification_result.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/speech_s3_locale.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/speech_wave_header.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/storage_graph_bfg_authority_feedback_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/storage_graph_bfg_legal_request_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/storage_graph_bfg_livegraph_provenance_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/storage_graph_bfg_lms_policy_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/storage_graph_bfg_policy_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/storage_graph_bfg_public_information_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/storage_graph_bfg_rwj_policy_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/storage_graph_bfg_spii_certification.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/storage_graph_bfg_triple_provenance.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/storage_graph_bfg_ump_policy_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/superroot_podcasts_recommendations_podcast_recs_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/superroot_podcasts_recommendations_podcast_recs_features_user_language.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/telephone_number.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/teragoogle_document_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/teragoogle_document_info_attachment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/teragoogle_document_info_section.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/teragoogle_repository_attachment_options.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/title_size_params.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/tool_bar_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/travel_flights_airline_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/travel_flights_airline_config_contact_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/travel_flights_airline_config_country_contact_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/travel_flights_airline_config_green_fares_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/travel_flights_airline_config_localized_contact_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/travel_flights_name_catalog_entry.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/travel_flights_name_catalog_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_client_service_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_client_service_info_client_labels.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_client_service_info_client_labels_client_label_values.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_content_range_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_crawl_times.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_event.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_fetch_body_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_fetch_reply_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_fetch_reply_data_crawl_dates.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_fetch_reply_data_delivery_report.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_fetch_reply_data_fetch_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_fetch_reply_data_fetch_stats_client_state_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_fetch_reply_data_fetch_stats_state_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_fetch_reply_data_http_header.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_fetch_reply_data_partial_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_fetch_reply_data_protocol_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_fetch_reply_data_redirects.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_fetch_reply_data_web_io_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_fetch_status.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_host_bucket_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_host_bucket_data_url_list.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_logged_vpc_destination.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_multiverse_client_identifier.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_original_client_params.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_policy_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_ssl_certificate_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_tcpip_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_throttle_client_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/trawler_trawler_private_fetch_reply_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/universalsearch_new_packer_knowledge_result_support.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/universalsearch_new_packer_knowledge_result_support_provenance.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/url_poisoning_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/util_status_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/vending_consumer_proto_trusted_genome_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/vending_consumer_proto_trusted_genome_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/vending_consumer_proto_trusted_genome_hierarchy.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/vending_consumer_proto_trusted_genome_policy.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/vending_consumer_proto_trusted_genome_policy_target_region.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_ambisonics_ambisonics_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_assets_venom_acl.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_assets_venom_settings.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_assets_venom_transition.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_assets_venom_video_id.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_audio_stream.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_clip_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_closed_captions.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_anchor_common_feature_set.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_anchor_common_feature_set_label_span_timestamp.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_anchor_thumbnail.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_anchor_thumbnail_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_anchors_common_feature_set.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_anchors_thumbnail_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_aspect.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_asr_caption.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_bleurt_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_caption_entity_anchor_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_caption_entity_anchor_set_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_caption_entity_doc_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_caption_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_caption_label_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_caption_span_anchor_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_caption_span_anchor_set_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_comment_anchor_set_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_comment_anchor_set_features_comment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_description_anchor_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_description_anchor_set_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_description_span_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_dolphin_ensemble_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_dolphin_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_dolphin_scoring_config.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_entity_annotations.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_entity_group_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_frame_similarity_interval.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_frame_starburst_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_generative_prediction_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_generative_topic_prediction_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_instruction_anchor_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_instruction_training_data_anchor_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_list_anchor_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_list_anchor_set_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_list_training_data_anchor_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_list_training_data_set_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_match_scores.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_metric_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_multimodal_topic_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_multimodal_topic_training_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_named_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_navboost_anchor_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_ocr_asr_feature.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_ocr_asr_set_feature.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_ocr_description_training_data_anchor_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_ocr_description_training_data_set_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_ocr_text.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_ocr_video_feature.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_on_screen_text_cluster_feature.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_on_screen_text_feature.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_qbst_terms_overlap_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_qna_anchor_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_qna_anchor_set_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_rank_embed_nearest_neighbors_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_saft_entity_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_shopping_opinions_anchor_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_similarity_match_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_span_dolphin_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_span_dolphin_scores.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_span_dolphin_scores_span_candidate.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_span_dolphin_scores_span_token.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_sports_key_moments_anchor_set_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_text_match_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_text_similarity_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_token_alignment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_token_timing_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_video_actions.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_video_anchor.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_video_anchor_rating_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_video_anchor_score_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_video_anchor_score_info_label_transformation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_video_anchor_set_rating_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_video_anchor_sets.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_video_anchors.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_video_anchors_score_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_video_common_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_video_generated_query_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_video_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_video_introduction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_video_multimodal_topic_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_video_score_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_content_search_visual_features.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_crawl_video_inline_playback_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_do_vi_decoder_configuration.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_file_color_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_file_content_light_level.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_file_frame_packing_arrangement.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_file_hdr10_plus_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_file_mastering_display_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_file_mastering_display_metadata_cie1931_coordinate.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_file_spherical_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_file_spherical_metadata_cropped_area.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_file_spherical_metadata_cubemap_projection.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_file_spherical_metadata_equirect_projection.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_file_spherical_metadata_fov_bounds.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_file_spherical_metadata_mesh_projection.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_file_spherical_metadata_pose.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_file_spherical_metadata_view_direction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_google_video_clip_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_legos_legos_annotations_set.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_legos_legos_annotations_sets.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_media_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_media_overview.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_media_overview_audio_overview.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_media_overview_data_overview.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_media_overview_media_clip_info_overview.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_media_overview_timed_text_overview.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_media_overview_video_overview.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_per_doc_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_pipeline_viper_thumbnailer_column_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_pipeline_viper_vsi_column_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_pipeline_viper_vsi_column_data_vsi_stats.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_rational32.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_sei_message.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_storage_loudness_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_thumbnails_frame_file.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_thumbnails_frame_file_list.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_thumbnails_thumbnail_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_timedtext_s4_ali_results.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_timedtext_s4_lang_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_user_data_registered_itu_tt35.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_user_data_unregistered.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_video_clip_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_video_geo_location.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_video_stream.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_video_stream_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_video_stream_info_audio_stream.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_video_stream_info_data_stream.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_video_stream_info_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_video_stream_info_metadata_lut_attachments.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_video_stream_info_metadata_lut_attachments_lut3_d.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_video_stream_info_timed_text_stream.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_video_stream_info_video_stream.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_video_stream_info_video_stream_clean_aperture.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_video_stream_info_video_stream_statistics.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_youtube_comments_classification_proto_smart_suggestion.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_youtube_comments_classification_proto_you_tube_comment_smart_reply.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/video_youtube_comments_ranking_ctr_metrics.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/watchpage_language_watch_page_language_model_predictions.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/watchpage_language_watch_page_language_model_predictions_language_score.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/watchpage_language_watch_page_language_result.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/weboftrust_live_result_doc_boost_data.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/weboftrust_live_result_provider_doc_attachment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/weboftrust_live_results_doc_attachments.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/weboftrust_time_range.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/webutil_html_types_safe_html_proto.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/wireless_transcoder_fetch_fetch_metadata.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/wireless_transcoder_fetch_fetch_source_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/www_doc_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/www_doc_info_related_images.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/www_doc_info_thumbnail.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/www_meta_tag.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/www_result_info_sub_image_doc_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/www_snippet_response.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/www_snippet_response_bitmap_pb.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_backstage_super_vod_comment_info.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_comments_api_comment_moderated_restriction.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_comments_api_comment_moderated_restriction_auto_mod_decision_enforcement.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_comments_api_comment_restriction_issuer.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_comments_api_comment_restriction_issuer_channel_moderator_details.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_comments_api_comment_restriction_issuer_channel_owner_details.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_comments_api_comment_restriction_reason.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_comments_clustering_mini_stanza.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_comments_ranking_you_tube_comment_text_embedding.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_comments_ranking_you_tube_comment_text_quality_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_comments_sentiment_sentiment.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_comments_sentiment_sentiment_entity_sentiment_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_comments_sentiment_sentiment_entity_sentiment_annotation_mention_sentiment_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_discovery_legos_legos_annotation.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_discovery_legos_legos_annotations.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_discovery_legos_legos_entity.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_discovery_legos_legos_format_relationship.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_discovery_legos_legos_present_relationship.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_discovery_legos_legos_semantic_relationship.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_discovery_legos_legos_semantic_relationship_context.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_discovery_legos_legos_taxonomic_relationship.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_distiller_blarney_stone_scores.ex create mode 100644 clients/content_warehouse/lib/google_api/content_warehouse/v1/model/youtube_distiller_model_score.ex create mode 100644 clients/content_warehouse/mix.exs create mode 100644 clients/content_warehouse/test/test_helper.exs diff --git a/clients/content_warehouse/.gitignore b/clients/content_warehouse/.gitignore new file mode 100644 index 0000000000..6bf4496152 --- /dev/null +++ b/clients/content_warehouse/.gitignore @@ -0,0 +1,37 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +# The directory Mix will write compiled artifacts to. +/_build + +# If you run "mix test --cover", coverage assets end up here. +/cover + +# The directory Mix downloads your dependencies sources to. +/deps + +# Where 3rd-party dependencies like ExDoc output generated docs. +/doc + +# Ignore .fetch files in case you like to edit your project deps locally. +/.fetch + +# If the VM crashes, it generates a dump, let's ignore it too. +erl_crash.dump + +# Also ignore archive artifacts (built via "mix archive.build"). +*.ez diff --git a/clients/content_warehouse/LICENSE b/clients/content_warehouse/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/clients/content_warehouse/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/clients/content_warehouse/README.md b/clients/content_warehouse/README.md new file mode 100644 index 0000000000..c92b443039 --- /dev/null +++ b/clients/content_warehouse/README.md @@ -0,0 +1,23 @@ +# GoogleApi.ContentWarehouse + +Document AI Warehouse API client library. + + + +## Installation + +Install this package from [Hex](https://hex.pm) by adding +`google_api_content_warehouse` to your list of dependencies in `mix.exs`: + +```elixir +def deps do + [{:google_api_content_warehouse, "~> 0.2"}] +end +``` + +## For more information + +Product documentation is available at [https://cloud.google.com/document-warehouse](https://cloud.google.com/document-warehouse). + +Library reference documentation is published on Hexdocs at +[https://hexdocs.pm/google_api_content_warehouse](https://hexdocs.pm/google_api_content_warehouse). diff --git a/clients/content_warehouse/config/config.exs b/clients/content_warehouse/config/config.exs new file mode 100644 index 0000000000..07afe5f311 --- /dev/null +++ b/clients/content_warehouse/config/config.exs @@ -0,0 +1,20 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +use Mix.Config + + diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/api/projects.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/api/projects.ex new file mode 100644 index 0000000000..b137decde3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/api/projects.ex @@ -0,0 +1,2756 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Api.Projects do + @moduledoc """ + API calls for all endpoints tagged `Projects`. + """ + + alias GoogleApi.ContentWarehouse.V1.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Gets the access control policy for a resource. Returns NOT_FOUND error if the resource does not exist. Returns an empty policy if the resource exists but does not have a policy set. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `resource` (*type:* `String.t`) - Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FetchAclRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FetchAclResponse{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_fetch_acl(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FetchAclResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_fetch_acl(connection, resource, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+resource}:fetchAcl", %{ + "resource" => URI.encode(resource, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FetchAclResponse{} + ] + ) + end + + @doc """ + Sets the access control policy for a resource. Replaces any existing policy. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `resource` (*type:* `String.t`) - Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SetAclRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SetAclResponse{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_set_acl(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SetAclResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_set_acl(connection, resource, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+resource}:setAcl", %{ + "resource" => URI.encode(resource, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SetAclResponse{} + ] + ) + end + + @doc """ + Get the project status. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `location` (*type:* `String.t`) - Required. The location to be queried Format: projects/{project_number}/locations/{location}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProjectStatus{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_get_status( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProjectStatus.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_get_status( + connection, + location, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+location}:getStatus", %{ + "location" => URI.encode(location, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProjectStatus{} + ] + ) + end + + @doc """ + Provisions resources for given tenant project. Returns a long running operation. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `location` (*type:* `String.t`) - Required. The location to be initialized Format: projects/{project_number}/locations/{location}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1InitializeProjectRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_initialize( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_initialize( + connection, + location, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+location}:initialize", %{ + "location" => URI.encode(location, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleLongrunningOperation{}] + ) + end + + @doc """ + Run a predefined pipeline. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name which owns the resources of the pipeline. Format: projects/{project_number}/locations/{location}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_run_pipeline( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_run_pipeline( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+name}:runPipeline", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleLongrunningOperation{}] + ) + end + + @doc """ + Creates a document schema. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_document_schemas_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_document_schemas_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/documentSchemas", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema{} + ] + ) + end + + @doc """ + Deletes a document schema. Returns NOT_FOUND if the document schema does not exist. Returns BAD_REQUEST if the document schema has documents depending on it. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the document schema to delete. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_document_schemas_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_document_schemas_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Gets a document schema. Returns NOT_FOUND if the document schema does not exist. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the document schema to retrieve. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_document_schemas_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_document_schemas_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema{} + ] + ) + end + + @doc """ + Lists document schemas. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent, which owns this collection of document schemas. Format: projects/{project_number}/locations/{location}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:pageSize` (*type:* `integer()`) - The maximum number of document schemas to return. The service may return fewer than this value. If unspecified, at most 50 document schemas will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListDocumentSchemas` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDocumentSchemas` must match the call that provided the page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListDocumentSchemasResponse{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_document_schemas_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListDocumentSchemasResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_document_schemas_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/documentSchemas", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListDocumentSchemasResponse{} + ] + ) + end + + @doc """ + Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the Document Schema is non-empty and does not equal the existing name. Supports only appending new properties, adding new ENUM possible values, and updating the EnumTypeOptions.validation_check_disabled flag for ENUM possible values. Updating existing properties will result into INVALID_ARGUMENT. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the document schema to update. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentSchemaRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_document_schemas_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_document_schemas_patch( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema{} + ] + ) + end + + @doc """ + Creates a document. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent name. Format: projects/{project_number}/locations/{location}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentResponse{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_documents_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_documents_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/documents", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentResponse{} + ] + ) + end + + @doc """ + Deletes a document. Returns NOT_FOUND if the document does not exist. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the document to delete. Format: projects/{project_number}/locations/{location}/documents/{document_id} or projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_documents_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_documents_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+name}:delete", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Gets the access control policy for a resource. Returns NOT_FOUND error if the resource does not exist. Returns an empty policy if the resource exists but does not have a policy set. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `resource` (*type:* `String.t`) - Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FetchAclRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FetchAclResponse{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_documents_fetch_acl( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FetchAclResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_documents_fetch_acl( + connection, + resource, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+resource}:fetchAcl", %{ + "resource" => URI.encode(resource, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FetchAclResponse{} + ] + ) + end + + @doc """ + Gets a document. Returns NOT_FOUND if the document does not exist. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the document to retrieve. Format: projects/{project_number}/locations/{location}/documents/{document_id} or projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GetDocumentRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_documents_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_documents_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+name}:get", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document{}] + ) + end + + @doc """ + Return all source document-links from the document. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The name of the document, for which all source links are returned. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedSourcesRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedSourcesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_documents_linked_sources( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedSourcesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_documents_linked_sources( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/linkedSources", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedSourcesResponse{} + ] + ) + end + + @doc """ + Return all target document-links from the document. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The name of the document, for which all target links are returned. Format: projects/{project_number}/locations/{location}/documents/{target_document_id}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedTargetsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedTargetsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_documents_linked_targets( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedTargetsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_documents_linked_targets( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/linkedTargets", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedTargetsResponse{} + ] + ) + end + + @doc """ + Lock the document so the document cannot be updated by other users. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the document to lock. Format: projects/{project_number}/locations/{location}/documents/{document}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1LockDocumentRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_documents_lock( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_documents_lock( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+name}:lock", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document{}] + ) + end + + @doc """ + Updates a document. Returns INVALID_ARGUMENT if the name of the document is non-empty and does not equal the existing name. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the document to update. Format: projects/{project_number}/locations/{location}/documents/{document_id} or projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentResponse{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_documents_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_documents_patch( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentResponse{} + ] + ) + end + + @doc """ + Searches for documents using provided SearchDocumentsRequest. This call only returns documents that the caller has permission to search against. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent, which owns this collection of documents. Format: projects/{project_number}/locations/{location}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_documents_search( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_documents_search( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/documents:search", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsResponse{} + ] + ) + end + + @doc """ + Sets the access control policy for a resource. Replaces any existing policy. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `resource` (*type:* `String.t`) - Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SetAclRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SetAclResponse{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_documents_set_acl( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SetAclResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_documents_set_acl( + connection, + resource, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+resource}:setAcl", %{ + "resource" => URI.encode(resource, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SetAclResponse{} + ] + ) + end + + @doc """ + Create a link between a source document and a target document. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. Parent of the document-link to be created. parent of document-link should be a document. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentLinkRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentLink{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_documents_document_links_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentLink.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_documents_document_links_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/documentLinks", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentLink{}] + ) + end + + @doc """ + Remove the link between the source and target documents. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the document-link to be deleted. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentLinkRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_documents_document_links_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_documents_document_links_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+name}:delete", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Deletes a document. Returns NOT_FOUND if the document does not exist. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the document to delete. Format: projects/{project_number}/locations/{location}/documents/{document_id} or projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_documents_reference_id_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_documents_reference_id_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+name}:delete", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Gets a document. Returns NOT_FOUND if the document does not exist. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the document to retrieve. Format: projects/{project_number}/locations/{location}/documents/{document_id} or projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GetDocumentRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_documents_reference_id_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_documents_reference_id_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+name}:get", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document{}] + ) + end + + @doc """ + Updates a document. Returns INVALID_ARGUMENT if the name of the document is non-empty and does not equal the existing name. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the document to update. Format: projects/{project_number}/locations/{location}/documents/{document_id} or projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentResponse{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_documents_reference_id_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_documents_reference_id_patch( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentResponse{} + ] + ) + end + + @doc """ + Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The name of the operation resource. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_operations_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_operations_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleLongrunningOperation{}] + ) + end + + @doc """ + Creates a ruleset. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent name. Format: projects/{project_number}/locations/{location}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_rule_sets_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_rule_sets_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/ruleSets", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet{}] + ) + end + + @doc """ + Deletes a ruleset. Returns NOT_FOUND if the document does not exist. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the rule set to delete. Format: projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_rule_sets_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_rule_sets_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the rule set to retrieve. Format: projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_rule_sets_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_rule_sets_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet{}] + ) + end + + @doc """ + Lists rulesets. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent, which owns this collection of document. Format: projects/{project_number}/locations/{location}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:pageSize` (*type:* `integer()`) - The maximum number of rule sets to return. The service may return fewer than this value. If unspecified, at most 50 rule sets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListRuleSets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRuleSets` must match the call that provided the page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListRuleSetsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_rule_sets_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListRuleSetsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_rule_sets_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/ruleSets", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListRuleSetsResponse{} + ] + ) + end + + @doc """ + Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset is non-empty and does not equal the existing name. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the rule set to update. Format: projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateRuleSetRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_rule_sets_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_rule_sets_patch( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet{}] + ) + end + + @doc """ + Creates a SynonymSet for a single context. Throws an ALREADY_EXISTS exception if a synonymset already exists for the context. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent name. Format: projects/{project_number}/locations/{location}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_synonym_sets_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_synonym_sets_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/synonymSets", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet{}] + ) + end + + @doc """ + Deletes a SynonymSet for a given context. Throws a NOT_FOUND exception if the SynonymSet is not found. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the synonymSet to delete Format: projects/{project_number}/locations/{location}/synonymSets/{context}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_synonym_sets_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_synonym_sets_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Gets a SynonymSet for a particular context. Throws a NOT_FOUND exception if the Synonymset does not exist + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the synonymSet to retrieve Format: projects/{project_number}/locations/{location}/synonymSets/{context}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_synonym_sets_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_synonym_sets_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet{}] + ) + end + + @doc """ + Returns all SynonymSets (for all contexts) for the specified location. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent name. Format: projects/{project_number}/locations/{location}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:pageSize` (*type:* `integer()`) - The maximum number of synonymSets to return. The service may return fewer than this value. If unspecified, at most 50 rule sets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListSynonymSets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSynonymSets` must match the call that provided the page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListSynonymSetsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_synonym_sets_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListSynonymSetsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_synonym_sets_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/synonymSets", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListSynonymSetsResponse{} + ] + ) + end + + @doc """ + Remove the existing SynonymSet for the context and replaces it with a new one. Throws a NOT_FOUND exception if the SynonymSet is not found. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContentWarehouse.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the synonymSet to update Format: projects/{project_number}/locations/{location}/synonymSets/{context}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet{}}` on success + * `{:error, info}` on failure + """ + @spec contentwarehouse_projects_locations_synonym_sets_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contentwarehouse_projects_locations_synonym_sets_patch( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet{}] + ) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/connection.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/connection.ex new file mode 100644 index 0000000000..fe8bb5b2a3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/connection.ex @@ -0,0 +1,32 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Connection do + @moduledoc """ + Handle Tesla connections for GoogleApi.ContentWarehouse.V1. + """ + + @type t :: Tesla.Env.client() + + use GoogleApi.Gax.Connection, + scopes: [ + # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. + "https://www.googleapis.com/auth/cloud-platform" + ], + otp_app: :google_api_content_warehouse, + base_url: "https://contentwarehouse.googleapis.com/" +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/metadata.ex new file mode 100644 index 0000000000..3132f76f14 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/metadata.ex @@ -0,0 +1,26 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1 do + @moduledoc """ + API client metadata for GoogleApi.ContentWarehouse.V1. + """ + + @discovery_revision "20231106" + + def discovery_revision(), do: @discovery_revision +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_abuse_type.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_abuse_type.ex new file mode 100644 index 0000000000..5177335e41 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_abuse_type.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamAbuseType do + @moduledoc """ + + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - + * `subtype` (*type:* `String.t`, *default:* `nil`) - Optional client specific subtype of abuse that is too specific to belong in the above enumeration. For example, some client may want to differentiate nudity from graphic sex, but both are PORNOGRAPHY. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :subtype => String.t() | nil + } + + field(:id) + field(:subtype) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamAbuseType do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamAbuseType.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamAbuseType do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_age_restriction.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_age_restriction.ex new file mode 100644 index 0000000000..bc9c354214 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_age_restriction.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamAgeRestriction do + @moduledoc """ + + + ## Attributes + + * `ageYears` (*type:* `integer()`, *default:* `nil`) - This restriction applies if the user is between [min_age_years, age_years) years old. + * `minAgeYears` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ageYears => integer() | nil, + :minAgeYears => integer() | nil + } + + field(:ageYears) + field(:minAgeYears) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamAgeRestriction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamAgeRestriction.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamAgeRestriction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_and_restriction.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_and_restriction.ex new file mode 100644 index 0000000000..9eda4362fd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_and_restriction.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamAndRestriction do + @moduledoc """ + + + ## Attributes + + * `child` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction.t)`, *default:* `nil`) - This restriction applies if all of the children apply. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :child => list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction.t()) | nil + } + + field(:child, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamAndRestriction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamAndRestriction.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamAndRestriction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_client.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_client.ex new file mode 100644 index 0000000000..3927917716 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_client.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamClient do + @moduledoc """ + A client is be a Google product, or subproduct that provides content for AbuseIAm to classify. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - + * `subservice` (*type:* `String.t`, *default:* `nil`) - The name of the subservice within a client. This subservice can be used to affect the flow of decision script, or selection of backend classifiers. For example, StreetView may want to specify a panel is insufficiently blurred (maybe there is a lisense plate or public sex, etc), which requires manual review then the subservice might be "blurring". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :subservice => String.t() | nil + } + + field(:id) + field(:subservice) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamClient do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamClient.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamClient do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_cluster_evaluation_context.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_cluster_evaluation_context.ex new file mode 100644 index 0000000000..38fcdc8e3f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_cluster_evaluation_context.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamClusterEvaluationContext do + @moduledoc """ + Extra information regarding evaluations received through cluster review. + + ## Attributes + + * `clusterFamily` (*type:* `String.t`, *default:* `nil`) - The family of the cluster where the case received the evaluation. + * `clusterRowkey` (*type:* `String.t`, *default:* `nil`) - The AbuseIAm rowkey of the cluster where the case received an evaluation. + * `gaiaIdToEscalate` (*type:* `String.t`, *default:* `nil`) - The gaia id of a mail box that ops can send inquiries to for appeals. Used only by user clusters to fill a required gatekeeper param. See gaia_disableserver.DisableSpec.escalate_to field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clusterFamily => String.t() | nil, + :clusterRowkey => String.t() | nil, + :gaiaIdToEscalate => String.t() | nil + } + + field(:clusterFamily) + field(:clusterRowkey) + field(:gaiaIdToEscalate) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamClusterEvaluationContext do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamClusterEvaluationContext.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamClusterEvaluationContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_constant_restriction.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_constant_restriction.ex new file mode 100644 index 0000000000..840f38433e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_constant_restriction.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamConstantRestriction do + @moduledoc """ + + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - A constant of type TRUE always applies, and of type FALSE never applies. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamConstantRestriction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamConstantRestriction.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamConstantRestriction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_content_restriction.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_content_restriction.ex new file mode 100644 index 0000000000..1642b86c7d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_content_restriction.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamContentRestriction do + @moduledoc """ + Pair of Verdicts used for ProjectR age/geo gating. See http://go/projectr for more information. + + ## Attributes + + * `adminVerdict` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdict.t)`, *default:* `nil`) - Takedowns specified by admins via AbuseIAm + * `userVerdict` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdict.t)`, *default:* `nil`) - User-specified takedowns + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adminVerdict => list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdict.t()) | nil, + :userVerdict => list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdict.t()) | nil + } + + field(:adminVerdict, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdict, type: :list) + field(:userVerdict, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdict, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamContentRestriction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamContentRestriction.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamContentRestriction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_evaluation.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_evaluation.ex new file mode 100644 index 0000000000..da47c10841 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_evaluation.ex @@ -0,0 +1,106 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamEvaluation do + @moduledoc """ + Backends return Evaluations to AbuseIAm. One of the things Evaluations are used for is to explain Verdicts. + + ## Attributes + + * `abuseType` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamAbuseType.t`, *default:* `nil`) - + * `backend` (*type:* `String.t`, *default:* `nil`) - Who creates this Evaluation. This field is required. + * `clusterEvaluationContext` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamClusterEvaluationContext.t`, *default:* `nil`) - Extra information regarding the cluster review context where the case received the evaluation. + * `comment` (*type:* `String.t`, *default:* `nil`) - Backends can choose to put some debug info in addition to abuse_type, score, and status. + * `feature` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamFeature.t)`, *default:* `nil`) - A set of repeated features to allow adapters to return semi structured data. Please, prefer using feature instead of the old misc_data field since it supports richer and more structured data to be passed back. + * `manualReviewInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewEvaluationInfo.t`, *default:* `nil`) - Information about the manual review, for manual review evaluations. Do NOT expect this field to be set if `backend != MANUAL_REVIEW`. + * `miscData` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamNameValuePair.t)`, *default:* `nil`) - This field is used to store miscellaneous information that Backend might provide. If you find youself here considering to use this field, please prefer using the repeated feature field below instead. It supports a richer structure for passing complex data back from the backend. + * `processTimeMillisecs` (*type:* `String.t`, *default:* `nil`) - Time in milliseconds when the Backend processed this Evaluation. + * `processedMicros` (*type:* `String.t`, *default:* `nil`) - When the evaluation was processed by the decision script. + * `region` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamRegion.t)`, *default:* `nil`) - The list of regions where the evaluation applies. + * `score` (*type:* `float()`, *default:* `nil`) - + * `status` (*type:* `String.t`, *default:* `nil`) - + * `target` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamTarget.t`, *default:* `nil`) - + * `timestampMicros` (*type:* `String.t`, *default:* `nil`) - When the Evaluation was generated. + * `userRestriction` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction.t`, *default:* `nil`) - A boolean expression tree used to define the restrictions where the verdict applies. Please use java/com/google/ccc/abuse/abuseiam/client/TakedownManager.java to evaluate this proto. + * `version` (*type:* `String.t`, *default:* `nil`) - Version of Backend. For rules, this string is the only way to differentiate between them. + * `videoReviewData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamVideoReviewData.t`, *default:* `nil`) - Information about the video review, for video review evaluations. Do NOT expect this field to be set if `backend != VIDEO_REVIEW`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :abuseType => GoogleApi.ContentWarehouse.V1.Model.AbuseiamAbuseType.t() | nil, + :backend => String.t() | nil, + :clusterEvaluationContext => + GoogleApi.ContentWarehouse.V1.Model.AbuseiamClusterEvaluationContext.t() | nil, + :comment => String.t() | nil, + :feature => list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamFeature.t()) | nil, + :manualReviewInfo => + GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewEvaluationInfo.t() | nil, + :miscData => list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamNameValuePair.t()) | nil, + :processTimeMillisecs => String.t() | nil, + :processedMicros => String.t() | nil, + :region => list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamRegion.t()) | nil, + :score => float() | nil, + :status => String.t() | nil, + :target => GoogleApi.ContentWarehouse.V1.Model.AbuseiamTarget.t() | nil, + :timestampMicros => String.t() | nil, + :userRestriction => + GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction.t() | nil, + :version => String.t() | nil, + :videoReviewData => + GoogleApi.ContentWarehouse.V1.Model.AbuseiamVideoReviewData.t() | nil + } + + field(:abuseType, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamAbuseType) + field(:backend) + + field(:clusterEvaluationContext, + as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamClusterEvaluationContext + ) + + field(:comment) + field(:feature, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamFeature, type: :list) + + field(:manualReviewInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewEvaluationInfo + ) + + field(:miscData, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamNameValuePair, type: :list) + field(:processTimeMillisecs) + field(:processedMicros) + field(:region, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamRegion, type: :list) + field(:score) + field(:status) + field(:target, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamTarget) + field(:timestampMicros) + field(:userRestriction, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction) + field(:version) + field(:videoReviewData, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamVideoReviewData) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamEvaluation do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamEvaluation.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamEvaluation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_feature.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_feature.ex new file mode 100644 index 0000000000..61ca72b7de --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_feature.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamFeature do + @moduledoc """ + + + ## Attributes + + * `booleanValue` (*type:* `boolean()`, *default:* `nil`) - Exactly one of the following should be filled in. + * `doubleValue` (*type:* `float()`, *default:* `nil`) - + * `featureCount` (*type:* `String.t`, *default:* `nil`) - Useful for applications that need to know how many times a specific feature occurs + * `int64Value` (*type:* `String.t`, *default:* `nil`) - Useful for timestamps, or for numerical features where it is helpful for decision scripts to have exact values. + * `integerValue` (*type:* `integer()`, *default:* `nil`) - integer value field is deprecated and shall only be used for passing the following features hardcoded in spamiam::SpamIAmMessage: spamiam::OrkutSenderId spamiam::OrkutPostnumReports spamiam::BloggerNumComments spamiam::BloggerNumCommentsByOthers Another hard-coded spamiam feature is spamiam::BlogName, which can be specified via string value. + * `name` (*type:* `String.t`, *default:* `nil`) - + * `stringValue` (*type:* `list(String.t)`, *default:* `nil`) - + * `timestampSequence` (*type:* `list(String.t)`, *default:* `nil`) - This field should only be used to store a sequence of timestamps associated with the feature. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :booleanValue => boolean() | nil, + :doubleValue => float() | nil, + :featureCount => String.t() | nil, + :int64Value => String.t() | nil, + :integerValue => integer() | nil, + :name => String.t() | nil, + :stringValue => list(String.t()) | nil, + :timestampSequence => list(String.t()) | nil + } + + field(:booleanValue) + field(:doubleValue) + field(:featureCount) + field(:int64Value) + field(:integerValue) + field(:name) + field(:stringValue, type: :list) + field(:timestampSequence, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamFeature do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamFeature.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamFeature do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_geo_restriction.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_geo_restriction.ex new file mode 100644 index 0000000000..533051605f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_geo_restriction.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamGeoRestriction do + @moduledoc """ + A node representing a table of regions and restrictions that apply to those regions. This table understands region inclusion and knows to apply the most specific rule, for example, a rule for France would override a rule for the EU for a user in France. + + ## Attributes + + * `locale` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamGeoRestrictionLocale.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :locale => + list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamGeoRestrictionLocale.t()) | nil + } + + field(:locale, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamGeoRestrictionLocale, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamGeoRestriction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamGeoRestriction.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamGeoRestriction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_geo_restriction_locale.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_geo_restriction_locale.ex new file mode 100644 index 0000000000..aafe149b34 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_geo_restriction_locale.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamGeoRestrictionLocale do + @moduledoc """ + + + ## Attributes + + * `location` (*type:* `String.t`, *default:* `nil`) - The location where the restriction applies. Defaults to the "The world". See go/iii. + * `restriction` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction.t`, *default:* `nil`) - The UserRestriction that applies to this location. If not specified evaluates to true. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :location => String.t() | nil, + :restriction => GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction.t() | nil + } + + field(:location) + field(:restriction, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamGeoRestrictionLocale do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamGeoRestrictionLocale.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamGeoRestrictionLocale do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_hash.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_hash.ex new file mode 100644 index 0000000000..4439001598 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_hash.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamHash do + @moduledoc """ + Information about various hashes that can be computed on a message ex: simhash, attachment hash, etc + + ## Attributes + + * `hash` (*type:* `String.t`, *default:* `nil`) - 64 bit hash in the hex form. + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :hash => String.t() | nil, + :type => String.t() | nil + } + + field(:hash) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamHash do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamHash.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamHash do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_manual_review_evaluation_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_manual_review_evaluation_info.ex new file mode 100644 index 0000000000..b99927b4d0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_manual_review_evaluation_info.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewEvaluationInfo do + @moduledoc """ + Relevant information for manual review evaluations. + + ## Attributes + + * `reviewer` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewerInfo.t`, *default:* `nil`) - Reviewer performing the manual review. + * `tool` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewTool.t`, *default:* `nil`) - Tool used to perform the manual review. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :reviewer => GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewerInfo.t() | nil, + :tool => GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewTool.t() | nil + } + + field(:reviewer, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewerInfo) + field(:tool, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewTool) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewEvaluationInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewEvaluationInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewEvaluationInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_manual_review_tool.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_manual_review_tool.ex new file mode 100644 index 0000000000..bcd2cb9365 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_manual_review_tool.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewTool do + @moduledoc """ + + + ## Attributes + + * `experimentId` (*type:* `String.t`, *default:* `nil`) - + * `name` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :experimentId => String.t() | nil, + :name => String.t() | nil + } + + field(:experimentId) + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewTool do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewTool.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewTool do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_manual_reviewer_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_manual_reviewer_info.ex new file mode 100644 index 0000000000..84c9f8f5a7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_manual_reviewer_info.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewerInfo do + @moduledoc """ + + + ## Attributes + + * `credential` (*type:* `list(String.t)`, *default:* `nil`) - + * `username` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :credential => list(String.t()) | nil, + :username => String.t() | nil + } + + field(:credential, type: :list) + field(:username) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewerInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewerInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamManualReviewerInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_name_value_pair.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_name_value_pair.ex new file mode 100644 index 0000000000..9975f9ce55 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_name_value_pair.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamNameValuePair do + @moduledoc """ + + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - + * `nonUtf8Value` (*type:* `String.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :nonUtf8Value => String.t() | nil, + :value => String.t() | nil + } + + field(:name) + field(:nonUtf8Value) + field(:value) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamNameValuePair do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamNameValuePair.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamNameValuePair do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_not_restriction.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_not_restriction.ex new file mode 100644 index 0000000000..baf537b1ff --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_not_restriction.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamNotRestriction do + @moduledoc """ + + + ## Attributes + + * `child` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction.t)`, *default:* `nil`) - This restriction applies if the child does not apply. Only one is allowed. "repeated" is used to avoid breaking Sawzall (See b/6758277). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :child => list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction.t()) | nil + } + + field(:child, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamNotRestriction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamNotRestriction.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamNotRestriction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_or_restriction.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_or_restriction.ex new file mode 100644 index 0000000000..8a5cc26806 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_or_restriction.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamOrRestriction do + @moduledoc """ + + + ## Attributes + + * `child` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction.t)`, *default:* `nil`) - This restriction applies if any of the children apply. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :child => list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction.t()) | nil + } + + field(:child, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamOrRestriction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamOrRestriction.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamOrRestriction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_region.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_region.ex new file mode 100644 index 0000000000..bd54536029 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_region.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamRegion do + @moduledoc """ + + + ## Attributes + + * `region` (*type:* `String.t`, *default:* `nil`) - This is a CLDR Region Code: http://wiki/Main/IIIHowTo#using_region It is used to denote the region affected by a verdict. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :region => String.t() | nil + } + + field(:region) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamRegion do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamRegion.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamRegion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_special_restriction.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_special_restriction.ex new file mode 100644 index 0000000000..e58b98d223 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_special_restriction.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamSpecialRestriction do + @moduledoc """ + A SpecialRestriction is a standardized UserRestriction which lives in a table maintained via CDD. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamSpecialRestriction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamSpecialRestriction.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamSpecialRestriction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_target.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_target.ex new file mode 100644 index 0000000000..0815d262e6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_target.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamTarget do + @moduledoc """ + + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :type => String.t() | nil + } + + field(:id) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamTarget do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamTarget.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamTarget do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_user_notification.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_user_notification.ex new file mode 100644 index 0000000000..19edadc26e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_user_notification.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserNotification do + @moduledoc """ + A structure used to configure a notification to a user. + + ## Attributes + + * `channel` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :channel => String.t() | nil + } + + field(:channel) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserNotification do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserNotification.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserNotification do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_user_restriction.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_user_restriction.ex new file mode 100644 index 0000000000..f1c2314c93 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_user_restriction.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction do + @moduledoc """ + Describes restrictions on where the verdict applies. Please use {@code TakedownManager} to evaluate this proto. + + ## Attributes + + * `ageRestriction` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamAgeRestriction.t`, *default:* `nil`) - + * `andRestriction` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamAndRestriction.t`, *default:* `nil`) - Operators + * `constantRestriction` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamConstantRestriction.t`, *default:* `nil`) - Constant + * `geoRestriction` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamGeoRestriction.t`, *default:* `nil`) - Leaf Nodes + * `notRestriction` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamNotRestriction.t`, *default:* `nil`) - + * `orRestriction` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamOrRestriction.t`, *default:* `nil`) - + * `specialRestriction` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamSpecialRestriction.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ageRestriction => GoogleApi.ContentWarehouse.V1.Model.AbuseiamAgeRestriction.t() | nil, + :andRestriction => GoogleApi.ContentWarehouse.V1.Model.AbuseiamAndRestriction.t() | nil, + :constantRestriction => + GoogleApi.ContentWarehouse.V1.Model.AbuseiamConstantRestriction.t() | nil, + :geoRestriction => GoogleApi.ContentWarehouse.V1.Model.AbuseiamGeoRestriction.t() | nil, + :notRestriction => GoogleApi.ContentWarehouse.V1.Model.AbuseiamNotRestriction.t() | nil, + :orRestriction => GoogleApi.ContentWarehouse.V1.Model.AbuseiamOrRestriction.t() | nil, + :specialRestriction => + GoogleApi.ContentWarehouse.V1.Model.AbuseiamSpecialRestriction.t() | nil + } + + field(:ageRestriction, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamAgeRestriction) + field(:andRestriction, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamAndRestriction) + field(:constantRestriction, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamConstantRestriction) + field(:geoRestriction, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamGeoRestriction) + field(:notRestriction, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamNotRestriction) + field(:orRestriction, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamOrRestriction) + field(:specialRestriction, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamSpecialRestriction) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_verdict.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_verdict.ex new file mode 100644 index 0000000000..e9751726df --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_verdict.ex @@ -0,0 +1,107 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdict do + @moduledoc """ + Verdict against a target. AbuseIAm generates a verdict based on evaluations. AbuseIAm can send such verdicts to clients for enforcement. + + ## Attributes + + * `client` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamClient.t`, *default:* `nil`) - Target client of the verdict. It can be used to differentiate verdicts from multiple clients when such verdicts are processed in one common place. + * `comment` (*type:* `String.t`, *default:* `nil`) - Additional info regarding the verdict. + * `decision` (*type:* `String.t`, *default:* `nil`) - + * `durationMins` (*type:* `integer()`, *default:* `nil`) - Time duration (in minutes) of the verdict. + * `evaluation` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamEvaluation.t)`, *default:* `nil`) - Evaluations relevant to this verdict. Every Verdict should contain at least one Evaluation. + * `hashes` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamHash.t)`, *default:* `nil`) - Details of all the hashes that can be computed on a message, such as simhash and attachment hash + * `isLegalIssued` (*type:* `boolean()`, *default:* `nil`) - Is this verdict issued by legal? + * `miscScores` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamNameValuePair.t)`, *default:* `nil`) - This field is used to pass relevant / necessary scores to our clients. For eg: ASBE propogates these scores to moonshine. + * `reasonCode` (*type:* `String.t`, *default:* `nil`) - A short description of the reason why the verdict decision is made. + * `region` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamRegion.t)`, *default:* `nil`) - The regions in which this verdict should be enforced. Absence of this field indicates that the verdict is applicable everywhere. + * `restriction` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdictRestriction.t)`, *default:* `nil`) - Restrictions on where this verdict applies. If any restriction is met, the verdict is applied there. If no restrictions are present, the verdict is considered global. + * `strikeCategory` (*type:* `String.t`, *default:* `nil`) - Category of the strike if this is a strike verdict. + * `target` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamTarget.t`, *default:* `nil`) - + * `targetTimestampMicros` (*type:* `String.t`, *default:* `nil`) - The timestamp of the target. E.g., the time when the target was updated. + * `timestampMicros` (*type:* `String.t`, *default:* `nil`) - When the verdict is generated + * `userNotification` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserNotification.t)`, *default:* `nil`) - Extra notification(s) to be delivered to target user or message owner about the verdict. + * `version` (*type:* `String.t`, *default:* `nil`) - version of decision script + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :client => GoogleApi.ContentWarehouse.V1.Model.AbuseiamClient.t() | nil, + :comment => String.t() | nil, + :decision => String.t() | nil, + :durationMins => integer() | nil, + :evaluation => list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamEvaluation.t()) | nil, + :hashes => list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamHash.t()) | nil, + :isLegalIssued => boolean() | nil, + :miscScores => + list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamNameValuePair.t()) | nil, + :reasonCode => String.t() | nil, + :region => list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamRegion.t()) | nil, + :restriction => + list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdictRestriction.t()) | nil, + :strikeCategory => String.t() | nil, + :target => GoogleApi.ContentWarehouse.V1.Model.AbuseiamTarget.t() | nil, + :targetTimestampMicros => String.t() | nil, + :timestampMicros => String.t() | nil, + :userNotification => + list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserNotification.t()) | nil, + :version => String.t() | nil + } + + field(:client, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamClient) + field(:comment) + field(:decision) + field(:durationMins) + field(:evaluation, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamEvaluation, type: :list) + field(:hashes, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamHash, type: :list) + field(:isLegalIssued) + field(:miscScores, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamNameValuePair, type: :list) + field(:reasonCode) + field(:region, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamRegion, type: :list) + + field(:restriction, + as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdictRestriction, + type: :list + ) + + field(:strikeCategory) + field(:target, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamTarget) + field(:targetTimestampMicros) + field(:timestampMicros) + + field(:userNotification, + as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserNotification, + type: :list + ) + + field(:version) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdict do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdict.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdict do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_verdict_restriction.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_verdict_restriction.ex new file mode 100644 index 0000000000..8cdc99e2fb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_verdict_restriction.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdictRestriction do + @moduledoc """ + Describes restrictions on where the verdict applies. + + ## Attributes + + * `context` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdictRestrictionContext.t)`, *default:* `nil`) - For a restriction to apply, all contexts must be satisfied. For example, if context[0] is COUNTRY/'GERMANY' and context[1] is DESTINATION_STREAM/'gplus:SQUARE:knitting_discussion', then the verdict applies only when the 'knitting discussion' square is viewed from inside Germany. Please note that this is present for legacy reasons and users of this field would be migrated to use the user_restriction field defined below. + * `userRestriction` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction.t`, *default:* `nil`) - A boolean expression tree used to define the restrictions where the verdict applies. Please use java/com/google/ccc/abuse/abuseiam/client/TakedownManager.java to evaluate this proto. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :context => + list(GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdictRestrictionContext.t()) | nil, + :userRestriction => + GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction.t() | nil + } + + field(:context, + as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdictRestrictionContext, + type: :list + ) + + field(:userRestriction, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamUserRestriction) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdictRestriction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdictRestriction.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdictRestriction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_verdict_restriction_context.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_verdict_restriction_context.ex new file mode 100644 index 0000000000..b9524d04b8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_verdict_restriction_context.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdictRestrictionContext do + @moduledoc """ + Describes a dimension of a context where a verdict applies. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - String identifying the context. + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :type => String.t() | nil + } + + field(:id) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdictRestrictionContext do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdictRestrictionContext.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamVerdictRestrictionContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_video_review_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_video_review_data.ex new file mode 100644 index 0000000000..cc34049759 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_video_review_data.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamVideoReviewData do + @moduledoc """ + Information about a video review. + + ## Attributes + + * `referenceFragment` (*type:* `list(String.t)`, *default:* `nil`) - Serialized repeated youtube_admin.adminmatch.csai.ReferenceFragment + * `reviewer` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AbuseiamVideoReviewer.t`, *default:* `nil`) - Information about the video reviewer. + * `videoId` (*type:* `String.t`, *default:* `nil`) - The Viper id of the video. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :referenceFragment => list(String.t()) | nil, + :reviewer => GoogleApi.ContentWarehouse.V1.Model.AbuseiamVideoReviewer.t() | nil, + :videoId => String.t() | nil + } + + field(:referenceFragment, type: :list) + field(:reviewer, as: GoogleApi.ContentWarehouse.V1.Model.AbuseiamVideoReviewer) + field(:videoId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamVideoReviewData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamVideoReviewData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamVideoReviewData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_video_reviewer.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_video_reviewer.ex new file mode 100644 index 0000000000..ebfe8ae7ab --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/abuseiam_video_reviewer.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AbuseiamVideoReviewer do + @moduledoc """ + Information about video reviewers. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - + * `username` (*type:* `String.t`, *default:* `nil`) - The username of the person doing the video review. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil, + :username => String.t() | nil + } + + field(:type) + field(:username) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamVideoReviewer do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AbuseiamVideoReviewer.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AbuseiamVideoReviewer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ads_shopping_reporting_offers_serialized_sori_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ads_shopping_reporting_offers_serialized_sori_id.ex new file mode 100644 index 0000000000..a61f85a9ca --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/ads_shopping_reporting_offers_serialized_sori_id.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AdsShoppingReportingOffersSerializedSoriId do + @moduledoc """ + The serialized form of a SORI id. NOTE that this proto is stored in V4/O4 index and that new fields should not be added without getting an agreement from the serving team as well. + + ## Attributes + + * `highId` (*type:* `String.t`, *default:* `nil`) - + * `lowId1` (*type:* `String.t`, *default:* `nil`) - + * `lowId2` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :highId => String.t() | nil, + :lowId1 => String.t() | nil, + :lowId2 => String.t() | nil + } + + field(:highId) + field(:lowId1) + field(:lowId2) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AdsShoppingReportingOffersSerializedSoriId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AdsShoppingReportingOffersSerializedSoriId.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AdsShoppingReportingOffersSerializedSoriId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/anchors.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/anchors.ex new file mode 100644 index 0000000000..f756c846a3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/anchors.ex @@ -0,0 +1,82 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.Anchors do + @moduledoc """ + + + ## Attributes + + * `anchor` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchor.t)`, *default:* `nil`) - + * `homepageAnchorsDropped` (*type:* `String.t`, *default:* `nil`) - The total # of local homepage anchors dropped in AnchorAccumulator. + * `indexTier` (*type:* `integer()`, *default:* `nil`) - The index tier from which the anchors were extracted. Note that this is only valid in the anchor record written by linkextractor. The value can be one of the enum values defined in segindexer/types.h. + * `localAnchorsDropped` (*type:* `String.t`, *default:* `nil`) - The total # of local non-homepage anchors dropped in AnchorAccumulator. + * `nonlocalAnchorsDropped` (*type:* `String.t`, *default:* `nil`) - The total # of non-local anchors dropped in AnchorAccumulator. + * `redundantAnchorsDropped` (*type:* `String.t`, *default:* `nil`) - The *_anchors_dropped fields below are not populated by Alexandria, which uses cdoc.anchor_stats instead. The total # of redundant anchors dropped in linkextractor. + * `redundantanchorinfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AnchorsRedundantAnchorInfo.t)`, *default:* `nil`) - + * `supplementalAnchorsDropped` (*type:* `String.t`, *default:* `nil`) - The total # of supplemental anchors dropped in AnchorAccumulator. ## DEPRECATED. + * `targetDocid` (*type:* `String.t`, *default:* `nil`) - may be implicit + * `targetSite` (*type:* `String.t`, *default:* `nil`) - HOST_LEVEL site chunking. + * `targetUrl` (*type:* `String.t`, *default:* `nil`) - This is produced during link extraction but not written out in the linklogs in order to save space. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :anchor => list(GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchor.t()) | nil, + :homepageAnchorsDropped => String.t() | nil, + :indexTier => integer() | nil, + :localAnchorsDropped => String.t() | nil, + :nonlocalAnchorsDropped => String.t() | nil, + :redundantAnchorsDropped => String.t() | nil, + :redundantanchorinfo => + list(GoogleApi.ContentWarehouse.V1.Model.AnchorsRedundantAnchorInfo.t()) | nil, + :supplementalAnchorsDropped => String.t() | nil, + :targetDocid => String.t() | nil, + :targetSite => String.t() | nil, + :targetUrl => String.t() | nil + } + + field(:anchor, as: GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchor, type: :list) + field(:homepageAnchorsDropped) + field(:indexTier) + field(:localAnchorsDropped) + field(:nonlocalAnchorsDropped) + field(:redundantAnchorsDropped) + + field(:redundantanchorinfo, + as: GoogleApi.ContentWarehouse.V1.Model.AnchorsRedundantAnchorInfo, + type: :list + ) + + field(:supplementalAnchorsDropped) + field(:targetDocid) + field(:targetSite) + field(:targetUrl) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.Anchors do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.Anchors.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.Anchors do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/anchors_anchor.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/anchors_anchor.ex new file mode 100644 index 0000000000..e62ed971c2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/anchors_anchor.ex @@ -0,0 +1,161 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchor do + @moduledoc """ + + + ## Attributes + + * `creationDate` (*type:* `integer()`, *default:* `nil`) - used for history - the first and last time we have seen this anchor. creation_date also used for Freshdocs Twitter indexing, a retweet is an anchor of the original tweet. This field records the time when a retweet is created. + * `isLocal` (*type:* `boolean()`, *default:* `nil`) - The bit ~roughly~ indicates whether an anchor's source and target pages are on the same domain. Note: this plays no role in determining whether an anchor is onsite, ondomain, or offdomain in mustang (i.e., the bit above). + * `fullRightContext` (*type:* `list(String.t)`, *default:* `nil`) - + * `firstseenDate` (*type:* `integer()`, *default:* `nil`) - # days past Dec 31, 1994, 23:00:00 UTC (Unix time @788914800) that this link was first seen. Should never occupy more than 15 bits. NOTE: this is NOT the same as creation_date; firstseen_date is filled during link extraction + * `fontsize` (*type:* `integer()`, *default:* `nil`) - + * `linkAdditionalInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - Additional information related to the anchor, such as additional anchor text or scores. + * `catfishTags` (*type:* `list(integer())`, *default:* `nil`) - CATfish tags attached to a link. These are similar to link tags, except the values are created on the fly within Cookbook. See: http://sites/cookbook/exporting/indexing + * `origText` (*type:* `String.t`, *default:* `nil`) - Original text, including capitalization and punctuation. Runs of whitespace are collapsed into a single space. + * `fullLeftContext` (*type:* `list(String.t)`, *default:* `nil`) - The full context. These are not written out in the linklogs. + * `demotionreason` (*type:* `integer()`, *default:* `nil`) - DEPRECATED + * `context` (*type:* `integer()`, *default:* `nil`) - + * `linkTags` (*type:* `list(integer())`, *default:* `nil`) - Contains info on link type, source page, etc. + * `firstseenNearCreation` (*type:* `boolean()`, *default:* `nil`) - true if we think 'firstseen_date' is an accurate estimate of when the link was actually added to the source page. false if it may have existed for some time before we saw it. + * `deleted` (*type:* `boolean()`, *default:* `nil`) - + * `forwardingTypes` (*type:* `integer()`, *default:* `nil`) - How the anchor is forwarded to the canonical, available only for forwarded anchors (i.e., the field is set). The forwarding types are defined in URLForwardingUtil (segindexer/segment-indexer-util.h). Always use URLForwardingUtil to access this field and use URLForwardingUtil::GetAnchorForwardingReason to get the explanation how the anchor is forwarded to the canonical. NOTE: Use with caution as it is only set for docjoins generated using the urlmap from repository/updater. + * `possiblyOldFirstseenDate` (*type:* `boolean()`, *default:* `nil`) - DEPRECATED. It used to be set if firstseen_date is not set. It's to indicate that the anchor is possibly old, but we don't have enough information to tell until the linkage map is updated. TODO(hxu) rename it to possibly_old_firstseen_date_DEPRECATED after clean up other dependencies. + * `context2` (*type:* `integer()`, *default:* `nil`) - This is a hash of terms near the anchor. (This is a second-generation hash replacing the value stored in the 'context' field.) + * `deletionDate` (*type:* `integer()`, *default:* `nil`) - + * `fragment` (*type:* `String.t`, *default:* `nil`) - The URL fragment for this anchor (the foo in http://www.google.com#foo) + * `targetUrlEncoding` (*type:* `integer()`, *default:* `nil`) - A given target URL may be found in different encodings in different documents. We store the URL encoding with each source anchor so that we can count them later to find the encoding most likely to be expected by the Web site. Around 0.7% of target URLs are expected to require a non-default value here. The default value 0 is referenced in C++ as webutil::kDefaultUrlEncoding. See also webutil/urlencoding. + * `originalTargetDocid` (*type:* `String.t`, *default:* `nil`) - The docid of the anchor's original target. This field is available if and only if the anchor is forwarded. + * `encodedNewsAnchorData` (*type:* `integer()`, *default:* `nil`) - Encoded data containing information about newsiness of anchor. Populated only if anchor is classified as coming from a newsy, high quality site. Encoded data for anchor sources are being stored in googledata/quality/freshness/news_anchors/encoded_news_anchors_data.txt Scores are being computed with quality/freshness/news_anchors/ routines. + * `compressedImageUrls` (*type:* `list(String.t)`, *default:* `nil`) - If the anchor contained images, these image urls are stored here in compressed form. + * `compressedOriginalTargetUrl` (*type:* `String.t`, *default:* `nil`) - The anchor's original target url, compressed. Available only in Alexandria docjoins when the anchor is forwarded. + * `experimental` (*type:* `boolean()`, *default:* `nil`) - If true, the anchor is for experimental purposes and should not be used in serving. + * `timestamp` (*type:* `String.t`, *default:* `nil`) - This field is DEPRECATED and no longer filled. For source page crawl timestamp, use Source.crawl_timestamp. Next tag id should be 62. + * `parallelLinks` (*type:* `integer()`, *default:* `nil`) - The number of additional links from the same source page to the same target domain. Not populated if is_local is true. + * `expired` (*type:* `boolean()`, *default:* `nil`) - true iff exp domain + * `offset` (*type:* `integer()`, *default:* `nil`) - This is the offset for the first term in the anchor - it can be used as a unique ID for the anchor within the document and compared against all per-tag data. This is measured in bytes from the start of the document. We write this out to the linklogs to recover the original order of links after source/target forwarding. This is necessary for computing the global related data. + * `text` (*type:* `String.t`, *default:* `nil`) - Space-delimited anchor words. Text that needs segmentation (like CJK or Thai) is unsegmented, since we set FLAGS_segment_during_lexing to false in mr-linkextractor.cc . + * `weight` (*type:* `integer()`, *default:* `nil`) - weights are 0-127 + * `locality` (*type:* `integer()`, *default:* `nil`) - For ranking purposes, the quality of an anchor is measured by its "locality" and "bucket". See quality/anchors/definitions.h for more information. + * `type` (*type:* `integer()`, *default:* `nil`) - DEPRECATED: Now in link_tags + * `lastUpdateTimestamp` (*type:* `integer()`, *default:* `nil`) - Used for history and freshness tracking - the timestamp this anchor is updated in indexing. + * `bucket` (*type:* `integer()`, *default:* `nil`) - + * `setiPagerankWeight` (*type:* `number()`, *default:* `nil`) - TEMPORARY + * `sourceType` (*type:* `integer()`, *default:* `nil`) - is to record the quality of the anchor's source page and is correlated with but not identical to the index tier of the source page. In the docjoins built by the indexing pipeline (Alexandria), - Anchors marked TYPE_HIGH_QUALITY are from base documents. - Anchors marked TYPE_MEDIUM_QUALITY are from documents of medium quality (roughly but not exactly supplemental tier documents). - Anchors marked TYPE_LOW_QUALITY are from documents of low quality (roughly but not exactly blackhole documents). Note that the source_type can also be used as an importance indicator of an anchor (a lower source_type value indicates a more important anchor), so it is important to enforce that TYPE_HIGH_QUALITY < TYPE_MEDIUM_QUALITY < TYPE_LOW_QUALITY To add a new source type in future, please maintain the proper relationship among the types as well. TYPE_FRESHDOCS, only available in freshdocs indexing, is a special case and is considered the same type as TYPE_HIGH_QUALITY for the purpose of anchor importance in duplicate anchor removal. + * `pagerankWeight` (*type:* `number()`, *default:* `nil`) - Weight to be stored in linkmaps for pageranker + * `source` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchorSource.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :creationDate => integer() | nil, + :isLocal => boolean() | nil, + :fullRightContext => list(String.t()) | nil, + :firstseenDate => integer() | nil, + :fontsize => integer() | nil, + :linkAdditionalInfo => + GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :catfishTags => list(integer()) | nil, + :origText => String.t() | nil, + :fullLeftContext => list(String.t()) | nil, + :demotionreason => integer() | nil, + :context => integer() | nil, + :linkTags => list(integer()) | nil, + :firstseenNearCreation => boolean() | nil, + :deleted => boolean() | nil, + :forwardingTypes => integer() | nil, + :possiblyOldFirstseenDate => boolean() | nil, + :context2 => integer() | nil, + :deletionDate => integer() | nil, + :fragment => String.t() | nil, + :targetUrlEncoding => integer() | nil, + :originalTargetDocid => String.t() | nil, + :encodedNewsAnchorData => integer() | nil, + :compressedImageUrls => list(String.t()) | nil, + :compressedOriginalTargetUrl => String.t() | nil, + :experimental => boolean() | nil, + :timestamp => String.t() | nil, + :parallelLinks => integer() | nil, + :expired => boolean() | nil, + :offset => integer() | nil, + :text => String.t() | nil, + :weight => integer() | nil, + :locality => integer() | nil, + :type => integer() | nil, + :lastUpdateTimestamp => integer() | nil, + :bucket => integer() | nil, + :setiPagerankWeight => number() | nil, + :sourceType => integer() | nil, + :pagerankWeight => number() | nil, + :source => GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchorSource.t() | nil + } + + field(:creationDate) + field(:isLocal) + field(:fullRightContext, type: :list) + field(:firstseenDate) + field(:fontsize) + field(:linkAdditionalInfo, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + field(:catfishTags, type: :list) + field(:origText) + field(:fullLeftContext, type: :list) + field(:demotionreason) + field(:context) + field(:linkTags, type: :list) + field(:firstseenNearCreation) + field(:deleted) + field(:forwardingTypes) + field(:possiblyOldFirstseenDate) + field(:context2) + field(:deletionDate) + field(:fragment) + field(:targetUrlEncoding) + field(:originalTargetDocid) + field(:encodedNewsAnchorData) + field(:compressedImageUrls, type: :list) + field(:compressedOriginalTargetUrl) + field(:experimental) + field(:timestamp) + field(:parallelLinks) + field(:expired) + field(:offset) + field(:text) + field(:weight) + field(:locality) + field(:type) + field(:lastUpdateTimestamp) + field(:bucket) + field(:setiPagerankWeight) + field(:sourceType) + field(:pagerankWeight) + field(:source, as: GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchorSource) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchor do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchor.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchor do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/anchors_anchor_source.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/anchors_anchor_source.ex new file mode 100644 index 0000000000..5870cef56e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/anchors_anchor_source.ex @@ -0,0 +1,118 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchorSource do + @moduledoc """ + attributes of the source document for the link + + ## Attributes + + * `additionalInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - Additional information related to the source, such as news hub info. + * `cluster` (*type:* `integer()`, *default:* `nil`) - anchor++ cluster id + * `compressedUrl` (*type:* `String.t`, *default:* `nil`) - compressed source url + * `crawlTimestamp` (*type:* `String.t`, *default:* `nil`) - Source page crawl timestamp. + * `docid` (*type:* `String.t`, *default:* `nil`) - The docid field used to be "required", but it is now "optional" because it is not present when anchors are stored in webtable. When anchors are stored as part of docjoin files in the segment indexer, however, docid should be considered required. + * `doclength` (*type:* `integer()`, *default:* `nil`) - necessary for anything? + * `homePageInfo` (*type:* `integer()`, *default:* `nil`) - Information about if the source page is a home page. It can be one of the enum values defined in PerDocData::HomePageInfo (NOT_HOMEPAGE, NOT_TRUSTED, PARTIALLY_TRUSTED, and FULLY_TRUSTED). + * `indyrank` (*type:* `integer()`, *default:* `nil`) - uint16 scale + * `ipaddr` (*type:* `integer()`, *default:* `nil`) - DEPRECATED, use packed_ipaddress + * `language` (*type:* `integer()`, *default:* `nil`) - default -> English + * `linkhash` (*type:* `String.t`, *default:* `nil`) - 0 -> no hash + * `localCountryCodes` (*type:* `list(integer())`, *default:* `nil`) - Countries to which the source page is local/most relevant; stored as III identifiers for country/region codes (see http://go/iii). + * `nsr` (*type:* `integer()`, *default:* `nil`) - This NSR value has range [0,1000] and is the original value [0.0,1.0] multiplied by 1000 rounded to an integer. + * `outdegree` (*type:* `integer()`, *default:* `nil`) - + * `outsites` (*type:* `integer()`, *default:* `nil`) - approx num of pointed-to sites + * `packedIpaddress` (*type:* `String.t`, *default:* `nil`) - string in IPAddress::ToPackedString() format. + * `pageTags` (*type:* `list(integer())`, *default:* `nil`) - Page tags are described by enum PageTag in PerDocData. Page tags are used in anchors to identify properties of the linking page. These are DEPRECATED: in the future, use link_tags instead. DEPRECATED + * `pagerank` (*type:* `integer()`, *default:* `nil`) - uint16 scale + * `pagerankNs` (*type:* `integer()`, *default:* `nil`) - unit16 scale + * `seglanguage` (*type:* `integer()`, *default:* `nil`) - DEPRECATED + * `site` (*type:* `String.t`, *default:* `nil`) - + * `spamrank` (*type:* `integer()`, *default:* `nil`) - uint16 scale + * `spamscore1` (*type:* `integer()`, *default:* `nil`) - deprecated, to be removed after October 20. 0-127 scale + * `spamscore2` (*type:* `integer()`, *default:* `nil`) - 0-127 scale + * `webtableKey` (*type:* `String.t`, *default:* `nil`) - Webtable key of source + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :additionalInfo => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :cluster => integer() | nil, + :compressedUrl => String.t() | nil, + :crawlTimestamp => String.t() | nil, + :docid => String.t() | nil, + :doclength => integer() | nil, + :homePageInfo => integer() | nil, + :indyrank => integer() | nil, + :ipaddr => integer() | nil, + :language => integer() | nil, + :linkhash => String.t() | nil, + :localCountryCodes => list(integer()) | nil, + :nsr => integer() | nil, + :outdegree => integer() | nil, + :outsites => integer() | nil, + :packedIpaddress => String.t() | nil, + :pageTags => list(integer()) | nil, + :pagerank => integer() | nil, + :pagerankNs => integer() | nil, + :seglanguage => integer() | nil, + :site => String.t() | nil, + :spamrank => integer() | nil, + :spamscore1 => integer() | nil, + :spamscore2 => integer() | nil, + :webtableKey => String.t() | nil + } + + field(:additionalInfo, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + field(:cluster) + field(:compressedUrl) + field(:crawlTimestamp) + field(:docid) + field(:doclength) + field(:homePageInfo) + field(:indyrank) + field(:ipaddr) + field(:language) + field(:linkhash) + field(:localCountryCodes, type: :list) + field(:nsr) + field(:outdegree) + field(:outsites) + field(:packedIpaddress) + field(:pageTags, type: :list) + field(:pagerank) + field(:pagerankNs) + field(:seglanguage) + field(:site) + field(:spamrank) + field(:spamscore1) + field(:spamscore2) + field(:webtableKey) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchorSource do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchorSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchorSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/anchors_redundant_anchor_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/anchors_redundant_anchor_info.ex new file mode 100644 index 0000000000..7cca12e3a9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/anchors_redundant_anchor_info.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AnchorsRedundantAnchorInfo do + @moduledoc """ + NOTE: in docjoins, the following anchor sampling information is only ## available in the first record of a document (under the same docid). The total number of redundant anchors dropped per (domain, text) in linkextractor. If we receive a large number of anchors from a particular domain, then we'll throw out all but a sampling of them from that domain. The data is sorted by the (domain,text) pairs. This field is not populated by Alexandria, which uses cdoc.anchor_stats instead. + + ## Attributes + + * `anchorsDropped` (*type:* `String.t`, *default:* `nil`) - + * `domain` (*type:* `String.t`, *default:* `nil`) - + * `text` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :anchorsDropped => String.t() | nil, + :domain => String.t() | nil, + :text => String.t() | nil + } + + field(:anchorsDropped) + field(:domain) + field(:text) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AnchorsRedundantAnchorInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AnchorsRedundantAnchorInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AnchorsRedundantAnchorInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_customer_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_customer_id.ex new file mode 100644 index 0000000000..864ed64bcd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_customer_id.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteCustomerId do + @moduledoc """ + Represents a GSuite customer ID. Obfuscated with CustomerIdObfuscator. + + ## Attributes + + * `customerId` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :customerId => String.t() | nil + } + + field(:customerId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteCustomerId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteCustomerId.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteCustomerId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_organization_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_organization_info.ex new file mode 100644 index 0000000000..534568c2d5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_organization_info.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfo do + @moduledoc """ + Contains info about the entity that something is, or is owned by. + + ## Attributes + + * `consumerInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfoConsumerInfo.t`, *default:* `nil`) - + * `customerInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfoCustomerInfo.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :consumerInfo => + GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfoConsumerInfo.t() + | nil, + :customerInfo => + GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfoCustomerInfo.t() + | nil + } + + field(:consumerInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfoConsumerInfo + ) + + field(:customerInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfoCustomerInfo + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_organization_info_consumer_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_organization_info_consumer_info.ex new file mode 100644 index 0000000000..5e103c2fde --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_organization_info_consumer_info.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfoConsumerInfo do + @moduledoc """ + Intentionally empty. Used to disambiguate consumer and customer use cases in oneof below. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfoConsumerInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfoConsumerInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfoConsumerInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_organization_info_customer_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_organization_info_customer_info.ex new file mode 100644 index 0000000000..300c30d23e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_organization_info_customer_info.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfoCustomerInfo do + @moduledoc """ + + + ## Attributes + + * `customerId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteCustomerId.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :customerId => GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteCustomerId.t() | nil + } + + field(:customerId, as: GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteCustomerId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfoCustomerInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfoCustomerInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedOrganizationInfoCustomerInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_segmented_membership_count.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_segmented_membership_count.ex new file mode 100644 index 0000000000..8f0340abf6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_segmented_membership_count.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedSegmentedMembershipCount do + @moduledoc """ + Contains info on membership count for member types: HUMAN_USER, APP_USER & ROSTER_MEMBER different states: INVITED, JOINED + + ## Attributes + + * `memberType` (*type:* `String.t`, *default:* `nil`) - + * `membershipCount` (*type:* `integer()`, *default:* `nil`) - count of members with given type and state + * `membershipState` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :memberType => String.t() | nil, + :membershipCount => integer() | nil, + :membershipState => String.t() | nil + } + + field(:memberType) + field(:membershipCount) + field(:membershipState) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedSegmentedMembershipCount do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedSegmentedMembershipCount.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedSegmentedMembershipCount do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_segmented_membership_counts.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_segmented_membership_counts.ex new file mode 100644 index 0000000000..effc055d77 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_dynamite_shared_segmented_membership_counts.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedSegmentedMembershipCounts do + @moduledoc """ + + + ## Attributes + + * `value` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedSegmentedMembershipCount.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :value => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedSegmentedMembershipCount.t() + ) + | nil + } + + field(:value, + as: GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedSegmentedMembershipCount, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedSegmentedMembershipCounts do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedSegmentedMembershipCounts.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsDynamiteSharedSegmentedMembershipCounts do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_activity_backend_destination_stream.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_activity_backend_destination_stream.ex new file mode 100644 index 0000000000..d3189f7873 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_activity_backend_destination_stream.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleActivityBackendDestinationStream do + @moduledoc """ + A DestinationStream is a /namespace/id[0]/id[1]/.../id[n] that represents a collection of Activities. Example destinations: -The Profile Stream on http://plus.google.com/+JohnDoe/posts -A Square Stream on http://plus.google.com/squares/123 -A "comment Stream" (Fountain) on http://www.youtube.com/watch?id=123 It's possible for a single Activity to show in each of these destinations - and it might behave/look slightly differently for each one. Destinations can have their own business logic associated with them at both write-time and read-time server-side (these are documented below). Each DestinationStream is indexed and can be retrieved using the GetDestinationStreamRequest. For the repeated ID space indexing happens at all levels, e.g. if you have: /square/123/abc /square/123/efd /square/456 You can fetch /square/123/abc directly or /square/123 (which includes all Activities in both /square/123/abc and /square/123/efd), or even /square which retrieves all Activities in the Square namespace (visible for that user). On the storage layer, we represent DestinationStream as Channel (http://cs/#google3/social/common/channel/channel.proto), since the storage does not have the concept of a Stream. Both terms are used interchangeably within the service layer, but client of Social Infrastructure should use the term DestinationStream. Next ID: 3 + + ## Attributes + + * `id` (*type:* `list(String.t)`, *default:* `nil`) - The hierarchy of IDs. Each individual ID is "flat" and the repeated list defines the hierarchy. Namespaces define the "validity" of this hierachy (depth, naming convention, etc) and the server will reject invalid IDs. + * `namespace` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => list(String.t()) | nil, + :namespace => String.t() | nil + } + + field(:id, type: :list) + field(:namespace) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleActivityBackendDestinationStream do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleActivityBackendDestinationStream.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleActivityBackendDestinationStream do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_activity_streamquality_distiller_engagements.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_activity_streamquality_distiller_engagements.ex new file mode 100644 index 0000000000..3cef032e1f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_activity_streamquality_distiller_engagements.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleActivityStreamqualityDistillerEngagements do + @moduledoc """ + Stores the number of different kind of user engagement actions. Abuse Report is also consider an engagement. Currently we only have abuse report engagements but in future we might add other types of engagements as well. + + ## Attributes + + * `reportCompromised` (*type:* `String.t`, *default:* `nil`) - Corresponds on "This account might be compromised or hacked" reporting action. + * `reportHarassment` (*type:* `String.t`, *default:* `nil`) - Corresponds on "Harassment or bullying" reporting action. + * `reportHate` (*type:* `String.t`, *default:* `nil`) - Corresponds on "Hate speach or graphic violence" reporting action. + * `reportPorn` (*type:* `String.t`, *default:* `nil`) - Corresponds on "Pornography or sexually explicit material" reporting action. + * `reportSpam` (*type:* `String.t`, *default:* `nil`) - Corresponds on "Unwanted commercial content or spam" reporting action. + * `serveCount` (*type:* `String.t`, *default:* `nil`) - Number of times this activity was served out of asbe/stanza. + * `timeSec` (*type:* `String.t`, *default:* `nil`) - Timestamp in seconds for which time this record is valid. + * `ytThumbsDown` (*type:* `String.t`, *default:* `nil`) - Corresponds on Distiller comment thumbs down action. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :reportCompromised => String.t() | nil, + :reportHarassment => String.t() | nil, + :reportHate => String.t() | nil, + :reportPorn => String.t() | nil, + :reportSpam => String.t() | nil, + :serveCount => String.t() | nil, + :timeSec => String.t() | nil, + :ytThumbsDown => String.t() | nil + } + + field(:reportCompromised) + field(:reportHarassment) + field(:reportHate) + field(:reportPorn) + field(:reportSpam) + field(:serveCount) + field(:timeSec) + field(:ytThumbsDown) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleActivityStreamqualityDistillerEngagements do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleActivityStreamqualityDistillerEngagements.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleActivityStreamqualityDistillerEngagements do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about.ex new file mode 100644 index 0000000000..6dfe8812ef --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAbout do + @moduledoc """ + + + ## Attributes + + * `contentType` (*type:* `String.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `safeHtmlValue` (*type:* `GoogleApi.ContentWarehouse.V1.Model.WebutilHtmlTypesSafeHtmlProto.t`, *default:* `nil`) - Sanitized HTML value that is only populated when the SANITIZE_ABOUT_HTML extension is requested. + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contentType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :safeHtmlValue => + GoogleApi.ContentWarehouse.V1.Model.WebutilHtmlTypesSafeHtmlProto.t() | nil, + :value => String.t() | nil + } + + field(:contentType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:safeHtmlValue, as: GoogleApi.ContentWarehouse.V1.Model.WebutilHtmlTypesSafeHtmlProto) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAbout do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAbout.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAbout do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data.ex new file mode 100644 index 0000000000..bdcc56ea17 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data.ex @@ -0,0 +1,83 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedData do + @moduledoc """ + Extension data for use in AboutMe. + + ## Attributes + + * `nameDisplayOptions` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataNameDisplayOptions.t`, *default:* `nil`) - + * `photosCompareData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataPhotosCompareData.t`, *default:* `nil`) - + * `profileEditability` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataProfileEditability.t`, *default:* `nil`) - + * `profileNameModificationHistory` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataProfileNameModificationHistory.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nameDisplayOptions => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataNameDisplayOptions.t() + | nil, + :photosCompareData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataPhotosCompareData.t() + | nil, + :profileEditability => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataProfileEditability.t() + | nil, + :profileNameModificationHistory => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataProfileNameModificationHistory.t() + | nil + } + + field(:nameDisplayOptions, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataNameDisplayOptions + ) + + field(:photosCompareData, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataPhotosCompareData + ) + + field(:profileEditability, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataProfileEditability + ) + + field(:profileNameModificationHistory, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataProfileNameModificationHistory + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_name_display_options.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_name_display_options.ex new file mode 100644 index 0000000000..820794f4cf --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_name_display_options.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataNameDisplayOptions do + @moduledoc """ + See NameDisplayOptions in //depot/google3/focus/backend/proto/backend.proto. See also go/nickname-mess. + + ## Attributes + + * `nicknameOption` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nicknameOption => String.t() | nil + } + + field(:nicknameOption) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataNameDisplayOptions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataNameDisplayOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataNameDisplayOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_photos_compare_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_photos_compare_data.ex new file mode 100644 index 0000000000..cf4557d492 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_photos_compare_data.ex @@ -0,0 +1,77 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataPhotosCompareData do + @moduledoc """ + + + ## Attributes + + * `diffData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataPhotosCompareDataDiffData.t`, *default:* `nil`) - + * `highResUrl` (*type:* `String.t`, *default:* `nil`) - + * `inconsistentPhoto` (*type:* `boolean()`, *default:* `nil`) - True if photo diff is greater than 0.01 on any color band, or if the user has a low res photo but no high res photo. This field is primarily for use in About Me and for other uses it's recommended to use the DiffData values directly instead. The cutoff is based on a heuristic determined in go/comparing-profile-photos + * `lowResData` (*type:* `String.t`, *default:* `nil`) - Only present if the photo diff is greater than 0.01 on any color band. + * `lowResUrl` (*type:* `String.t`, *default:* `nil`) - + * `monogramUrl` (*type:* `String.t`, *default:* `nil`) - + * `privateLowResAcl` (*type:* `boolean()`, *default:* `nil`) - True if the low-res photo has a private ACL set. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :diffData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataPhotosCompareDataDiffData.t() + | nil, + :highResUrl => String.t() | nil, + :inconsistentPhoto => boolean() | nil, + :lowResData => String.t() | nil, + :lowResUrl => String.t() | nil, + :monogramUrl => String.t() | nil, + :privateLowResAcl => boolean() | nil + } + + field(:diffData, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataPhotosCompareDataDiffData + ) + + field(:highResUrl) + field(:inconsistentPhoto) + field(:lowResData) + field(:lowResUrl) + field(:monogramUrl) + field(:privateLowResAcl) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataPhotosCompareData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataPhotosCompareData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataPhotosCompareData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_photos_compare_data_diff_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_photos_compare_data_diff_data.ex new file mode 100644 index 0000000000..87148efe42 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_photos_compare_data_diff_data.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataPhotosCompareDataDiffData do + @moduledoc """ + + + ## Attributes + + * `blueDiff` (*type:* `number()`, *default:* `nil`) - + * `greenDiff` (*type:* `number()`, *default:* `nil`) - + * `redDiff` (*type:* `number()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :blueDiff => number() | nil, + :greenDiff => number() | nil, + :redDiff => number() | nil + } + + field(:blueDiff) + field(:greenDiff) + field(:redDiff) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataPhotosCompareDataDiffData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataPhotosCompareDataDiffData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataPhotosCompareDataDiffData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_profile_editability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_profile_editability.ex new file mode 100644 index 0000000000..1886b433fe --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_profile_editability.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataProfileEditability do + @moduledoc """ + See UserEditedLockedMask in //depot/google3/focus/backend/proto/backend.proto. + + ## Attributes + + * `lockedField` (*type:* `list(String.t)`, *default:* `nil`) - Read-only set of zero or more field paths that are locked for update on this person, such as "person.name", "person.email", etc. The set of fields is only populated for the requester's profile. Fields in the set cannot be edited, added, or deleted from the profile. Attempting to update any of these fields will result in an exception. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lockedField => list(String.t()) | nil + } + + field(:lockedField, type: :list) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataProfileEditability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataProfileEditability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataProfileEditability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_profile_name_modification_history.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_profile_name_modification_history.ex new file mode 100644 index 0000000000..16d035f336 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_about_me_extended_data_profile_name_modification_history.ex @@ -0,0 +1,71 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataProfileNameModificationHistory do + @moduledoc """ + See ABUSE_NAME_LAST_MODIFIED in //depot/google3/focus/backend/proto/backend.proto which maps to //depot/google3/focus/proto/profileattribute.proto + + ## Attributes + + * `computedNameChangesRemaining` (*type:* `integer()`, *default:* `nil`) - The number of name changes remaining at RPC request time. This can be more than name_changes_remaining, if user hasn't changed name for some time and accrued quota since last change. + * `computedNicknameChangesRemaining` (*type:* `integer()`, *default:* `nil`) - The number of nickname changes remaining at RPC request time. This can be more than nickname_changes_remaining, if user hasn't changed nickname for some time and accrued quota since last change. + * `nameChangesRemaining` (*type:* `integer()`, *default:* `nil`) - The number of name changes remaining at the time the name was last modified. + * `nameLastModified` (*type:* `String.t`, *default:* `nil`) - The last time the profile name was modified in milliseconds UTC. + * `nicknameChangesRemaining` (*type:* `integer()`, *default:* `nil`) - The number of nickname changes remaining at the time the nickname was last modified. + * `nicknameLastModified` (*type:* `String.t`, *default:* `nil`) - The last time the profile nickname was modified in milliseconds UTC. + * `quotaEnforcementStatus` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :computedNameChangesRemaining => integer() | nil, + :computedNicknameChangesRemaining => integer() | nil, + :nameChangesRemaining => integer() | nil, + :nameLastModified => String.t() | nil, + :nicknameChangesRemaining => integer() | nil, + :nicknameLastModified => String.t() | nil, + :quotaEnforcementStatus => String.t() | nil + } + + field(:computedNameChangesRemaining) + field(:computedNicknameChangesRemaining) + field(:nameChangesRemaining) + field(:nameLastModified) + field(:nicknameChangesRemaining) + field(:nicknameLastModified) + field(:quotaEnforcementStatus) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataProfileNameModificationHistory do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataProfileNameModificationHistory.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedDataProfileNameModificationHistory do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_account_email.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_account_email.ex new file mode 100644 index 0000000000..c3978f11da --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_account_email.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAccountEmail do + @moduledoc """ + + + ## Attributes + + * `email` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :email => String.t() | nil + } + + field(:email) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAccountEmail do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAccountEmail.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAccountEmail do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_additional_container_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_additional_container_info.ex new file mode 100644 index 0000000000..7a4dbefe0d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_additional_container_info.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAdditionalContainerInfo do + @moduledoc """ + Additional information about a container. TO BE DELETED: replaced by DeviceContactInfo. + + ## Attributes + + * `rawDeviceContactInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactInfo.t)`, *default:* `nil`) - When the container is a DEVICE_CONTACT, this list provides account information from the raw contact which is the source of this field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :rawDeviceContactInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactInfo.t() + ) + | nil + } + + field(:rawDeviceContactInfo, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactInfo, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAdditionalContainerInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAdditionalContainerInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAdditionalContainerInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_address.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_address.ex new file mode 100644 index 0000000000..64a8afa071 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_address.ex @@ -0,0 +1,102 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAddress do + @moduledoc """ + + + ## Attributes + + * `country` (*type:* `String.t`, *default:* `nil`) - + * `countryCode` (*type:* `String.t`, *default:* `nil`) - + * `encodedPlaceId` (*type:* `String.t`, *default:* `nil`) - FeatureId associated with the address. The format is the same as that used for ids in PLACE containers in SourceIdentity. + * `extendedAddress` (*type:* `String.t`, *default:* `nil`) - + * `formatted` (*type:* `String.t`, *default:* `nil`) - + * `formattedType` (*type:* `String.t`, *default:* `nil`) - The `type` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `locality` (*type:* `String.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `poBox` (*type:* `String.t`, *default:* `nil`) - + * `pointSpec` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPointSpec.t`, *default:* `nil`) - + * `postalCode` (*type:* `String.t`, *default:* `nil`) - + * `region` (*type:* `String.t`, *default:* `nil`) - + * `streetAddress` (*type:* `String.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the address. The type can be free form or one of these predefined values: * `home` * `work` * `other` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :country => String.t() | nil, + :countryCode => String.t() | nil, + :encodedPlaceId => String.t() | nil, + :extendedAddress => String.t() | nil, + :formatted => String.t() | nil, + :formattedType => String.t() | nil, + :locality => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :poBox => String.t() | nil, + :pointSpec => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPointSpec.t() + | nil, + :postalCode => String.t() | nil, + :region => String.t() | nil, + :streetAddress => String.t() | nil, + :type => String.t() | nil + } + + field(:country) + field(:countryCode) + field(:encodedPlaceId) + field(:extendedAddress) + field(:formatted) + field(:formattedType) + field(:locality) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:poBox) + + field(:pointSpec, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPointSpec + ) + + field(:postalCode) + field(:region) + field(:streetAddress) + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAddress do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAddress.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAddress do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_affinity.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_affinity.ex new file mode 100644 index 0000000000..96976f9718 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_affinity.ex @@ -0,0 +1,71 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAffinity do + @moduledoc """ + Similar to social.graph.storage.Affinity, but pared down to what the clients of the People API are interested in. + + ## Attributes + + * `affinityMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiAffinityMetadata.t`, *default:* `nil`) - Contains extra ranking information returned by DAS. + * `affinityType` (*type:* `String.t`, *default:* `nil`) - + * `containerId` (*type:* `String.t`, *default:* `nil`) - The ID of the container + * `containerType` (*type:* `String.t`, *default:* `nil`) - The type of container to which this affinity applies + * `loggingId` (*type:* `String.t`, *default:* `nil`) - Used to log events for this affinity value, for disco diagnostic-purposes. See go/disco-diagnostics. + * `value` (*type:* `float()`, *default:* `nil`) - Affinity value. Frequently represented as an inverse ranking, sometimes with additional data encoded. If data_formats.affinity_formats.score_format is set to RAW_SCORE then the value will be the score returned by DAS. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :affinityMetadata => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiAffinityMetadata.t() + | nil, + :affinityType => String.t() | nil, + :containerId => String.t() | nil, + :containerType => String.t() | nil, + :loggingId => String.t() | nil, + :value => float() | nil + } + + field(:affinityMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiAffinityMetadata + ) + + field(:affinityType) + field(:containerId) + field(:containerType) + field(:loggingId) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAffinity do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAffinity.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAffinity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_age_range_type.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_age_range_type.ex new file mode 100644 index 0000000000..e1847e4d31 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_age_range_type.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAgeRangeType do + @moduledoc """ + Please read go/people-api-howto:age on how to get age data. Message for the `Person.age_range_repeated` field. Replaces the existing `Person.age_range` field. + + ## Attributes + + * `ageInYears` (*type:* `integer()`, *default:* `nil`) - Please read go/people-api-howto:age on how to get age data. Age of the user. The field is set based on profile storage fields such as account birthday. If the source fields are not present, `age_in_years` will be left unset. + * `ageOfConsentStatus` (*type:* `String.t`, *default:* `nil`) - Deprecated. Use go/supervised-accounts#capabilities-for-child-accounts instead. Denotes whether the user is under the region based Age of Consent. The user's region is based on ClientUserInfo.GlobalTos.AgreedLocation The age is inferred from Birthday field or CertifiedBornBefore field. The region based AoC is specified at go/aoc. + * `ageRange` (*type:* `String.t`, *default:* `nil`) - Deprecated. Please read go/people-api-howto:age on how to get age data. Age range is populated based on `account_birthday` and `certified_born_before`, which may not be set for dasher users. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ageInYears => integer() | nil, + :ageOfConsentStatus => String.t() | nil, + :ageRange => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil + } + + field(:ageInYears) + field(:ageOfConsentStatus) + field(:ageRange) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAgeRangeType do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAgeRangeType.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAgeRangeType do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_app_unique_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_app_unique_info.ex new file mode 100644 index 0000000000..2057ac8c00 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_app_unique_info.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAppUniqueInfo do + @moduledoc """ + Store all app unique info that are needed for app action fulfillment. + + ## Attributes + + * `appUniqueId` (*type:* `String.t`, *default:* `nil`) - Store the app unique id endpoint. This will be passed over to app to fulfill the action. For example, app_unique_id for Whatsapp will be "11234567890@s.whatsapp.net" + * `contactInfoSource` (*type:* `String.t`, *default:* `nil`) - Where this contact info was retrieved from. Note: only added for Assistant usage, and will not be populated by PAPI. This is due to the coupling between Assistant Proto, and PAPI proto. (//depot/google3/quality/qrewrite/servlets/proto/focus_name.proto) + * `displayAppUniqueId` (*type:* `String.t`, *default:* `nil`) - Store third party endpoint that is displayed to users. For example, display_app_unique_id for Whatsapp will be "Message +11234567890". + * `label` (*type:* `String.t`, *default:* `nil`) - Store third party endpoint label. For example, "HOME", "WORK" + * `mimetype` (*type:* `String.t`, *default:* `nil`) - Store mimetype of this endpoint. We will use this as the differentiator for Assistant to know whether to use the RawContact for messaging, call or video call. For example, send message mimetype for whatsapp: "vnd.android.cursor.item/vnd.com.whatsapp.profile" voice call mimetype for whatsapp: "vnd.android.cursor.item/vnd.com.whatsapp.voip.call" + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appUniqueId => String.t() | nil, + :contactInfoSource => String.t() | nil, + :displayAppUniqueId => String.t() | nil, + :label => String.t() | nil, + :mimetype => String.t() | nil + } + + field(:appUniqueId) + field(:contactInfoSource) + field(:displayAppUniqueId) + field(:label) + field(:mimetype) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAppUniqueInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAppUniqueInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAppUniqueInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_best_display_name.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_best_display_name.ex new file mode 100644 index 0000000000..6a94ce9e97 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_best_display_name.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBestDisplayName do + @moduledoc """ + The best suggested name to use for the Person from the available source fields, which may include FileAs, Name, Org, Email, IM, Phone, ... Rough source container priority order is Contact, then Profile, then Place. + + ## Attributes + + * `containerType` (*type:* `String.t`, *default:* `nil`) - The container the suggested name was sourced from + * `displayName` (*type:* `String.t`, *default:* `nil`) - The display name. This name is intended to be the best name to display for this Person. It may be built from a variety of fields, even if those fields are not explicitly requested in the request mask. Generally, the display name is formatted in 'first last' format. If the name appears to be a CJK name (as determined by a heuristic), the 'last first' format will be used. There may be other cases that the 'last first' format is used which are not documented here. See the code at: http://google3/java/com/google/focus/backend/client/DisplayNameFormatter.java?l=659&rcl=351360938 + * `displayNameLastFirst` (*type:* `String.t`, *default:* `nil`) - The display name, always in 'last first' format. This field does not depend on the format of `display_name` and will always be in 'last first' format. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :containerType => String.t() | nil, + :displayName => String.t() | nil, + :displayNameLastFirst => String.t() | nil + } + + field(:containerType) + field(:displayName) + field(:displayNameLastFirst) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBestDisplayName do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBestDisplayName.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBestDisplayName do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_birthday.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_birthday.ex new file mode 100644 index 0000000000..896c7e53c0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_birthday.ex @@ -0,0 +1,91 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthday do + @moduledoc """ + IMPORTANT NOTES: - Requesting person.birthday requires membership in the purpose limited data ACL group sgbe-ac-d-birthday-(read|mutate). Contact people-api-eng@ for assistance with initial setup. - The birthday field should not be used to calculate the requester's age! To determine the requester's age, use person.age_range_repeated. - For more details about age see go/peopleapi-howto/age Birthday value may not be present: - Consumer users generally required to have account birthday set (required at account creation), though some users created via legacy flows may not have birthday present. - Dasher users generally don't require birthday, but could optionally have it set by users. - Any other types of accounts (e.g. robot, service) do not have birthdays. - Account Birthday field may be present but without birthday value set for grace period birthday (provisional new birthday). For users that do have birthday data: - "Profile Birthday" (person.birthday.metadata.container is PROFILE) may not have a year set if user "hides" the year. - "Account Birthday" (see api-specific notes below) will only be returned for the requester's own profile. - People API (go/peopleapi): * Account birthday is only supported in GetPeople for PeopleAPI. * If account birthday is needed, use a request mask with: `include_field { paths: "person.birthday" }` `include_container: ACCOUNT` - People API++ (go/peopleapi++): * Account birthday is supported for most apis in PeopleAPI++. * If account birthday is needed, use a request mask with: `include_field { paths: "person.account_birthday" }` `include_container: PROFILE` (note: it will also need `include_container: DOMAIN_PROFILE` because they must be requested together: go/people-api-masks#profile-domain_profile) - See go/papi-vs-papi++#birthday for more details. + + ## Attributes + + * `ageDisableGracePeriod` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthdayAgeDisableGracePeriod.t`, *default:* `nil`) - Only supported for PROFILE/DOMAIN_PROFILE/ACCOUNT container. + * `birthdayDecoration` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoBirthdayDecoration.t`, *default:* `nil`) - Whether the user has opted in to display their birthday via photo decorations. Only supported for PROFILE/DOMAIN_PROFILE container. + * `birthdayResolution` (*type:* `String.t`, *default:* `nil`) - Only supported for PROFILE/DOMAIN_PROFILE/ACCOUNT container. + * `calendarDay` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.t`, *default:* `nil`) - Birthdays are more accurately represented as a calendar day that does not depend on a timestamp representation at all. When given a timestamp, there are lots of opportunities to make mistakes, so a CalendarDay proto is replacing timestamps. Currently this is always returned by PeopleApi on reads that include birthday fields. New clients should write using calendar_day. Clients that were already writing via date_ms are allowlisted such that writes use that field. Old callers should migrate to writing BOTH date_ms and calendar_day values. If those are consistent, they may be removed from the 'legacy_timestamp_event_write_behavior_enabled' capability. + * `dateMs` (*type:* `String.t`, *default:* `nil`) - Birthdays are currently represented as timestamp values, although the interpretation of these timestamp values is a calendar date. Clients are recommended to read the calendar_day field, which is easier to work with than date_ms. New clients writing to PeopleApi must set calendar_day instead of date_ms. There are a few important details about how this value should be mapped to a calendar date that should be consistent among all clients. 1. Epoch - The epoch or calendar date equivalent to 0 ms is chosen to be 1970-01-01 UTC. 2. Timezone - All of the conversions to calendars should occur in the UTC timezone. We don't typically think of someones birthday changing when they travel, so clients should not use local times. 3. Calendar - The calendar used for the dates should be a Gregorian proleptic calendar. Proleptic means that the rules of the Gregorian calendar are retrofitted to before its adoption. It is easy to get this wrong, particularly with the java GregorianCalendar class, which by default is a mixed Gregorian/Julian calendar. Joda Time makes this easy, but if it's not an option, look into GregorianCalendar.setGregorianChange(). 4. Omitted years - Clients have chosen to represent birthdays or events without years as timestamps within the year zero. When the computed date has a year of 0, it means the client did not specify a year. Note that a year 0 does not exist in a chronology like the familiar Anno Domini (A.D. and B.C.); clients must agree on year numbering. 5. Year Numbering - The chronology used to map dates to the calendar should use Astronomical Year Numbering so that the year 0 is defined and dates before it have a negative year. If libraries only provide Anno Domini, then the year of 1 BC corresponds to year zero and an omitted user provided year. Other BC values are presumed rare, but clients should still not ignore the era and interpret the year as an A.D. value, especially if writing values back to PeopleApi. + * `dateMsAsNumber` (*type:* `String.t`, *default:* `nil`) - date_ms_as_number contains the same data as date_ms, but has a different type in generated javascript bindings. Non javascript clients can ignore it. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `prompt` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPrompt.t`, *default:* `nil`) - People Prompts settings for contact birthday data. Only supported for CONTACT container. + * `value` (*type:* `String.t`, *default:* `nil`) - Actual value entered. Allows unstructured values. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ageDisableGracePeriod => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthdayAgeDisableGracePeriod.t() + | nil, + :birthdayDecoration => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoBirthdayDecoration.t() | nil, + :birthdayResolution => String.t() | nil, + :calendarDay => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.t() | nil, + :dateMs => String.t() | nil, + :dateMsAsNumber => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :prompt => GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPrompt.t() | nil, + :value => String.t() | nil + } + + field(:ageDisableGracePeriod, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthdayAgeDisableGracePeriod + ) + + field(:birthdayDecoration, + as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoBirthdayDecoration + ) + + field(:birthdayResolution) + field(:calendarDay, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate) + field(:dateMs) + field(:dateMsAsNumber) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:prompt, as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPrompt) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthday do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthday.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthday do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_birthday_age_disable_grace_period.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_birthday_age_disable_grace_period.ex new file mode 100644 index 0000000000..0eadd9a303 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_birthday_age_disable_grace_period.ex @@ -0,0 +1,71 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthdayAgeDisableGracePeriod do + @moduledoc """ + Whether this field is set or not determines whether an account is in the grace period. While in the grace period, the user is unable to change their birthday on their own, and will be age-disabled if they don't act in a limited amount of time. Applies only to ServiceData Birthday. Users enter the grace period if they choose a birthday below the Age of Consent (go/aoc). After the grace period ends, the account will be age disabled. See go/age-disable-grace-period-dd. + + ## Attributes + + * `calendarDay` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.t`, *default:* `nil`) - Provisional birthday GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.t() | nil, + :gracePeriodEnd => DateTime.t() | nil, + :gracePeriodStart => DateTime.t() | nil, + :gracePeriodType => String.t() | nil, + :manualGracePeriodInfo => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthdayAgeDisableGracePeriodManualGracePeriodInfo.t() + | nil + } + + field(:calendarDay, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate) + field(:gracePeriodEnd, as: DateTime) + field(:gracePeriodStart, as: DateTime) + field(:gracePeriodType) + + field(:manualGracePeriodInfo, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthdayAgeDisableGracePeriodManualGracePeriodInfo + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthdayAgeDisableGracePeriod do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthdayAgeDisableGracePeriod.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthdayAgeDisableGracePeriod do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_birthday_age_disable_grace_period_manual_grace_period_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_birthday_age_disable_grace_period_manual_grace_period_info.ex new file mode 100644 index 0000000000..594ae2668e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_birthday_age_disable_grace_period_manual_grace_period_info.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthdayAgeDisableGracePeriodManualGracePeriodInfo do + @moduledoc """ + Information provided within MutateDataRequest when setting a user into AgeDisableGracePeriod manually. When the grace period expires, this info will be forwarded to Gaia when disabling the user. cs//symbol:InitiateAgeDisableGracePeriodArguments + + ## Attributes + + * `escalateTo` (*type:* `String.t`, *default:* `nil`) - The Gaia ID of an email that ops can send inquiries to for appeals. + * `executedBy` (*type:* `String.t`, *default:* `nil`) - The Gaia ID of a Googler who initiated this disable. + * `reason` (*type:* `String.t`, *default:* `nil`) - When setting a user into age grace period manually, the requester can additionally supply a short human-readable reason of why the account is put into manual grace period. The description will be forwarded to Gaia when we disable the account when the grace period expires. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :escalateTo => String.t() | nil, + :executedBy => String.t() | nil, + :reason => String.t() | nil + } + + field(:escalateTo) + field(:executedBy) + field(:reason) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthdayAgeDisableGracePeriodManualGracePeriodInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthdayAgeDisableGracePeriodManualGracePeriodInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthdayAgeDisableGracePeriodManualGracePeriodInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_bragging_rights.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_bragging_rights.ex new file mode 100644 index 0000000000..853dd3103a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_bragging_rights.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBraggingRights do + @moduledoc """ + + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :value => String.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBraggingRights do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBraggingRights.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBraggingRights do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_calendar.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_calendar.ex new file mode 100644 index 0000000000..f82d4367b2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_calendar.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCalendar do + @moduledoc """ + A url to the person's calendar. As of 03/2018 is not supported for user Profile. + + ## Attributes + + * `formattedType` (*type:* `String.t`, *default:* `nil`) - The `type` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the calendar URL. The type can be free form or one of these predefined values: * `home` * `freeBusy` * `work` + * `url` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :formattedType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :type => String.t() | nil, + :url => String.t() | nil + } + + field(:formattedType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:type) + field(:url) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCalendar do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCalendar.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCalendar do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_caller_id_extended_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_caller_id_extended_data.ex new file mode 100644 index 0000000000..7bfc5aed14 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_caller_id_extended_data.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCallerIdExtendedData do + @moduledoc """ + + + ## Attributes + + * `callerIdSource` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCallerIdExtendedDataCallerIdSource.t`, *default:* `nil`) - Indicates which data source was used to populate the caller ID result + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :callerIdSource => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCallerIdExtendedDataCallerIdSource.t() + | nil + } + + field(:callerIdSource, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCallerIdExtendedDataCallerIdSource + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCallerIdExtendedData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCallerIdExtendedData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCallerIdExtendedData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_caller_id_extended_data_caller_id_source.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_caller_id_extended_data_caller_id_source.ex new file mode 100644 index 0000000000..fecaa0dc8f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_caller_id_extended_data_caller_id_source.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCallerIdExtendedDataCallerIdSource do + @moduledoc """ + + + ## Attributes + + * `sourceType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :sourceType => String.t() | nil + } + + field(:sourceType) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCallerIdExtendedDataCallerIdSource do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCallerIdExtendedDataCallerIdSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCallerIdExtendedDataCallerIdSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_certified_born_before.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_certified_born_before.ex new file mode 100644 index 0000000000..0478b17887 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_certified_born_before.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCertifiedBornBefore do + @moduledoc """ + Information related to domain administrator (or authority) certification of a users age. + + ## Attributes + + * `bornBefore` (*type:* `DateTime.t`, *default:* `nil`) - Indicates that the user was born at or before this time. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bornBefore => DateTime.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil + } + + field(:bornBefore, as: DateTime) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCertifiedBornBefore do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCertifiedBornBefore.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCertifiedBornBefore do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_channel_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_channel_data.ex new file mode 100644 index 0000000000..c27e0a2c16 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_channel_data.ex @@ -0,0 +1,78 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiChannelData do + @moduledoc """ + + + ## Attributes + + * `channelId` (*type:* `String.t`, *default:* `nil`) - Unique ID that corresponds to a Youtube channel. + * `commentCount` (*type:* `String.t`, *default:* `nil`) - Number of comments for a given Youtube channel. + * `description` (*type:* `String.t`, *default:* `nil`) - Description of the channel. + * `playlistCount` (*type:* `String.t`, *default:* `nil`) - + * `profilePictureUrl` (*type:* `String.t`, *default:* `nil`) - A FIFE URL pointing to the channel's profile image (go/avatar-fife-urls) with default fife url options. Also refer to go/people-api-concepts:photos for People API's FIFE best practices. The image could be up to a couple of days stale, though it is much fresher in practice. If a fresh image is required, contact the YouTubeAccountProfileService. The URL itself expires ~30 days after generation. + * `profileUrl` (*type:* `String.t`, *default:* `nil`) - URL of user's Youtube channel profile. + * `subscriberCount` (*type:* `String.t`, *default:* `nil`) - Number of subscribers for a given Youtube channel. + * `title` (*type:* `String.t`, *default:* `nil`) - Title of the YouTube channel + * `usesYoutubeNames` (*type:* `boolean()`, *default:* `nil`) - Whether or not the channel's profile has a title/avatar that is canonical in YouTube. Used to determine if the product profile card should be part of the core persona or have their own persona. + * `videoCount` (*type:* `String.t`, *default:* `nil`) - Number of videos uploaded in a given Youtube channel. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :channelId => String.t() | nil, + :commentCount => String.t() | nil, + :description => String.t() | nil, + :playlistCount => String.t() | nil, + :profilePictureUrl => String.t() | nil, + :profileUrl => String.t() | nil, + :subscriberCount => String.t() | nil, + :title => String.t() | nil, + :usesYoutubeNames => boolean() | nil, + :videoCount => String.t() | nil + } + + field(:channelId) + field(:commentCount) + field(:description) + field(:playlistCount) + field(:profilePictureUrl) + field(:profileUrl) + field(:subscriberCount) + field(:title) + field(:usesYoutubeNames) + field(:videoCount) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiChannelData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiChannelData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiChannelData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_circle_membership.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_circle_membership.ex new file mode 100644 index 0000000000..b8e767dc46 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_circle_membership.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCircleMembership do + @moduledoc """ + A circle membership that the person has. A circle membership is created by adding a person to a circle by person-id or by email. + + ## Attributes + + * `circleId` (*type:* `String.t`, *default:* `nil`) - The circle that the person belongs to. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :circleId => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil + } + + field(:circleId) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCircleMembership do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCircleMembership.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCircleMembership do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_client_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_client_data.ex new file mode 100644 index 0000000000..1d79c22e46 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_client_data.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiClientData do + @moduledoc """ + Arbitrary client data that is populated based on the client + + ## Attributes + + * `key` (*type:* `String.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `namespace` (*type:* `String.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :key => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :namespace => String.t() | nil, + :value => String.t() | nil + } + + field(:key) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:namespace) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiClientData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiClientData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiClientData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_communication_email.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_communication_email.ex new file mode 100644 index 0000000000..a2072c9717 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_communication_email.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCommunicationEmail do + @moduledoc """ + Email for Google product communication with the user. This is only allowed in ServiceData. It is purely synthesized and read-only, and contains at most one field. It proxies from RawCommunicationEmail and only includes the primary field if exists. Otherwise if RawCommunicationEmail does not have primary, this includes a field synthesized from valid Gaia primary account email. Otherwise if Gaia primary account email is invalid, this field is empty. See go/comm-email-use for more details. + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :value => String.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCommunicationEmail do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCommunicationEmail.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCommunicationEmail do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_connection_reminder.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_connection_reminder.ex new file mode 100644 index 0000000000..b9006a21d2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_connection_reminder.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiConnectionReminder do + @moduledoc """ + Contact-level people-prompts settings and contact-level connection reminders. Part of go/people-prompts. + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `prompt` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPrompt.t)`, *default:* `nil`) - Contact-level "reminder to connect" prompts for this contact. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :prompt => list(GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPrompt.t()) | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:prompt, as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPrompt, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiConnectionReminder do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiConnectionReminder.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiConnectionReminder do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_create_context_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_create_context_info.ex new file mode 100644 index 0000000000..c34b7503ee --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_create_context_info.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo do + @moduledoc """ + Contact creation timestamps and related metadata. See go/contact-edit-history. This message is a pure wrapper of the shared ContactCreactionContext message so that it can be a top-level person field. No other fields should be added to the message. + + ## Attributes + + * `contactCreateContext` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoContactCreateContext.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contactCreateContext => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoContactCreateContext.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil + } + + field(:contactCreateContext, + as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoContactCreateContext + ) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_edit_context_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_edit_context_info.ex new file mode 100644 index 0000000000..97697b1f3e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_edit_context_info.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo do + @moduledoc """ + Contact edit timestamps and related metadata. See go/contact-edit-history. This message is a pure wrapper of the shared ContactCreactionContext message so that it can be a top-level person field. No other fields should be added to the message. + + ## Attributes + + * `contactEditContext` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoContactEditContext.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contactEditContext => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoContactEditContext.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil + } + + field(:contactEditContext, + as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoContactEditContext + ) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_group_membership.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_group_membership.ex new file mode 100644 index 0000000000..0233ded570 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_group_membership.ex @@ -0,0 +1,73 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactGroupMembership do + @moduledoc """ + A membership that the person has. The person can be a member of multiple circles and multiple contact-groups. A circle membership is created by adding a person to a circle by person-id or by email. A contact-group membership is created by adding a contact to a contact-group. + + ## Attributes + + * `contactGroupId` (*type:* `String.t`, *default:* `nil`) - The contact-group that the person belong to. The id can be either a hex-formatted id or a camel-cased SystemContactGroup predefined group name. The id will be predefined group name iff the system_contact_group_id has a value. + * `delegatedGroupInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDelegatedGroupInfo.t`, *default:* `nil`) - Information related to delegated group that this contact belongs to. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `systemContactGroupId` (*type:* `String.t`, *default:* `nil`) - This field will be populated when the membership is in a system-reserved contact-group. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contactGroupId => String.t() | nil, + :delegatedGroupInfo => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDelegatedGroupInfo.t() + | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :systemContactGroupId => String.t() | nil + } + + field(:contactGroupId) + + field(:delegatedGroupInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDelegatedGroupInfo + ) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:systemContactGroupId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactGroupMembership do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactGroupMembership.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactGroupMembership do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_prompt_settings_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_prompt_settings_info.ex new file mode 100644 index 0000000000..e47cda6412 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_prompt_settings_info.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactPromptSettingsInfo do + @moduledoc """ + Contact level People Prompt settings. This message is a pure wrapper of the shared ContactPromptSettings message so that it can be a top-level person field. No other fields should be added to the message. + + ## Attributes + + * `contactPromptSettings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoContactPromptSettings.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contactPromptSettings => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoContactPromptSettings.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil + } + + field(:contactPromptSettings, + as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoContactPromptSettings + ) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactPromptSettingsInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactPromptSettingsInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactPromptSettingsInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_state_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_state_info.ex new file mode 100644 index 0000000000..7c07413c79 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_contact_state_info.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactStateInfo do + @moduledoc """ + Contact state and related metadata. See go/fbs-contacts-trash. This message is a pure wrapper of the shared ContactState message so that it can be a top-level person field. No other fields should be added to the message. + + ## Attributes + + * `contactState` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoContactState.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contactState => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoContactState.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil + } + + field(:contactState, as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoContactState) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactStateInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactStateInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactStateInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_cover_photo.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_cover_photo.ex new file mode 100644 index 0000000000..e88c0cd67c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_cover_photo.ex @@ -0,0 +1,74 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCoverPhoto do + @moduledoc """ + CoverPhoto is the long banner photo (also called full bleed photo) at the top of G+ profile page. + + ## Attributes + + * `imageHeight` (*type:* `integer()`, *default:* `nil`) - + * `imageId` (*type:* `String.t`, *default:* `nil`) - + * `imageUrl` (*type:* `String.t`, *default:* `nil`) - + * `imageWidth` (*type:* `integer()`, *default:* `nil`) - + * `isAnimated` (*type:* `boolean()`, *default:* `nil`) - + * `isDefault` (*type:* `boolean()`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :imageHeight => integer() | nil, + :imageId => String.t() | nil, + :imageUrl => String.t() | nil, + :imageWidth => integer() | nil, + :isAnimated => boolean() | nil, + :isDefault => boolean() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil + } + + field(:imageHeight) + field(:imageId) + field(:imageUrl) + field(:imageWidth) + field(:isAnimated) + field(:isDefault) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCoverPhoto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCoverPhoto.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCoverPhoto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_custom_schema_field.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_custom_schema_field.ex new file mode 100644 index 0000000000..587ed49aca --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_custom_schema_field.ex @@ -0,0 +1,84 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCustomSchemaField do + @moduledoc """ + Custom fields associated with a person, from the custom schema defined on the domain. See go/custompeopleapi and go/customfocus. NOTE: these are only updatable via Cloud Directory (go/cd). + + ## Attributes + + * `fieldDisplayName` (*type:* `String.t`, *default:* `nil`) - + * `fieldId` (*type:* `String.t`, *default:* `nil`) - + * `fieldType` (*type:* `String.t`, *default:* `nil`) - + * `formattedType` (*type:* `String.t`, *default:* `nil`) - The `type` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `multiValued` (*type:* `boolean()`, *default:* `nil`) - + * `schemaDisplayName` (*type:* `String.t`, *default:* `nil`) - + * `schemaId` (*type:* `String.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the custom schema field. The type can be free form or one of these predefined values: * `home` * `other` * `work` + * `value` (*type:* `String.t`, *default:* `nil`) - String representation of the value, based on FieldType + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fieldDisplayName => String.t() | nil, + :fieldId => String.t() | nil, + :fieldType => String.t() | nil, + :formattedType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :multiValued => boolean() | nil, + :schemaDisplayName => String.t() | nil, + :schemaId => String.t() | nil, + :type => String.t() | nil, + :value => String.t() | nil + } + + field(:fieldDisplayName) + field(:fieldId) + field(:fieldType) + field(:formattedType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:multiValued) + field(:schemaDisplayName) + field(:schemaId) + field(:type) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCustomSchemaField do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCustomSchemaField.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCustomSchemaField do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_customer_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_customer_info.ex new file mode 100644 index 0000000000..6140fbc014 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_customer_info.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCustomerInfo do + @moduledoc """ + Contains customer data for profile owner proxied from D3. + + ## Attributes + + * `customerId` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. Use obfuscated_customer_id instead. If result has a GSuite Customer ID, this field will continue to be populated with -1 to indicate the presence of a value for backwards compatibility with clients in the wild. See b/144596193. + * `customerName` (*type:* `String.t`, *default:* `nil`) - Customer organization name for dasher user. + * `obfuscatedCustomerId` (*type:* `String.t`, *default:* `nil`) - Obfuscated FlexOrgs customer ID for Dasher user. See cs/symbol:CustomerIdObfuscator. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :customerId => String.t() | nil, + :customerName => String.t() | nil, + :obfuscatedCustomerId => String.t() | nil + } + + field(:customerId) + field(:customerName) + field(:obfuscatedCustomerId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCustomerInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCustomerInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCustomerInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_deduped_container_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_deduped_container_info.ex new file mode 100644 index 0000000000..dc40c61969 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_deduped_container_info.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDedupedContainerInfo do + @moduledoc """ + Container information for deduping. When two fields have the same value and only differ by field.metadata a service implementation can choose to avoid duplicating the fields and instead set field.metadata.other_deduped_containers This type can include information on the dedupe type (for example, strict value match vs. lenient value match) + + ## Attributes + + * `containerType` (*type:* `String.t`, *default:* `nil`) - See SourceIdentity.container_type + * `id` (*type:* `String.t`, *default:* `nil`) - See SourceIdentity.id + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :containerType => String.t() | nil, + :id => String.t() | nil + } + + field(:containerType) + field(:id) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDedupedContainerInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDedupedContainerInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDedupedContainerInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_delegated_group_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_delegated_group_info.ex new file mode 100644 index 0000000000..a19468dfe7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_delegated_group_info.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDelegatedGroupInfo do + @moduledoc """ + Information related to delegated group that this contact belongs to. + + ## Attributes + + * `delegatedGroupId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoDelegatedGroupId.t`, *default:* `nil`) - Required. The additional id specifically for a delegated group. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :delegatedGroupId => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoDelegatedGroupId.t() | nil + } + + field(:delegatedGroupId, + as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoDelegatedGroupId + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDelegatedGroupInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDelegatedGroupInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDelegatedGroupInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_device_contact_extra_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_device_contact_extra_metadata.ex new file mode 100644 index 0000000000..cc2033d14e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_device_contact_extra_metadata.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactExtraMetadata do + @moduledoc """ + Extra metadata for an aggregated or raw device contact. + + ## Attributes + + * `attributes` (*type:* `list(String.t)`, *default:* `nil`) - Attributes for this device contact. + * `usageInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoUsageInfo.t)`, *default:* `nil`) - Usage info for this device contact. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributes => list(String.t()) | nil, + :usageInfo => + list(GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoUsageInfo.t()) | nil + } + + field(:attributes, type: :list) + + field(:usageInfo, + as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoUsageInfo, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactExtraMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactExtraMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactExtraMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_device_contact_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_device_contact_id.ex new file mode 100644 index 0000000000..2be86c0bff --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_device_contact_id.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactId do + @moduledoc """ + Unique id for an aggregated device contact. + + ## Attributes + + * `contactId` (*type:* `String.t`, *default:* `nil`) - Aggregated device contact id on the source device. + * `deviceId` (*type:* `String.t`, *default:* `nil`) - Source device id (go/client-instance-id) of this device contact. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contactId => String.t() | nil, + :deviceId => String.t() | nil + } + + field(:contactId) + field(:deviceId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactId.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_device_contact_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_device_contact_info.ex new file mode 100644 index 0000000000..6109b7bce5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_device_contact_info.ex @@ -0,0 +1,87 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactInfo do + @moduledoc """ + Device contact information. + + ## Attributes + + * `deviceContactMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactExtraMetadata.t`, *default:* `nil`) - Metadata for this device contact. + * `hasCrossDeviceData` (*type:* `boolean()`, *default:* `nil`) - Output only. True if any of the contact's phone, email or address fields can be used on devices other than the one it originated from. Note that there can be other fields, typically name, and metadata such as some of the raw_contact_infos that can be used on other devices. Assigned by the server. + * `id` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactId.t`, *default:* `nil`) - Id of the device contact. + * `lastClientUpdateTime` (*type:* `DateTime.t`, *default:* `nil`) - Last time a device contact was updated on device. + * `lookupKey` (*type:* `String.t`, *default:* `nil`) - An opaque value used by the device to look up this contact if its row id changed as a result of a sync or aggregation. See: https://developer.android.com/reference/android/provider/ContactsContract.ContactsColumns.html#LOOKUP_KEY + * `rawContactInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactInfo.t)`, *default:* `nil`) - Info about the raw device contacts that make up this device contact. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceContactMetadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactExtraMetadata.t() + | nil, + :hasCrossDeviceData => boolean() | nil, + :id => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactId.t() + | nil, + :lastClientUpdateTime => DateTime.t() | nil, + :lookupKey => String.t() | nil, + :rawContactInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactInfo.t() + ) + | nil + } + + field(:deviceContactMetadata, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactExtraMetadata + ) + + field(:hasCrossDeviceData) + + field(:id, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactId + ) + + field(:lastClientUpdateTime, as: DateTime) + field(:lookupKey) + + field(:rawContactInfo, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactInfo, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_edge_key_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_edge_key_info.ex new file mode 100644 index 0000000000..183c4abc2a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_edge_key_info.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEdgeKeyInfo do + @moduledoc """ + + + ## Attributes + + * `containerId` (*type:* `String.t`, *default:* `nil`) - The container ID of the entity this field creates a join to. See `SourceIdentity.id`. + * `containerType` (*type:* `String.t`, *default:* `nil`) - The type of container that this edge points to. See `SourceIdentity.container_type`. + * `extendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEdgeKeyInfoExtensionData.t`, *default:* `nil`) - Data that is added to the proto by peopleapi read extensions. + * `materialized` (*type:* `boolean()`, *default:* `nil`) - True indicates this edge links this source to a container represented by this person object. Note: Except for certain legacy clients, EdgeKeyInfo is only created for for edges to an entity in this person and this will always be true. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :containerId => String.t() | nil, + :containerType => String.t() | nil, + :extendedData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEdgeKeyInfoExtensionData.t() + | nil, + :materialized => boolean() | nil + } + + field(:containerId) + field(:containerType) + + field(:extendedData, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEdgeKeyInfoExtensionData + ) + + field(:materialized) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEdgeKeyInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEdgeKeyInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEdgeKeyInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_edge_key_info_extension_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_edge_key_info_extension_data.ex new file mode 100644 index 0000000000..5f2054f1e2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_edge_key_info_extension_data.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEdgeKeyInfoExtensionData do + @moduledoc """ + + + ## Attributes + + * `gdataCompatibilityExtensionId` (*type:* `String.t`, *default:* `nil`) - The GDataCompatibilityExtension will (temporarily) return mobile_owner_id for profile containers. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gdataCompatibilityExtensionId => String.t() | nil + } + + field(:gdataCompatibilityExtensionId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEdgeKeyInfoExtensionData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEdgeKeyInfoExtensionData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEdgeKeyInfoExtensionData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email.ex new file mode 100644 index 0000000000..d9289bd9df --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email.ex @@ -0,0 +1,114 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmail do + @moduledoc """ + + + ## Attributes + + * `certificate` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailCertificate.t)`, *default:* `nil`) - + * `classification` (*type:* `String.t`, *default:* `nil`) - + * `contactGroupPreference` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailContactGroupPreference.t)`, *default:* `nil`) - To read or update, use the CONTACT_GROUP_PREFERENCE mask field. + * `displayName` (*type:* `String.t`, *default:* `nil`) - + * `extendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailExtendedData.t`, *default:* `nil`) - + * `formattedType` (*type:* `String.t`, *default:* `nil`) - The `type` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `signupEmailMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailSignupEmailMetadata.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the email address. The type can be free form or one of these predefined values: * `home` * `work` * `other` + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :certificate => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailCertificate.t() + ) + | nil, + :classification => String.t() | nil, + :contactGroupPreference => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailContactGroupPreference.t() + ) + | nil, + :displayName => String.t() | nil, + :extendedData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailExtendedData.t() + | nil, + :formattedType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :signupEmailMetadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailSignupEmailMetadata.t() + | nil, + :type => String.t() | nil, + :value => String.t() | nil + } + + field(:certificate, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailCertificate, + type: :list + ) + + field(:classification) + + field(:contactGroupPreference, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailContactGroupPreference, + type: :list + ) + + field(:displayName) + + field(:extendedData, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailExtendedData + ) + + field(:formattedType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:signupEmailMetadata, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailSignupEmailMetadata + ) + + field(:type) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmail do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmail.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmail do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_certificate.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_certificate.ex new file mode 100644 index 0000000000..9d6616eff8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_certificate.ex @@ -0,0 +1,68 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailCertificate do + @moduledoc """ + Represents a S/MIME certificate config for use with Gmail. See //caribou/smime/proto/certificate_status.proto. There can be zero or more certificates associated with an email address, be it profile email or contact email. + + ## Attributes + + * `configurationName` (*type:* `String.t`, *default:* `nil`) - The name of this certificate configuration. Examples could be "High security level" or "For domain emails only". + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - It is conceivable that certificates could be ACLed. We also need to indicate which certificate is the default. The PersonFieldMetadata can accomplish both of these. + * `status` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailCertificateCertificateStatus.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :configurationName => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :status => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailCertificateCertificateStatus.t() + | nil + } + + field(:configurationName) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:status, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailCertificateCertificateStatus + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailCertificate do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailCertificate.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailCertificate do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_certificate_certificate_status.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_certificate_certificate_status.ex new file mode 100644 index 0000000000..5408790b12 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_certificate_certificate_status.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailCertificateCertificateStatus do + @moduledoc """ + Minimal S/MIME certificate status i.e. two fields per email address. + + ## Attributes + + * `notAfterSec` (*type:* `String.t`, *default:* `nil`) - The certificate expiration timestamp in seconds. + * `statusCode` (*type:* `String.t`, *default:* `nil`) - Current status of the email's certificate chain. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :notAfterSec => String.t() | nil, + :statusCode => String.t() | nil + } + + field(:notAfterSec) + field(:statusCode) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailCertificateCertificateStatus do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailCertificateCertificateStatus.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailCertificateCertificateStatus do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_contact_group_preference.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_contact_group_preference.ex new file mode 100644 index 0000000000..db53ac72ab --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_contact_group_preference.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailContactGroupPreference do + @moduledoc """ + Preferred email addresses for contact groups. + + ## Attributes + + * `contactGroupId` (*type:* `String.t`, *default:* `nil`) - + * `isSynthetic` (*type:* `boolean()`, *default:* `nil`) - If the Preference was implicitly set by PeopleApi/Contacts Service. A preference with this bit will not be saved to storage. See go/contact-group-email-preference-papi-problem for more info. + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contactGroupId => String.t() | nil, + :isSynthetic => boolean() | nil, + :type => String.t() | nil + } + + field(:contactGroupId) + field(:isSynthetic) + field(:type) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailContactGroupPreference do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailContactGroupPreference.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailContactGroupPreference do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_extended_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_extended_data.ex new file mode 100644 index 0000000000..9273f0c2a6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_extended_data.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailExtendedData do + @moduledoc """ + Extension data for a person email. + + ## Attributes + + * `internalExternal` (*type:* `GoogleApi.ContentWarehouse.V1.Model.PeoplestackFlexorgsProtoInternalExternal.t`, *default:* `nil`) - For use with the CUSTOMER_INFO_ADDITIONAL_DATA extension. This includes information on whether the given email is internal to or external to the requesting user's domain. + * `isPlaceholder` (*type:* `boolean()`, *default:* `nil`) - For ListPeoplebyKnownId to indicate an email is sythesized from a lookup email. + * `smtpServerSupportsTls` (*type:* `boolean()`, *default:* `nil`) - For use with the TLS extension. Whether the SMTP server that handles delivery for this email address supports TLS encryption. + * `usesConfusingCharacters` (*type:* `boolean()`, *default:* `nil`) - For use with the Gmail Homograph Warning extension. Whether the email contains mixed character sets that could be used to decieve users. This field is populated by the GMAIL_SECURITY_DATA extension. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :internalExternal => + GoogleApi.ContentWarehouse.V1.Model.PeoplestackFlexorgsProtoInternalExternal.t() | nil, + :isPlaceholder => boolean() | nil, + :smtpServerSupportsTls => boolean() | nil, + :usesConfusingCharacters => boolean() | nil + } + + field(:internalExternal, + as: GoogleApi.ContentWarehouse.V1.Model.PeoplestackFlexorgsProtoInternalExternal + ) + + field(:isPlaceholder) + field(:smtpServerSupportsTls) + field(:usesConfusingCharacters) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailExtendedData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailExtendedData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailExtendedData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_signup_email_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_signup_email_metadata.ex new file mode 100644 index 0000000000..b393585948 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_email_signup_email_metadata.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailSignupEmailMetadata do + @moduledoc """ + Additional metadata for a signup email. This will only be set if the email's classification is SIGNUP_EMAIL. + + ## Attributes + + * `primary` (*type:* `boolean()`, *default:* `nil`) - This is considered to be the primary signup email. At most 1 signup email will have this set. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :primary => boolean() | nil + } + + field(:primary) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailSignupEmailMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailSignupEmailMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmailSignupEmailMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_emergency_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_emergency_info.ex new file mode 100644 index 0000000000..5df40251a1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_emergency_info.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmergencyInfo do + @moduledoc """ + Emergency info for Person. See go/emergency-trusted-contacts-papi. + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `pomeroyId` (*type:* `String.t`, *default:* `nil`) - Opaque id from Pomeroy (go/pomeroy). Non-empty pomeroy_id means that this contact has the potential to become trusted contact or it's already trusted contact. Trust is eventually gaia<->gaia link, but when the trust link is initiated gaia might not be known. Until gaia is discovered, pomeroy_id is used to identify the contact uniquely. If trust_level is missing or set to TRUST_LEVEL_UNSPECIFIED pomeroy_id must be empty. + * `trustLevel` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :pomeroyId => String.t() | nil, + :trustLevel => String.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:pomeroyId) + field(:trustLevel) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmergencyInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmergencyInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmergencyInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_event.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_event.ex new file mode 100644 index 0000000000..53029e9c66 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_event.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEvent do + @moduledoc """ + + + ## Attributes + + * `calendarDay` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.t`, *default:* `nil`) - Event are more accurately represented as a calendar day that does not depend on a timestamp representation at all. When given a timestamp, there are lots of opportunities to make mistakes, so a CalendarDay proto is replacing timestamps. PeopleApi will return these values on reads, and unless the client is a legacy caller in the legacy_timestamp_event_write_behavior_enabled capability allowlist, this value is what is used for Person writes. + * `formattedType` (*type:* `String.t`, *default:* `nil`) - The `type` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `prompt` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPrompt.t`, *default:* `nil`) - People Prompts settings for contact event data. + * `timestampMillis` (*type:* `String.t`, *default:* `nil`) - Clients are recommended to read the calendar_day field instead of timestamp_millis. When writing events, new clients must set calendar_day instead of timestamp_millis. Events are currently represented as timestamp values, although the interpretation of these timestamp values is a calendar date. There are a few important details about how this value should be mapped to a calendar date that should be consistent among all clients. For detailed information, see Birthday.date_ms. + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the event. The type can be free form or one of these predefined values: * `anniversary` * `other` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :calendarDay => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.t() | nil, + :formattedType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :prompt => GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPrompt.t() | nil, + :timestampMillis => String.t() | nil, + :type => String.t() | nil + } + + field(:calendarDay, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate) + field(:formattedType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:prompt, as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPrompt) + field(:timestampMillis) + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEvent do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEvent.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEvent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_external_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_external_id.ex new file mode 100644 index 0000000000..47bbe21b8d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_external_id.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiExternalId do + @moduledoc """ + External identifier associated with the person. + + ## Attributes + + * `formattedType` (*type:* `String.t`, *default:* `nil`) - The `type` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the external ID. The type can be free form or one of these predefined values: * `account` * `customer` * `loginId` * `network` * `organization` + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :formattedType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :type => String.t() | nil, + :value => String.t() | nil + } + + field(:formattedType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:type) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiExternalId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiExternalId.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiExternalId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl.ex new file mode 100644 index 0000000000..e504b5fda0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAcl do + @moduledoc """ + The field ACL. Currently only populated on profile fields for the profile owner. A Person field ACL; see http://go/peopleapi-acl + + ## Attributes + + * `aclEntry` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntry.t)`, *default:* `nil`) - A custom type of field ACL entry. The set of all ACL entries includes those listed in acl_entry as well as predefined_acl_entry. + * `authorizedViewers` (*type:* `list(String.t)`, *default:* `nil`) - Set of users that will be authorized to view the field by this field ACL. If the ACL is public, this will only contain ALL_USERS. This field is synthesized, read-only, and currently only used for profile photos. It's populated under "person.photo.metadata.field_acl" for the current photo ACL and "person.photo.metadata.acl_choices" for available photo ACL choices. Note: The set of authorized viewers for a given FieldAcl may depend on the user's account type and domain configuration. For example, a PRIVATE_READ FieldAcl could have any of the following authorized viewers: Consumer user: [IDENTITY_ACL_ESTABLISHED] Dasher user without domain contact sharing: [IDENTITY_ACL_ESTABLISHED] Unicorn user: [SAME_UNICORN_FAMILY] Hafez user: [] + * `predefinedAclEntry` (*type:* `list(String.t)`, *default:* `nil`) - A common type of field ACL entry. A predefined ACL entry is a shortcut for a commonly occurring case of role and scope. For example, PUBLIC_READ is the same as an AclEntry with role = READER and scope.all_users = true. The set of all ACL entries includes those listed in acl_entry as well as predefined_acl_entry. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :aclEntry => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntry.t() + ) + | nil, + :authorizedViewers => list(String.t()) | nil, + :predefinedAclEntry => list(String.t()) | nil + } + + field(:aclEntry, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntry, + type: :list + ) + + field(:authorizedViewers, type: :list) + field(:predefinedAclEntry, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAcl do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAcl.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAcl do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry.ex new file mode 100644 index 0000000000..08c65cf039 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntry do + @moduledoc """ + + + ## Attributes + + * `role` (*type:* `String.t`, *default:* `nil`) - + * `scope` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScope.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :role => String.t() | nil, + :scope => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScope.t() + | nil + } + + field(:role) + + field(:scope, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScope + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntry do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope.ex new file mode 100644 index 0000000000..4d4a9a9a16 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope.ex @@ -0,0 +1,74 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScope do + @moduledoc """ + + + ## Attributes + + * `allUsers` (*type:* `boolean()`, *default:* `nil`) - Indicates that the field is accessible to all users including unauthenticated users. For some fields this means "to everyone except blocked users". + * `domainUsers` (*type:* `boolean()`, *default:* `nil`) - This is a "synthetic" field. In reality domains are treated as gaia- groups. This field will be 'true' when the field is ACLed to the gaia-group of the requester's domain. + * `membership` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAcl.t`, *default:* `nil`) - + * `person` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopePersonAcl.t`, *default:* `nil`) - Indicates that the field is accessible to a person. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allUsers => boolean() | nil, + :domainUsers => boolean() | nil, + :membership => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAcl.t() + | nil, + :person => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopePersonAcl.t() + | nil + } + + field(:allUsers) + field(:domainUsers) + + field(:membership, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAcl + ) + + field(:person, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopePersonAcl + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScope do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScope.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScope do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope_membership_acl.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope_membership_acl.ex new file mode 100644 index 0000000000..aca5d19618 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope_membership_acl.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAcl do + @moduledoc """ + Used when the field is accessible to a membership that the person has. + + ## Attributes + + * `circle` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAclCircleAcl.t`, *default:* `nil`) - + * `contactGroup` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAclContactGroupAcl.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :circle => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAclCircleAcl.t() + | nil, + :contactGroup => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAclContactGroupAcl.t() + | nil + } + + field(:circle, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAclCircleAcl + ) + + field(:contactGroup, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAclContactGroupAcl + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAcl do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAcl.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAcl do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope_membership_acl_circle_acl.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope_membership_acl_circle_acl.ex new file mode 100644 index 0000000000..25a0f5dfa5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope_membership_acl_circle_acl.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAclCircleAcl do + @moduledoc """ + Used when a field is accessible to a circle. + + ## Attributes + + * `circleId` (*type:* `String.t`, *default:* `nil`) - + * `circleSet` (*type:* `String.t`, *default:* `nil`) - + * `displayName` (*type:* `String.t`, *default:* `nil`) - Equivalent to Circle.display_name for the circle_id. Included when FieldAclOption.FULL_ACL_WITH_DETAILS is requested. This field is read-only and ignored on update. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :circleId => String.t() | nil, + :circleSet => String.t() | nil, + :displayName => String.t() | nil + } + + field(:circleId) + field(:circleSet) + field(:displayName) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAclCircleAcl do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAclCircleAcl.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAclCircleAcl do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope_membership_acl_contact_group_acl.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope_membership_acl_contact_group_acl.ex new file mode 100644 index 0000000000..c8d67c91d0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope_membership_acl_contact_group_acl.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAclContactGroupAcl do + @moduledoc """ + Used when a field is accessible to a legacy contact group. Contact groups are discouraged and may be deprecated soon. ContactGroupAcls are read-only. If they are included as part of an ACL on an Update, an exception is thrown. + + ## Attributes + + * `contactGroupId` (*type:* `String.t`, *default:* `nil`) - A contact group ID. This is either a user-defined contact group hex ID, or it is the string name of the enum constant in Group.PredefinedId in FBS backend.proto for predefined groups. Common values for the predefined name include, but are not limited to: all, myContacts, starred, chatBuddies, friends, family, coworkers, and blocked. + * `displayName` (*type:* `String.t`, *default:* `nil`) - The localized display name for the predefined group, if known; or, the display name for the user-defined contact group. Included when FieldAclOption.FULL_ACL_WITH_DETAILS is requested. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contactGroupId => String.t() | nil, + :displayName => String.t() | nil + } + + field(:contactGroupId) + field(:displayName) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAclContactGroupAcl do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAclContactGroupAcl.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopeMembershipAclContactGroupAcl do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope_person_acl.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope_person_acl.ex new file mode 100644 index 0000000000..63db04da7b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_acl_acl_entry_scope_person_acl.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopePersonAcl do + @moduledoc """ + Used when a field is accessible to a person. NOTE: ACLs to a circle or to a non-self person are no longer supported, so this can only be applied to the requester self. + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. This is not different than reading from person.name for a self-read; ACLs to a circle or to a non-self person are no longer supported. Equivalent to Name.display_name for the person_id profile. Included when the profile Name is ACLed to the requester and FieldAclOption.FULL_ACL_WITH_DETAILS is requested. This field is read-only and ignored on update. + * `personId` (*type:* `String.t`, *default:* `nil`) - + * `photoUrl` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. This is not different than reading from person.photo for a self-read; ACLs to a circle or to a non-self person are no longer supported. Equivalent to Photo.url for the person_id profile. Included when the profile Photo is ACLed to the requester and FieldAclOption.FULL_ACL_WITH_DETAILS is requested. This field is read-only and ignored on update. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :personId => String.t() | nil, + :photoUrl => String.t() | nil + } + + field(:displayName) + field(:personId) + field(:photoUrl) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopePersonAcl do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopePersonAcl.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAclAclEntryScopePersonAcl do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_emergency_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_emergency_info.ex new file mode 100644 index 0000000000..023d086ce0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_field_emergency_info.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldEmergencyInfo do + @moduledoc """ + Emergency information for Person field, such as Phone or Email. See go/emergency-trusted-contacts-papi. + + ## Attributes + + * `emergencyLevel` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :emergencyLevel => String.t() | nil + } + + field(:emergencyLevel) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldEmergencyInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldEmergencyInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldEmergencyInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_file_as.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_file_as.ex new file mode 100644 index 0000000000..0ecbd6a79e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_file_as.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFileAs do + @moduledoc """ + The FileAs field in Contacts is used to override the DisplayName of a Contact for that User. + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :value => String.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFileAs do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFileAs.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFileAs do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_g_pay_extended_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_g_pay_extended_data.ex new file mode 100644 index 0000000000..3099c114bf --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_g_pay_extended_data.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGPayExtendedData do + @moduledoc """ + Extension data for use in GPay Product Profile. go/gpay-product-profile-1-pager Contact: profiles-eng-fe@google.com + + ## Attributes + + * `failure` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductProfileFailure.t`, *default:* `nil`) - Failure type if there is an error when fetching product profile data. + * `internationalNumber` (*type:* `String.t`, *default:* `nil`) - A number in international format including the country code that is made user readable by including formatting such as spaces. Example: "+41 44 668 1800" DEPRECATED: A user's phone number should be masked and not in an international format + * `maskedNumber` (*type:* `String.t`, *default:* `nil`) - The masked string of a user's phone number The number will be obfucsated with * except the last 4 digits. Refer to: //java/com/google/nbu/paisa/common/PhoneNumberMasker.java + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :failure => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductProfileFailure.t() + | nil, + :internationalNumber => String.t() | nil, + :maskedNumber => String.t() | nil + } + + field(:failure, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductProfileFailure + ) + + field(:internationalNumber) + field(:maskedNumber) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGPayExtendedData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGPayExtendedData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGPayExtendedData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_gender.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_gender.ex new file mode 100644 index 0000000000..00c54b1ec4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_gender.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGender do + @moduledoc """ + Gender in PeopleApi has some odd semantics about writing and reading that are not obvious from the proto definition. First, the `type` string, when read, always maps to the constrained domain of "male", "female", and "other", aside from a pathological case that PeopleApi would like to fix. There are two typical patterns: 1. `type` is either "male" or "female" and `custom_type` and `address_me_as` are exactly as specified by an update to PeopleApi, although they are most often absent for "male" and "female" writes. 2. `type` is "other" and `custom_type` is set to a freeform string from the request. `address_me_as` is equal to whatever was provided at write time. When writing, the free-form string for `custom_type` can come from either `custom_type` if the field is present on the request, or if `custom_type` is absent, the string value of `type` will be copied into it. Any value in `type` will be coerced to "other" and the free-form value will be copied into `custom_type`, even if `type` is exactly "other". Prefer to explicitly set `custom_type` and set type to "other" instead of setting type to a free-form value. There are weird edge cases when the value is "unknown". Consider the behavior for `type` == "unknown" unspecified. Clients reading the gender should use the value from `formatted_type` if `type` is "male" or "female". If `type` is "other", `formatted_type` will be "Other" (or some translation) and clients should read `custom_type` for more specificity. + + ## Attributes + + * `addressMeAs` (*type:* `String.t`, *default:* `nil`) - Preferred pronoun choice. It's unclear whether this value is constrained to a finite domain by UIs. `address_me_as` may be populated regardless of whether `type` is "male", "female", or "other", although most writers only set it if `type` is "other". + * `customType` (*type:* `String.t`, *default:* `nil`) - A free-form string indicating what the user entered as their gender. `custom_type` may exist even if the type is "male" or "female", although most writers do not set it unless `type` is "other". + * `formattedType` (*type:* `String.t`, *default:* `nil`) - The `type` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - The gender. "male", "female", or "other". If "other", typically, additional fields will have additional information. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :addressMeAs => String.t() | nil, + :customType => String.t() | nil, + :formattedType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :type => String.t() | nil + } + + field(:addressMeAs) + field(:customType) + field(:formattedType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGender do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGender.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGender do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_gplus_extended_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_gplus_extended_data.ex new file mode 100644 index 0000000000..4ddf4d01aa --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_gplus_extended_data.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGplusExtendedData do + @moduledoc """ + + + ## Attributes + + * `contentRestriction` (*type:* `String.t`, *default:* `nil`) - + * `isEnterpriseUser` (*type:* `boolean()`, *default:* `nil`) - Equivalent to having the DASHER_POLICY bit in the REGISTERED state. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contentRestriction => String.t() | nil, + :isEnterpriseUser => boolean() | nil + } + + field(:contentRestriction) + field(:isEnterpriseUser) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGplusExtendedData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGplusExtendedData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGplusExtendedData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_hangouts_extended_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_hangouts_extended_data.ex new file mode 100644 index 0000000000..8df2042e5e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_hangouts_extended_data.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiHangoutsExtendedData do + @moduledoc """ + Extension data for use in Hangouts. + + ## Attributes + + * `hadPastHangoutState` (*type:* `String.t`, *default:* `nil`) - + * `invitationStatus` (*type:* `String.t`, *default:* `nil`) - Populated for all contacts. Only set if had_past_hangout_state == HAD_PAST_HANGOUT. INVITATION_NEEDED is not a valid value because there already is a past hangout, which means either the invitation is still pending or it’s been accepted. + * `isBot` (*type:* `boolean()`, *default:* `nil`) - True if this is a Hangouts bot. + * `isDismissed` (*type:* `boolean()`, *default:* `nil`) - + * `isFavorite` (*type:* `boolean()`, *default:* `nil`) - + * `isPinned` (*type:* `boolean()`, *default:* `nil`) - + * `userType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :hadPastHangoutState => String.t() | nil, + :invitationStatus => String.t() | nil, + :isBot => boolean() | nil, + :isDismissed => boolean() | nil, + :isFavorite => boolean() | nil, + :isPinned => boolean() | nil, + :userType => String.t() | nil + } + + field(:hadPastHangoutState) + field(:invitationStatus) + field(:isBot) + field(:isDismissed) + field(:isFavorite) + field(:isPinned) + field(:userType) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiHangoutsExtendedData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiHangoutsExtendedData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiHangoutsExtendedData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_identity_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_identity_info.ex new file mode 100644 index 0000000000..8ff4197723 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_identity_info.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiIdentityInfo do + @moduledoc """ + + + ## Attributes + + * `originalLookupToken` (*type:* `list(String.t)`, *default:* `nil`) - Original lookup token from the request that resulted in this person or one of its containers. + * `previousPersonId` (*type:* `list(String.t)`, *default:* `nil`) - Any former IDs this person may have had, in the case that their ID may have changed. Populated only for sync requests. Examples of such changes include adding an edge to a contact that links to a profile. The ID will change from being contact-oriented to being profile-oriented. To be used to clear out old versions of a person. + * `sourceIds` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSourceIdentity.t)`, *default:* `nil`) - A list of sources contributing to the merged person, including profiles (with gaia-id), contacts and synthetic-contacts. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :originalLookupToken => list(String.t()) | nil, + :previousPersonId => list(String.t()) | nil, + :sourceIds => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSourceIdentity.t() + ) + | nil + } + + field(:originalLookupToken, type: :list) + field(:previousPersonId, type: :list) + + field(:sourceIds, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSourceIdentity, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiIdentityInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiIdentityInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiIdentityInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_im.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_im.ex new file mode 100644 index 0000000000..af2f13a335 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_im.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiIm do + @moduledoc """ + + + ## Attributes + + * `formattedProtocol` (*type:* `String.t`, *default:* `nil`) - The `protocol` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `formattedType` (*type:* `String.t`, *default:* `nil`) - The `type` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `protocol` (*type:* `String.t`, *default:* `nil`) - The protocol of the IM. The protocol can be free form or one of these predefined values: * `aim` * `msn` * `yahoo` * `skype` * `qq` * `googleTalk` * `icq` * `jabber` * `netMeeting` + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the IM. The type can be free form or one of these predefined values: * `home` * `work` * `other` + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :formattedProtocol => String.t() | nil, + :formattedType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :protocol => String.t() | nil, + :type => String.t() | nil, + :value => String.t() | nil + } + + field(:formattedProtocol) + field(:formattedType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:protocol) + field(:type) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiIm do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiIm.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiIm do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_notification_target.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_notification_target.ex new file mode 100644 index 0000000000..c5f1903b94 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_notification_target.ex @@ -0,0 +1,92 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTarget do + @moduledoc """ + How and where to send notifications to this person in other apps, and why the requester can do so. See go/reachability for more info. "How" and "where" identify the recipient in a P2P Bridge (glossary/p2p bridge), and "why" may be helpful in a UI to disambiguate which of several ways may be used to contact the recipient. How: Via a Google profile or a reachable-only phone number that the requester has access to. Specified in the target "type" and "value". Where: Apps in which the profile/phone number owner may receive notifications. Specified in the repeated "app". Why: Which fields in, e.g., a contact associated with this person make the notification target info visible to the requester. Specified in the repeated originating_field param. Example: Alice has a contact Bob, with: Email 0 = bob@gmail.com Phone 0 = +12223334444 Phone 1 = +15556667777 Email 0 and Phone 0 let Alice see Bob's public profile (obfuscated gaia ID = 123). Public profiles are visible by email by default, and Bob has explicitly made it visible via Phone 0. Bob says people can send notifications to his public profile in YouTube. Phone 2 is associated with another Google profile that Bob owns, but he doesn't want others to see it. He is okay with people sending notifications to him in Who's Down if they have this phone number, however. There will be separate InAppNotificationTargets: one for Bob's public Google profile, and one for the second phone number, which is in his private profile. IANT #1 - targeting Bob's public profile (visible via Email 0 and Phone 0): app = [YOUTUBE] type = OBFUSCATED_GAIA_ID value = 123 originating_field: [ { field_type = EMAIL, field_index = 0 } // For Email 0 { field_type = PHONE, field_index = 0 } // For Phone 0 ] IANT #2 - targeting Bob's private profile phone number Phone 1: app = [WHOS_DOWN] type = PHONE value = +15556667777 originating_field: [ { field_type = PHONE, field_index = 1 } // For Phone 1 ] + + ## Attributes + + * `app` (*type:* `list(String.t)`, *default:* `nil`) - + * `clientData` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetClientData.t)`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `originatingField` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetOriginatingField.t)`, *default:* `nil`) - There may be more than one field from which this IANT originates, as in the case of Bob's public profile. + * `type` (*type:* `String.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - The value of the target, used for delivery. E.g., the obfuscated gaia ID for a visible profile. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :app => list(String.t()) | nil, + :clientData => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetClientData.t() + ) + | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :originatingField => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetOriginatingField.t() + ) + | nil, + :type => String.t() | nil, + :value => String.t() | nil + } + + field(:app, type: :list) + + field(:clientData, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetClientData, + type: :list + ) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:originatingField, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetOriginatingField, + type: :list + ) + + field(:type) + field(:value) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTarget do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTarget.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTarget do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_notification_target_client_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_notification_target_client_data.ex new file mode 100644 index 0000000000..c92b9cf1e3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_notification_target_client_data.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetClientData do + @moduledoc """ + Client-specific data pertaining to app reachability. No PII data or user content should be stored in this blob. + + ## Attributes + + * `app` (*type:* `String.t`, *default:* `nil`) - The app to which this client data applies. + * `byteValue` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :app => String.t() | nil, + :byteValue => String.t() | nil + } + + field(:app) + field(:byteValue) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetClientData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetClientData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetClientData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_notification_target_originating_field.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_notification_target_originating_field.ex new file mode 100644 index 0000000000..4c9c28bd30 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_notification_target_originating_field.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetOriginatingField do + @moduledoc """ + Info for identifying the specific field in this person that lets the requester send them notifications. These are typically fields added to a contact (e.g., email). There will not always be in originating field, typically in the case that whatever permits the requester to see this target info is not something that can be used on its own for contacting this person. + + ## Attributes + + * `fieldIndex` (*type:* `integer()`, *default:* `nil`) - The index of the relevant field in the merged person + * `fieldType` (*type:* `String.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - The value of the origin field + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fieldIndex => integer() | nil, + :fieldType => String.t() | nil, + :value => String.t() | nil + } + + field(:fieldIndex) + field(:fieldType) + field(:value) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetOriginatingField do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetOriginatingField.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetOriginatingField do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_reachability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_reachability.ex new file mode 100644 index 0000000000..f876d47537 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_reachability.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppReachability do + @moduledoc """ + This is deprecated in PEOPLE_API/SHARPEN, and should only be used for PROFILES. Clients should use InAppNotificationTarget field instead. Which apps the person has indicated they are reachable at for the requester. See go/d13y and com.google.focus.proto.InAppReachability. + + ## Attributes + + * `appType` (*type:* `String.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `reachabilityKey` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppReachabilityReachabilityKey.t`, *default:* `nil`) - + * `status` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :reachabilityKey => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppReachabilityReachabilityKey.t() + | nil, + :status => String.t() | nil + } + + field(:appType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:reachabilityKey, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppReachabilityReachabilityKey + ) + + field(:status) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppReachability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppReachability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppReachability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_reachability_reachability_key.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_reachability_reachability_key.ex new file mode 100644 index 0000000000..c2a9c0b934 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_in_app_reachability_reachability_key.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppReachabilityReachabilityKey do + @moduledoc """ + Information pertaining to how this reachable state was established. + + ## Attributes + + * `keyType` (*type:* `String.t`, *default:* `nil`) - + * `keyValue` (*type:* `String.t`, *default:* `nil`) - The value of the key by which the user said they may be reachable. E.g., the phone number. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :keyType => String.t() | nil, + :keyValue => String.t() | nil + } + + field(:keyType) + field(:keyValue) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppReachabilityReachabilityKey do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppReachabilityReachabilityKey.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppReachabilityReachabilityKey do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_interaction_settings.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_interaction_settings.ex new file mode 100644 index 0000000000..968c1b5bac --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_interaction_settings.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInteractionSettings do + @moduledoc """ + Defines interactions that are allowed or disallowed with this person. + + ## Attributes + + * `allowed` (*type:* `boolean()`, *default:* `nil`) - + * `interaction` (*type:* `String.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowed => boolean() | nil, + :interaction => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil + } + + field(:allowed) + field(:interaction) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInteractionSettings do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInteractionSettings.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInteractionSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_interest.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_interest.ex new file mode 100644 index 0000000000..84af917ed5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_interest.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInterest do + @moduledoc """ + + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :value => String.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInterest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInterest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInterest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_language.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_language.ex new file mode 100644 index 0000000000..77e97d11da --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_language.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLanguage do + @moduledoc """ + The value can either by a language code conforming to the IETF BCP 47 specification or a custom freeform value. By default the returned value is proxied from FBS Profile.Language. If `include_account_locale` is set on the `MergePersonSourceOptions` the language from go/uls is preferred and returned as primary along with a secondary language from FBS. + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :value => String.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLanguage do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLanguage.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLanguage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_lat_lng.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_lat_lng.ex new file mode 100644 index 0000000000..0d90d81187 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_lat_lng.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLatLng do + @moduledoc """ + + + ## Attributes + + * `lat` (*type:* `float()`, *default:* `nil`) - + * `lng` (*type:* `float()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lat => float() | nil, + :lng => float() | nil + } + + field(:lat) + field(:lng) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLatLng do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLatLng.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLatLng do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_legacy_fields.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_legacy_fields.ex new file mode 100644 index 0000000000..7871988eee --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_legacy_fields.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLegacyFields do + @moduledoc """ + Fields used in legacy applications. Useful for joining legacy and new data streams. Most applications should not care about these fields. + + ## Attributes + + * `mobileOwnerId` (*type:* `String.t`, *default:* `nil`) - Mobile obfuscated gaia id. This is the same gaia id in metadata.owner_id, but obfuscated with the legacy mobile obfuscator. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :mobileOwnerId => String.t() | nil + } + + field(:mobileOwnerId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLegacyFields do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLegacyFields.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLegacyFields do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_limited_profile_settings_field.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_limited_profile_settings_field.ex new file mode 100644 index 0000000000..f15ed62a9c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_limited_profile_settings_field.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLimitedProfileSettingsField do + @moduledoc """ + + + ## Attributes + + * `limitedProfileSettings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoLimitedProfileSettings.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :limitedProfileSettings => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoLimitedProfileSettings.t() + | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil + } + + field(:limitedProfileSettings, + as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoLimitedProfileSettings + ) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLimitedProfileSettingsField do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLimitedProfileSettingsField.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLimitedProfileSettingsField do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_location.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_location.ex new file mode 100644 index 0000000000..07c34bb517 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_location.ex @@ -0,0 +1,87 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLocation do + @moduledoc """ + + + ## Attributes + + * `buildingId` (*type:* `String.t`, *default:* `nil`) - + * `buildingName` (*type:* `String.t`, *default:* `nil`) - The building_name field is only filled if the DESK_LOCATION_ADDITIONAL_DATA extension is active. + * `current` (*type:* `boolean()`, *default:* `nil`) - + * `deskCode` (*type:* `String.t`, *default:* `nil`) - Most specific textual description of individual desk location. + * `floorName` (*type:* `String.t`, *default:* `nil`) - + * `floorSection` (*type:* `String.t`, *default:* `nil`) - + * `lastUpdateTime` (*type:* `DateTime.t`, *default:* `nil`) - Indicates the time this location was added or last edited. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `source` (*type:* `String.t`, *default:* `nil`) - Value indicates the origin of this location information. + * `type` (*type:* `String.t`, *default:* `nil`) - Describes the type of location. For e.g. Grew_up, Desk. Corresponds to FBS backend.proto Location.StandardTag + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :buildingId => String.t() | nil, + :buildingName => String.t() | nil, + :current => boolean() | nil, + :deskCode => String.t() | nil, + :floorName => String.t() | nil, + :floorSection => String.t() | nil, + :lastUpdateTime => DateTime.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :source => String.t() | nil, + :type => String.t() | nil, + :value => String.t() | nil + } + + field(:buildingId) + field(:buildingName) + field(:current) + field(:deskCode) + field(:floorName) + field(:floorSection) + field(:lastUpdateTime, as: DateTime) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:source) + field(:type) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLocation do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLocation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLocation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_management_upchain.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_management_upchain.ex new file mode 100644 index 0000000000..c4c1cc5733 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_management_upchain.ex @@ -0,0 +1,71 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiManagementUpchain do + @moduledoc """ + + + ## Attributes + + * `indirectManager` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiManagementUpchainIndirectManager.t)`, *default:* `nil`) - List of managers in the chain. If user has manager email "abc@google.com" and manager's manager has email "xyz@google.com" then the list will be: [0]: { email: "abc@google.com" } [1]: { email: "xyz@google.com" } + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `status` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :indirectManager => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiManagementUpchainIndirectManager.t() + ) + | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :status => String.t() | nil + } + + field(:indirectManager, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiManagementUpchainIndirectManager, + type: :list + ) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:status) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiManagementUpchain do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiManagementUpchain.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiManagementUpchain do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_management_upchain_indirect_manager.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_management_upchain_indirect_manager.ex new file mode 100644 index 0000000000..b8d595bfdc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_management_upchain_indirect_manager.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiManagementUpchainIndirectManager do + @moduledoc """ + + + ## Attributes + + * `email` (*type:* `String.t`, *default:* `nil`) - + * `personId` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :email => String.t() | nil, + :personId => String.t() | nil + } + + field(:email) + field(:personId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiManagementUpchainIndirectManager do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiManagementUpchainIndirectManager.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiManagementUpchainIndirectManager do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_maps_extended_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_maps_extended_data.ex new file mode 100644 index 0000000000..e6a292272d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_maps_extended_data.ex @@ -0,0 +1,78 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsExtendedData do + @moduledoc """ + Extension data for use in Maps Product Profile. + + ## Attributes + + * `failure` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductProfileFailure.t`, *default:* `nil`) - Failure type if there is an error when fetching product profile data. + * `followeeCount` (*type:* `String.t`, *default:* `nil`) - Number of people the user is following. + * `followerCount` (*type:* `integer()`, *default:* `nil`) - Number of people who are following the user. + * `numContributions` (*type:* `String.t`, *default:* `nil`) - Sum of creators contributions i.e. reviews, rating, questions, etc. + * `profilePhotoUrl` (*type:* `String.t`, *default:* `nil`) - The user's profile photo that might have a badge rendered at the corner if the user is eligible for a badge. + * `tagline` (*type:* `String.t`, *default:* `nil`) - A user's bio, or tagline. + * `topicExpertise` (*type:* `list(String.t)`, *default:* `nil`) - A topic that creator has expertise in. This will be in the format: emoji associated with the topic, display name of the topic, topic score + * `userCaption` (*type:* `String.t`, *default:* `nil`) - A user's caption displayed under the user name on their profile page i.e. 'Local Guide Level 8' + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :failure => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductProfileFailure.t() + | nil, + :followeeCount => String.t() | nil, + :followerCount => integer() | nil, + :numContributions => String.t() | nil, + :profilePhotoUrl => String.t() | nil, + :tagline => String.t() | nil, + :topicExpertise => list(String.t()) | nil, + :userCaption => String.t() | nil + } + + field(:failure, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductProfileFailure + ) + + field(:followeeCount) + field(:followerCount) + field(:numContributions) + field(:profilePhotoUrl) + field(:tagline) + field(:topicExpertise, type: :list) + field(:userCaption) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsExtendedData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsExtendedData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsExtendedData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_maps_profile.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_maps_profile.ex new file mode 100644 index 0000000000..95d32dc959 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_maps_profile.ex @@ -0,0 +1,79 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfile do + @moduledoc """ + Maps Profile Data. See go/product-profiles-backend-api. + + ## Attributes + + * `fieldRestriction` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfileFieldRestriction.t)`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `tagline` (*type:* `String.t`, *default:* `nil`) - + * `websiteLink` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfileUrlLink.t`, *default:* `nil`) - A link to the profile owner's website to be displayed in profile. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fieldRestriction => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfileFieldRestriction.t() + ) + | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :tagline => String.t() | nil, + :websiteLink => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfileUrlLink.t() + | nil + } + + field(:fieldRestriction, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfileFieldRestriction, + type: :list + ) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:tagline) + + field(:websiteLink, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfileUrlLink + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfile do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfile.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfile do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_maps_profile_field_restriction.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_maps_profile_field_restriction.ex new file mode 100644 index 0000000000..cbfd824592 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_maps_profile_field_restriction.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfileFieldRestriction do + @moduledoc """ + + + ## Attributes + + * `clientData` (*type:* `String.t`, *default:* `nil`) - Opaque data associated with this restriction e.g. abuse status. + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clientData => String.t() | nil, + :type => String.t() | nil + } + + field(:clientData) + field(:type) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfileFieldRestriction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfileFieldRestriction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfileFieldRestriction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_maps_profile_url_link.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_maps_profile_url_link.ex new file mode 100644 index 0000000000..a1f33a7212 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_maps_profile_url_link.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfileUrlLink do + @moduledoc """ + + + ## Attributes + + * `anchorText` (*type:* `String.t`, *default:* `nil`) - Anchor text to be displayed as clickable link. If not present, the URL should be displayed directly. + * `url` (*type:* `String.t`, *default:* `nil`) - The URL to be linked to. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :anchorText => String.t() | nil, + :url => String.t() | nil + } + + field(:anchorText) + field(:url) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfileUrlLink do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfileUrlLink.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfileUrlLink do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_match_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_match_info.ex new file mode 100644 index 0000000000..3f023d4541 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_match_info.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMatchInfo do + @moduledoc """ + Represents the matching information for a field when there is a query. + + ## Attributes + + * `match` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMatchInfoLookupTokenMatch.t)`, *default:* `nil`) - The list of matches ordered by most relevant matching for autocomplete coming first. + * `query` (*type:* `String.t`, *default:* `nil`) - The query token we are matching against. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :match => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMatchInfoLookupTokenMatch.t() + ) + | nil, + :query => String.t() | nil + } + + field(:match, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMatchInfoLookupTokenMatch, + type: :list + ) + + field(:query) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMatchInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMatchInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMatchInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_match_info_lookup_token_match.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_match_info_lookup_token_match.ex new file mode 100644 index 0000000000..ec3443230a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_match_info_lookup_token_match.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMatchInfoLookupTokenMatch do + @moduledoc """ + All the substring that were matched for the given query against the current field. Represents a substring of another string. + + ## Attributes + + * `endIndex` (*type:* `integer()`, *default:* `nil`) - Index right after the last character that matches the query. length = end-start, we have substring = [start, end). + * `startIndex` (*type:* `integer()`, *default:* `nil`) - Index of the first unicode character that matches the query. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :endIndex => integer() | nil, + :startIndex => integer() | nil + } + + field(:endIndex) + field(:startIndex) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMatchInfoLookupTokenMatch do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMatchInfoLookupTokenMatch.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMatchInfoLookupTokenMatch do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_membership.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_membership.ex new file mode 100644 index 0000000000..68ab14764f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_membership.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMembership do + @moduledoc """ + A membership that the person has. The person can be a member of multiple circles and multiple contact-groups. A circle membership is created by adding a person to a circle by person-id or by email. A contact-group membership is created by adding a contact to a contact-group. + + ## Attributes + + * `circleId` (*type:* `String.t`, *default:* `nil`) - A circle that the person belongs to. + * `contactGroupId` (*type:* `String.t`, *default:* `nil`) - A contact-group that the person belong to. The id can be either a hex-formatted id or a camel-cased SystemContactGroup predefined group name. The id will be predefined group name iff the system_contact_group_id has a value. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - The metadata field can be used to determine which container generated the membership. For example, when the membership has a contact_group_id, the metadata.container will be CONTACT and the container_id will be the contact Id. + * `systemContactGroupId` (*type:* `String.t`, *default:* `nil`) - The membership has a contact_group_id, this field will be populated when the membership is in a system-reserved contact-group. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :circleId => String.t() | nil, + :contactGroupId => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :systemContactGroupId => String.t() | nil + } + + field(:circleId) + field(:contactGroupId) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:systemContactGroupId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMembership do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMembership.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMembership do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_mission.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_mission.ex new file mode 100644 index 0000000000..f54b40f7cb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_mission.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMission do + @moduledoc """ + + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :value => String.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMission do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMission.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMission do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_name.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_name.ex new file mode 100644 index 0000000000..738346217e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_name.ex @@ -0,0 +1,119 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiName do + @moduledoc """ + See go/people-api-howto:names for an overview of name usage in PeopleAPI. The `unstructured_name` field contains a free form name value. The `given_name`, `middle_name`, `family_name`, etc, fields contain the structured name. For CONTACT mutates, (i.e. when Name.metadata.container is CONTACT), it is recommended for clients to set either the `unstructured_name` or the set of structured name fields, not both. * When only the `unstructured_name` is set, it is parsed to produce a best-guess set of structured name values for the `given_name`, `family_name`, etc. * When only the structured name fields are set, the various values are combined to produce an `unstructured_name`. * When both are set, the `unstructured_name` is saved as-is and the structured name fields are saved as-is. This may be confusing as they might not "match". For PROFILE mutates, (i.e. when Name.metadata.container is PROFILE), it is _required_ for clients to use the structured name fields as the unstructured field value is ignored on write. The unstructured name fields are generated for convenience on read. For DEVICE_CONTACTS, see b/156020778. + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - Read-only. A name synthesized based on `unstructured_name` and the structured name fields. Example: "John Smith" If a language code is passed in the side channel using http://cs/symbol:framework.rpc.DeprecatedPropagatedLanguageCode.value or http://cs/symbol:google.rpc.context.OriginContext.accept_language and the name does not have `honorific_prefix`, `middle_name`, or `honorific_suffix` set, the language code will be used to format `display_name`. If `include_account_locale` is set on the `MergePersonSourceOptions` and a language code is not passed in the side channel. The language code from go/uls will be used as the language code for formatting `display_name`. + * `displayNameLastFirst` (*type:* `String.t`, *default:* `nil`) - Read-only. A name synthesized based on `unstructured_name` and the structured name fields with the last name first. Example: "Smith, John" + * `displayNameSource` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoDisplayNameSource.t`, *default:* `nil`) - Read-only. The source of the display name. + * `familyName` (*type:* `String.t`, *default:* `nil`) - + * `formattedName` (*type:* `String.t`, *default:* `nil`) - DEPRECATED(b/70571931). Use `unstructured_name` instead. + * `givenName` (*type:* `String.t`, *default:* `nil`) - + * `honorificPrefix` (*type:* `String.t`, *default:* `nil`) - + * `honorificSuffix` (*type:* `String.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `middleName` (*type:* `String.t`, *default:* `nil`) - + * `pronunciations` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPronunciations.t`, *default:* `nil`) - This field is stored in contact annotations and merged at read-time. It is available with CONTACT_ANNOTATION container type at read time. + * `shortDisplayName` (*type:* `String.t`, *default:* `nil`) - NOTE: this is currently NOT IMPLEMENTED due to changed priorities. Clients usually rely on "first name" instead, when a short name is needed. Read-only. A possibly shorter version of the user's name. - The purpose of this field is to address the needs of UIs where a full display name might be too large to fit. Instead of relying on `first_name`, which might not be present, `short_display_name` is preferred. - This is only available for PROFILE and DOMAIN_PROFILE container types. - About the actual content in this field: will be the first name when it's visible to the requester, or the same as `display_name`, otherwise. A sample scenario where the first name may not be visible is when the limited profile is returned. For more info, see: http://shortn/_9iV7TJ33la + * `unstructuredName` (*type:* `String.t`, *default:* `nil`) - The free form name value. For contact mutates it is recommended for clients to set either the `unstructured_name` or the set of structured name fields, not both. + * `yomiFamilyName` (*type:* `String.t`, *default:* `nil`) - + * `yomiFullName` (*type:* `String.t`, *default:* `nil`) - + * `yomiGivenName` (*type:* `String.t`, *default:* `nil`) - + * `yomiHonorificPrefix` (*type:* `String.t`, *default:* `nil`) - + * `yomiHonorificSuffix` (*type:* `String.t`, *default:* `nil`) - + * `yomiMiddleName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :displayNameLastFirst => String.t() | nil, + :displayNameSource => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoDisplayNameSource.t() | nil, + :familyName => String.t() | nil, + :formattedName => String.t() | nil, + :givenName => String.t() | nil, + :honorificPrefix => String.t() | nil, + :honorificSuffix => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :middleName => String.t() | nil, + :pronunciations => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPronunciations.t() | nil, + :shortDisplayName => String.t() | nil, + :unstructuredName => String.t() | nil, + :yomiFamilyName => String.t() | nil, + :yomiFullName => String.t() | nil, + :yomiGivenName => String.t() | nil, + :yomiHonorificPrefix => String.t() | nil, + :yomiHonorificSuffix => String.t() | nil, + :yomiMiddleName => String.t() | nil + } + + field(:displayName) + field(:displayNameLastFirst) + + field(:displayNameSource, + as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoDisplayNameSource + ) + + field(:familyName) + field(:formattedName) + field(:givenName) + field(:honorificPrefix) + field(:honorificSuffix) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:middleName) + + field(:pronunciations, as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPronunciations) + + field(:shortDisplayName) + field(:unstructuredName) + field(:yomiFamilyName) + field(:yomiFullName) + field(:yomiGivenName) + field(:yomiHonorificPrefix) + field(:yomiHonorificSuffix) + field(:yomiMiddleName) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiName do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiName.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiName do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_name_pronunciation_audio_metadata_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_name_pronunciation_audio_metadata_info.ex new file mode 100644 index 0000000000..df58a9b2d0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_name_pronunciation_audio_metadata_info.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiNamePronunciationAudioMetadataInfo do + @moduledoc """ + Pronunciation audio metadata info. See go/name-pronunciation-backend. The metadata itself tracks the state of a user's name pronunciation audio. + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `namePronunciationAudioMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoNamePronunciationAudioMetadata.t`, *default:* `nil`) - Actual metadata proto, shared with FBS backends. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :namePronunciationAudioMetadata => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoNamePronunciationAudioMetadata.t() + | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:namePronunciationAudioMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoNamePronunciationAudioMetadata + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiNamePronunciationAudioMetadataInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiNamePronunciationAudioMetadataInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiNamePronunciationAudioMetadataInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_nickname.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_nickname.ex new file mode 100644 index 0000000000..2b192fa82e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_nickname.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiNickname do + @moduledoc """ + + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :type => String.t() | nil, + :value => String.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:type) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiNickname do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiNickname.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiNickname do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_occupation.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_occupation.ex new file mode 100644 index 0000000000..fd12a592c3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_occupation.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOccupation do + @moduledoc """ + + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :value => String.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOccupation do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOccupation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOccupation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_opening_hours.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_opening_hours.ex new file mode 100644 index 0000000000..2e921e79cf --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_opening_hours.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHours do + @moduledoc """ + The periods that this place is open during the week. The periods are in chronological order, starting with today in the place-local timezone. An empty (but not absent) value indicates a place that is never open, e.g. because it is closed temporarily for renovations. + + ## Attributes + + * `openNow` (*type:* `boolean()`, *default:* `nil`) - Is this place open right now? Always present unless we lack time-of-day or timezone data for these opening hours. + * `periods` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursPeriod.t)`, *default:* `nil`) - + * `weekdayTexts` (*type:* `list(String.t)`, *default:* `nil`) - Localized strings describing the opening hours of this place, one string for each day of the week. Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00-06:00" + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :openNow => boolean() | nil, + :periods => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursPeriod.t() + ) + | nil, + :weekdayTexts => list(String.t()) | nil + } + + field(:openNow) + + field(:periods, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursPeriod, + type: :list + ) + + field(:weekdayTexts, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHours do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHours.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHours do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_opening_hours_endpoint.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_opening_hours_endpoint.ex new file mode 100644 index 0000000000..e18939007d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_opening_hours_endpoint.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursEndpoint do + @moduledoc """ + + + ## Attributes + + * `day` (*type:* `integer()`, *default:* `nil`) - A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc. + * `time` (*type:* `String.t`, *default:* `nil`) - A time in 24-hour "hhmm" format (i.e. range is 0000 to 2359). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :day => integer() | nil, + :time => String.t() | nil + } + + field(:day) + field(:time) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursEndpoint do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursEndpoint.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursEndpoint do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_opening_hours_period.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_opening_hours_period.ex new file mode 100644 index 0000000000..a6aed1d54a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_opening_hours_period.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursPeriod do + @moduledoc """ + + + ## Attributes + + * `close` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursEndpoint.t`, *default:* `nil`) - + * `open` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursEndpoint.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :close => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursEndpoint.t() + | nil, + :open => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursEndpoint.t() + | nil + } + + field(:close, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursEndpoint + ) + + field(:open, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursEndpoint + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursPeriod do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursPeriod.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHoursPeriod do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_organization.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_organization.ex new file mode 100644 index 0000000000..00a71f0e5f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_organization.ex @@ -0,0 +1,148 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganization do + @moduledoc """ + + + ## Attributes + + * `assignment` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganizationAssignment.t)`, *default:* `nil`) - + * `certification` (*type:* `String.t`, *default:* `nil`) - + * `costCenter` (*type:* `String.t`, *default:* `nil`) - + * `current` (*type:* `boolean()`, *default:* `nil`) - + * `department` (*type:* `String.t`, *default:* `nil`) - + * `description` (*type:* `String.t`, *default:* `nil`) - + * `domain` (*type:* `String.t`, *default:* `nil`) - + * `endCalendarDay` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.t`, *default:* `nil`) - Start and End Dates are better represented as calendar entities. The intention is to replace timestamps. Not set if no value exists. Clients can choose whether to use has* semantics or default value semantics. For writes, the default proto and an absent message are equivalent. Legacy callers in the legacy_timestamp_event_write_behavior_enabled capability allowlist should write to PeopleApi via end_ms and migrate to setting both so they can be removed from the whitelist. + * `endMs` (*type:* `String.t`, *default:* `nil`) - Clients are encouraged to read the end_calendar_day instead. PeopleApi writes will still use end_ms for legacy callers that are in the legacy_timestamp_event_write_behavior_enabled capability allowlist. New writers must use the calendar_day fields. + * `endMsAsNumber` (*type:* `String.t`, *default:* `nil`) - + * `formattedStringType` (*type:* `String.t`, *default:* `nil`) - The `string_type` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `fteMilliPercent` (*type:* `integer()`, *default:* `nil`) - + * `importance` (*type:* `number()`, *default:* `nil`) - + * `location` (*type:* `String.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `name` (*type:* `String.t`, *default:* `nil`) - + * `project` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganizationProject.t)`, *default:* `nil`) - + * `startCalendarDay` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.t`, *default:* `nil`) - Start and End Dates are better represented as calendar entities. The intention is to replace timestamps. Not set if no value exists. Clients can choose whether to use has* semantics or default value semantics. For writes, the default proto and an absent message are equivalent. Legacy callers in the legacy_timestamp_event_write_behavior_enabled capability allowlist should write to PeopleApi via start_ms and migrate to setting both so they can be removed from the allowlist. + * `startMs` (*type:* `String.t`, *default:* `nil`) - Clients are encouraged to read the start_calendar_day instead. PeopleApi writes will still use start_ms for legacy callers that are in the legacy_timestamp_event_write_behavior_enabled capability allowlist. New writers must use the calendar_day fields. + * `startMsAsNumber` (*type:* `String.t`, *default:* `nil`) - + * `stringType` (*type:* `String.t`, *default:* `nil`) - The type of the organization. The type can be free form or one of these predefined values: * `work` * `school` + * `symbol` (*type:* `String.t`, *default:* `nil`) - + * `title` (*type:* `String.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - + * `yomiName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :assignment => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganizationAssignment.t() + ) + | nil, + :certification => String.t() | nil, + :costCenter => String.t() | nil, + :current => boolean() | nil, + :department => String.t() | nil, + :description => String.t() | nil, + :domain => String.t() | nil, + :endCalendarDay => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.t() | nil, + :endMs => String.t() | nil, + :endMsAsNumber => String.t() | nil, + :formattedStringType => String.t() | nil, + :fteMilliPercent => integer() | nil, + :importance => number() | nil, + :location => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :name => String.t() | nil, + :project => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganizationProject.t() + ) + | nil, + :startCalendarDay => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.t() | nil, + :startMs => String.t() | nil, + :startMsAsNumber => String.t() | nil, + :stringType => String.t() | nil, + :symbol => String.t() | nil, + :title => String.t() | nil, + :type => String.t() | nil, + :yomiName => String.t() | nil + } + + field(:assignment, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganizationAssignment, + type: :list + ) + + field(:certification) + field(:costCenter) + field(:current) + field(:department) + field(:description) + field(:domain) + field(:endCalendarDay, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate) + field(:endMs) + field(:endMsAsNumber) + field(:formattedStringType) + field(:fteMilliPercent) + field(:importance) + field(:location) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:name) + + field(:project, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganizationProject, + type: :list + ) + + field(:startCalendarDay, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate) + field(:startMs) + field(:startMsAsNumber) + field(:stringType) + field(:symbol) + field(:title) + field(:type) + field(:yomiName) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganization do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganization.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganization do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_organization_assignment.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_organization_assignment.ex new file mode 100644 index 0000000000..5acd2d5059 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_organization_assignment.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganizationAssignment do + @moduledoc """ + + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - + * `url` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :url => String.t() | nil + } + + field(:name) + field(:url) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganizationAssignment do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganizationAssignment.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganizationAssignment do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_organization_project.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_organization_project.ex new file mode 100644 index 0000000000..8b11e4478c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_organization_project.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganizationProject do + @moduledoc """ + + + ## Attributes + + * `description` (*type:* `String.t`, *default:* `nil`) - + * `name` (*type:* `String.t`, *default:* `nil`) - + * `role` (*type:* `String.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - Mapped from StandardProjectTag / CustomProjectTag + * `url` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :description => String.t() | nil, + :name => String.t() | nil, + :role => String.t() | nil, + :type => String.t() | nil, + :url => String.t() | nil + } + + field(:description) + field(:name) + field(:role) + field(:type) + field(:url) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganizationProject do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganizationProject.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganizationProject do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_other_keyword.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_other_keyword.ex new file mode 100644 index 0000000000..0b939f81a2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_other_keyword.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOtherKeyword do + @moduledoc """ + + + ## Attributes + + * `formattedType` (*type:* `String.t`, *default:* `nil`) - The `type` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `source` (*type:* `String.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the event. The type depends on the `OtherKeyword.source`. `OUTLOOK` source fields must be one of: * `billing_information` * `directory_server` * `keyword` * `mileage` * `sensitivity` * `user` * `subject` All other fields are treated as a `CUSTOM` source field. The value can be free form or one of these predefined values: * `home` * `other` * `work` + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :formattedType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :source => String.t() | nil, + :type => String.t() | nil, + :value => String.t() | nil + } + + field(:formattedType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:source) + field(:type) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOtherKeyword do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOtherKeyword.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOtherKeyword do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person.ex new file mode 100644 index 0000000000..36af239d2e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person.ex @@ -0,0 +1,837 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson do + @moduledoc """ + Merged-person combines multiple sources of data like contacts and profiles. See go/people-api and go/understanding-merged-person NOTE: Why are all the fields repeated? See go/people-api-concepts#repeated + + ## Attributes + + * `birthday` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthday.t)`, *default:* `nil`) - + * `sshPublicKey` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSshPublicKey.t)`, *default:* `nil`) - + * `circleMembership` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCircleMembership.t)`, *default:* `nil`) - Circles that this person is a member of. + * `externalId` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiExternalId.t)`, *default:* `nil`) - + * `fileAs` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFileAs.t)`, *default:* `nil`) - + * `certifiedBornBefore` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCertifiedBornBefore.t)`, *default:* `nil`) - + * `emergencyInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmergencyInfo.t)`, *default:* `nil`) - Emergency information. See go/emergency-trusted-contacts-papi. + * `contactStateInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactStateInfo.t)`, *default:* `nil`) - Contact state and related metadata. See go/fbs-contacts-trash. If this field was requested but is not set on the Person then the contact is in the DEFAULT contact state. This field is read-only, and should not be set on a mutate (e.g. UpdatePerson) call. Clients must call the explicit APIs (e.g. UntrashPerson) to change contact state. + * `rosterDetails` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterDetails.t)`, *default:* `nil`) - Data specific to rosters (such as Google Groups and Chat Rooms). Data which also applies to contacts and profiles such as name, email, and photo, etc are returned in the corresponding Person fields. + * `plusPageInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlusPageInfo.t)`, *default:* `nil`) - DEPRECATED. Info about plus pages in the person. + * `pronoun` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPronoun.t)`, *default:* `nil`) - Pronouns are not supported for consumer profiles. See go/pronouns-in-people-system-prd for more details. + * `linkedPerson` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson.t)`, *default:* `nil`) - Other person resources linked indirectly by an edge. The full person or just the IDs may be populated depending on request parameters. We consider linked people distinct people, but they share information. Example: A contact with two outgoing edges. The two edges are considered separate, but linked people. + * `posixAccount` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPosixAccount.t)`, *default:* `nil`) - + * `contactCreateContextInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo.t)`, *default:* `nil`) - ContactCreateContextInfo has a timestamp timestamp and additional metadata (e.g. the source of the creation) for when the contact was created. See also `ContactEditContextInfo`. + * `otherKeyword` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOtherKeyword.t)`, *default:* `nil`) - Legacy arbitrary key value fields + * `customSchemaField` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCustomSchemaField.t)`, *default:* `nil`) - + * `gender` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGender.t)`, *default:* `nil`) - + * `sortKeys` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSortKeys.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadata.t`, *default:* `nil`) - + * `language` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLanguage.t)`, *default:* `nil`) - + * `email` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmail.t)`, *default:* `nil`) - + * `rightOfPublicityState` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRightOfPublicityState.t)`, *default:* `nil`) - + * `website` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebsite.t)`, *default:* `nil`) - + * `managementUpchain` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiManagementUpchain.t)`, *default:* `nil`) - + * `connectionReminder` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiConnectionReminder.t)`, *default:* `nil`) - Reminder to connect with a Contact (part of go/people-prompts). Also contains contact-level prompts settings. Each Contact can have a single `connection_reminder` (but can have multiple Prompts inside of it). Field is repeated per PeopleAPI data model go/people-api-concepts#repeated. Only supported for CONTACT container. + * `peopleInCommon` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson.t)`, *default:* `nil`) - DEPRECATED. This feature was stubbed, but never implemented. This field will not be populated with any results. + * `coverPhoto` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCoverPhoto.t)`, *default:* `nil`) - DEPRECATED. Now always returns a default cover photo. See go/sunset-cover-photo. + * `clientData` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiClientData.t)`, *default:* `nil`) - + * `skills` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSkills.t)`, *default:* `nil`) - + * `mapsProfile` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfile.t)`, *default:* `nil`) - MapsProfile, see go/product-profiles-backend-api + * `inAppNotificationTarget` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTarget.t)`, *default:* `nil`) - Ways to send in-app notifications to this person. See go/reachability. This field is read-only and ignored for mutates. + * `im` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiIm.t)`, *default:* `nil`) - + * `name` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiName.t)`, *default:* `nil`) - See go/people-api-howto:names for details about names in PeopleAPI. + * `profileUrl` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. No data is returned for this field anymore. (go/people-api-concepts#repeated): Use person.profile_url_repeated instead. Access to this field is restricted to a set of legacy clients. This is a Google+-only field. See go/fbs-g+-deprecation. NOTE: `Person.profile_url` is only populated for profile-centric person. + * `fingerprint` (*type:* `String.t`, *default:* `nil`) - A fingerprint that can be used to reliably determine if a resource has changed. Externally it is used as part of the etag. + * `event` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEvent.t)`, *default:* `nil`) - Event is currently in use by contacts. + * `location` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLocation.t)`, *default:* `nil`) - + * `legacyFields` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLegacyFields.t`, *default:* `nil`) - DEPRECATED. This field was only for backwards compatibility with legacy GData callers, and should not be used by new clients. Legacy fields used for mobile clients. + * `personId` (*type:* `String.t`, *default:* `nil`) - The ID of the person. This is determined by the backend, is unstable, and may not be the same as a user_id. Internally referred as 'personKey' to distinguish from the common PersonId pojo. See go/people-api-concepts#person-id + * `inAppReachability` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppReachability.t)`, *default:* `nil`) - Used only by profile service, deprecated for PeopleAPI and Sharpen. If you aren't sure, contact people-api-users@ and profile-service-eng@. + * `placeDetails` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlaceDetails.t)`, *default:* `nil`) - Data specific to places. Data which also applies to contacts and profiles such as name, phone, photo, etc. are returned in the corresponding Person fields. + * `searchProfile` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSearchProfile.t)`, *default:* `nil`) - Profile for Janata and Search. go/janata-profile-in-sgbe + * `extendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonExtendedData.t`, *default:* `nil`) - Data added by extensions that are not specific to a particular field. + * `mission` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMission.t)`, *default:* `nil`) - + * `profileUrlRepeated` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileUrl.t)`, *default:* `nil`) - DEPRECATED. No data is returned for this field anymore. This is a Google+-only field. See go/fbs-g+-deprecation. + * `interest` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInterest.t)`, *default:* `nil`) - + * `address` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAddress.t)`, *default:* `nil`) - + * `nickname` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiNickname.t)`, *default:* `nil`) - + * `calendar` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCalendar.t)`, *default:* `nil`) - b/145671020: Deprecated for Profiles, but not for Contacts. + * `socialConnection` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSocialConnection.t)`, *default:* `nil`) - NOTE: this is used by go/starlight, but not actually used or returned in PeopleAPI. See b/27281119 for context. Please reach out to people-api-eng@ if you have questions. + * `photo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhoto.t)`, *default:* `nil`) - See go/people-api-concepts/photos for usage details + * `relation` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelation.t)`, *default:* `nil`) - See go/relation-vs-relationship for relation vs relationship explanation. + * `braggingRights` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBraggingRights.t)`, *default:* `nil`) - Used only by contacts, no data will be returned for profiles. + * `teamsExtendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiTeamsExtendedData.t`, *default:* `nil`) - DEPRECATED. *UNSUPPORTED*. This field is never populated. + * `relationshipInterest` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationshipInterest.t)`, *default:* `nil`) - DEPRECATED. No data is returned for this field anymore. + * `occupation` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOccupation.t)`, *default:* `nil`) - + * `contactGroupMembership` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactGroupMembership.t)`, *default:* `nil`) - Contact groups that this person is a member of. + * `relationshipStatus` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationshipStatus.t)`, *default:* `nil`) - DEPRECATED. No data is returned for this field anymore. + * `userDefined` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiUserDefined.t)`, *default:* `nil`) - UserDefined is currently in use by contacts. + * `limitedProfileSettings` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLimitedProfileSettingsField.t)`, *default:* `nil`) - Settings for the limited profile. See go/limited-profiles-api. + * `contactEditContextInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo.t)`, *default:* `nil`) - ContactEditContextInfo is a timestamp and additional metadata (e.g. the source of the edit) for the last 'human initiated edit'. See also `ContactCreateContextInfo`. + * `contactPromptSettingsInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactPromptSettingsInfo.t)`, *default:* `nil`) - + * `about` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAbout.t)`, *default:* `nil`) - + * `communicationEmail` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCommunicationEmail.t)`, *default:* `nil`) - + * `readOnlyProfileInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfo.t)`, *default:* `nil`) - Information about the profiles that are a part of this Person. This is only applicable to PROFILE and DOMAIN_PROFILE containers. + * `tagline` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiTagline.t)`, *default:* `nil`) - Only supported for PLACE container results, no data will be returned for profiles. + * `organization` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganization.t)`, *default:* `nil`) - + * `ageRangeRepeated` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAgeRangeType.t)`, *default:* `nil`) - Data on the person's age range, adult status, and age of consent. NOTE: Please read go/people-api-howto:age on how to correctly get age data. + * `sipAddress` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSipAddress.t)`, *default:* `nil`) - SipAddress is currently in use by contacts. + * `phone` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhone.t)`, *default:* `nil`) - + * `ageRange` (*type:* `String.t`, *default:* `nil`) - Deprecated. If age is needed use `person.age_range_repeated` instead. Please see go/people-api-howto:age on how to correctly get age data. + * `personAttribute` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonAttribute.t)`, *default:* `nil`) - In order to request this field, the client must set desired PersonAttributeKey in the dedicated RequestMask field `person_attribute`. Unlike other person fields, this field cannot be requested in the `include_field` field mask. + * `interactionSettings` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInteractionSettings.t)`, *default:* `nil`) - DEPRECATED. This field isn't populated in people.list. + * `visibleToGuests` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiVisibleToGuests.t)`, *default:* `nil`) - Add annotation_id and metadata (product_source) for visible to guests contacts go/visible-to-guests. + * `namePronunciationAudioMetadataInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiNamePronunciationAudioMetadataInfo.t)`, *default:* `nil`) - Metadata info for a user's name pronunciation audio. See go/name-pronunication-backend. + * `membership` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMembership.t)`, *default:* `nil`) - DEPRECATED. Please use `circle_membership` or `contact_group_membership` instead. Contact-groups and circles that this person is a member of. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :birthday => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthday.t() + ) + | nil, + :sshPublicKey => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSshPublicKey.t() + ) + | nil, + :circleMembership => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCircleMembership.t() + ) + | nil, + :externalId => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiExternalId.t() + ) + | nil, + :fileAs => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFileAs.t() + ) + | nil, + :certifiedBornBefore => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCertifiedBornBefore.t() + ) + | nil, + :emergencyInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmergencyInfo.t() + ) + | nil, + :contactStateInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactStateInfo.t() + ) + | nil, + :rosterDetails => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterDetails.t() + ) + | nil, + :plusPageInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlusPageInfo.t() + ) + | nil, + :pronoun => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPronoun.t() + ) + | nil, + :linkedPerson => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson.t() + ) + | nil, + :posixAccount => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPosixAccount.t() + ) + | nil, + :contactCreateContextInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo.t() + ) + | nil, + :otherKeyword => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOtherKeyword.t() + ) + | nil, + :customSchemaField => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCustomSchemaField.t() + ) + | nil, + :gender => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGender.t() + ) + | nil, + :sortKeys => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSortKeys.t() + | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadata.t() + | nil, + :language => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLanguage.t() + ) + | nil, + :email => + list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmail.t()) + | nil, + :rightOfPublicityState => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRightOfPublicityState.t() + ) + | nil, + :website => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebsite.t() + ) + | nil, + :managementUpchain => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiManagementUpchain.t() + ) + | nil, + :connectionReminder => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiConnectionReminder.t() + ) + | nil, + :peopleInCommon => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson.t() + ) + | nil, + :coverPhoto => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCoverPhoto.t() + ) + | nil, + :clientData => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiClientData.t() + ) + | nil, + :skills => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSkills.t() + ) + | nil, + :mapsProfile => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfile.t() + ) + | nil, + :inAppNotificationTarget => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTarget.t() + ) + | nil, + :im => + list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiIm.t()) + | nil, + :name => + list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiName.t()) + | nil, + :profileUrl => String.t() | nil, + :fingerprint => String.t() | nil, + :event => + list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEvent.t()) + | nil, + :location => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLocation.t() + ) + | nil, + :legacyFields => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLegacyFields.t() + | nil, + :personId => String.t() | nil, + :inAppReachability => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppReachability.t() + ) + | nil, + :placeDetails => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlaceDetails.t() + ) + | nil, + :searchProfile => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSearchProfile.t() + ) + | nil, + :extendedData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonExtendedData.t() + | nil, + :mission => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMission.t() + ) + | nil, + :profileUrlRepeated => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileUrl.t() + ) + | nil, + :interest => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInterest.t() + ) + | nil, + :address => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAddress.t() + ) + | nil, + :nickname => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiNickname.t() + ) + | nil, + :calendar => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCalendar.t() + ) + | nil, + :socialConnection => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSocialConnection.t() + ) + | nil, + :photo => + list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhoto.t()) + | nil, + :relation => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelation.t() + ) + | nil, + :braggingRights => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBraggingRights.t() + ) + | nil, + :teamsExtendedData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiTeamsExtendedData.t() + | nil, + :relationshipInterest => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationshipInterest.t() + ) + | nil, + :occupation => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOccupation.t() + ) + | nil, + :contactGroupMembership => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactGroupMembership.t() + ) + | nil, + :relationshipStatus => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationshipStatus.t() + ) + | nil, + :userDefined => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiUserDefined.t() + ) + | nil, + :limitedProfileSettings => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLimitedProfileSettingsField.t() + ) + | nil, + :contactEditContextInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo.t() + ) + | nil, + :contactPromptSettingsInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactPromptSettingsInfo.t() + ) + | nil, + :about => + list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAbout.t()) + | nil, + :communicationEmail => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCommunicationEmail.t() + ) + | nil, + :readOnlyProfileInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfo.t() + ) + | nil, + :tagline => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiTagline.t() + ) + | nil, + :organization => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganization.t() + ) + | nil, + :ageRangeRepeated => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAgeRangeType.t() + ) + | nil, + :sipAddress => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSipAddress.t() + ) + | nil, + :phone => + list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhone.t()) + | nil, + :ageRange => String.t() | nil, + :personAttribute => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonAttribute.t() + ) + | nil, + :interactionSettings => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInteractionSettings.t() + ) + | nil, + :visibleToGuests => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiVisibleToGuests.t() + ) + | nil, + :namePronunciationAudioMetadataInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiNamePronunciationAudioMetadataInfo.t() + ) + | nil, + :membership => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMembership.t() + ) + | nil + } + + field(:birthday, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBirthday, + type: :list + ) + + field(:sshPublicKey, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSshPublicKey, + type: :list + ) + + field(:circleMembership, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCircleMembership, + type: :list + ) + + field(:externalId, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiExternalId, + type: :list + ) + + field(:fileAs, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFileAs, + type: :list + ) + + field(:certifiedBornBefore, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCertifiedBornBefore, + type: :list + ) + + field(:emergencyInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmergencyInfo, + type: :list + ) + + field(:contactStateInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactStateInfo, + type: :list + ) + + field(:rosterDetails, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterDetails, + type: :list + ) + + field(:plusPageInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlusPageInfo, + type: :list + ) + + field(:pronoun, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPronoun, + type: :list + ) + + field(:linkedPerson, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson, + type: :list + ) + + field(:posixAccount, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPosixAccount, + type: :list + ) + + field(:contactCreateContextInfo, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactCreateContextInfo, + type: :list + ) + + field(:otherKeyword, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOtherKeyword, + type: :list + ) + + field(:customSchemaField, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCustomSchemaField, + type: :list + ) + + field(:gender, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGender, + type: :list + ) + + field(:sortKeys, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSortKeys + ) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadata + ) + + field(:language, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLanguage, + type: :list + ) + + field(:email, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmail, + type: :list + ) + + field(:rightOfPublicityState, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRightOfPublicityState, + type: :list + ) + + field(:website, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebsite, + type: :list + ) + + field(:managementUpchain, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiManagementUpchain, + type: :list + ) + + field(:connectionReminder, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiConnectionReminder, + type: :list + ) + + field(:peopleInCommon, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson, + type: :list + ) + + field(:coverPhoto, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCoverPhoto, + type: :list + ) + + field(:clientData, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiClientData, + type: :list + ) + + field(:skills, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSkills, + type: :list + ) + + field(:mapsProfile, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsProfile, + type: :list + ) + + field(:inAppNotificationTarget, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppNotificationTarget, + type: :list + ) + + field(:im, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiIm, + type: :list + ) + + field(:name, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiName, + type: :list + ) + + field(:profileUrl) + field(:fingerprint) + + field(:event, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEvent, + type: :list + ) + + field(:location, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLocation, + type: :list + ) + + field(:legacyFields, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLegacyFields + ) + + field(:personId) + + field(:inAppReachability, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInAppReachability, + type: :list + ) + + field(:placeDetails, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlaceDetails, + type: :list + ) + + field(:searchProfile, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSearchProfile, + type: :list + ) + + field(:extendedData, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonExtendedData + ) + + field(:mission, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMission, + type: :list + ) + + field(:profileUrlRepeated, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileUrl, + type: :list + ) + + field(:interest, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInterest, + type: :list + ) + + field(:address, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAddress, + type: :list + ) + + field(:nickname, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiNickname, + type: :list + ) + + field(:calendar, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCalendar, + type: :list + ) + + field(:socialConnection, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSocialConnection, + type: :list + ) + + field(:photo, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhoto, + type: :list + ) + + field(:relation, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelation, + type: :list + ) + + field(:braggingRights, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBraggingRights, + type: :list + ) + + field(:teamsExtendedData, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiTeamsExtendedData + ) + + field(:relationshipInterest, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationshipInterest, + type: :list + ) + + field(:occupation, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOccupation, + type: :list + ) + + field(:contactGroupMembership, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactGroupMembership, + type: :list + ) + + field(:relationshipStatus, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationshipStatus, + type: :list + ) + + field(:userDefined, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiUserDefined, + type: :list + ) + + field(:limitedProfileSettings, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLimitedProfileSettingsField, + type: :list + ) + + field(:contactEditContextInfo, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactEditContextInfo, + type: :list + ) + + field(:contactPromptSettingsInfo, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiContactPromptSettingsInfo, + type: :list + ) + + field(:about, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAbout, + type: :list + ) + + field(:communicationEmail, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCommunicationEmail, + type: :list + ) + + field(:readOnlyProfileInfo, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfo, + type: :list + ) + + field(:tagline, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiTagline, + type: :list + ) + + field(:organization, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOrganization, + type: :list + ) + + field(:ageRangeRepeated, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAgeRangeType, + type: :list + ) + + field(:sipAddress, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSipAddress, + type: :list + ) + + field(:phone, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhone, + type: :list + ) + + field(:ageRange) + + field(:personAttribute, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonAttribute, + type: :list + ) + + field(:interactionSettings, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiInteractionSettings, + type: :list + ) + + field(:visibleToGuests, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiVisibleToGuests, + type: :list + ) + + field(:namePronunciationAudioMetadataInfo, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiNamePronunciationAudioMetadataInfo, + type: :list + ) + + field(:membership, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMembership, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_attribute.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_attribute.ex new file mode 100644 index 0000000000..00b810300d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_attribute.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonAttribute do + @moduledoc """ + Client-specific binary blob stored with Person data. This differs from ClientData, which stores structured, key-value pairs. + + ## Attributes + + * `attributeKey` (*type:* `String.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributeKey => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :value => String.t() | nil + } + + field(:attributeKey) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonAttribute do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonAttribute.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonAttribute do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_extended_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_extended_data.ex new file mode 100644 index 0000000000..91b6e83490 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_extended_data.ex @@ -0,0 +1,180 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonExtendedData do + @moduledoc """ + Extension data for the whole person entity. + + ## Attributes + + * `aboutMeExtendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedData.t`, *default:* `nil`) - For use by AboutMe and SmartProfile clients. + * `appsWaldoExtendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiExtensionAppsWaldoExtendedData.t`, *default:* `nil`) - For use with Apps Waldo Availability Data extension + * `callerIdExtendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCallerIdExtendedData.t`, *default:* `nil`) - For use with caller ID extension + * `contactsExtendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebContactsExtendedData.t`, *default:* `nil`) - For use with Contacts extension. + * `domainName` (*type:* `list(String.t)`, *default:* `nil`) - Hosted domain this person is a member of. The domain_name is also returned as part of the person's ReadOnlyProfileInfo, so requesting it via this extension is no longer necessary. + * `dynamiteExtendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiExtensionDynamiteExtendedData.t`, *default:* `nil`) - For use with Dynamite extension. + * `gpayExtendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGPayExtendedData.t`, *default:* `nil`) - For use with Google Pay extension. + * `gplusExtendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGplusExtendedData.t`, *default:* `nil`) - For use with Google+ extension. + * `hangoutsExtendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiHangoutsExtendedData.t`, *default:* `nil`) - For use with Hangouts extension. + * `isPlaceholder` (*type:* `boolean()`, *default:* `nil`) - For use with gmail extensions and lookup by email. If true, no person was actually found using the specified email address, but we want to return TLS info about the email address regardless. + * `mapsExtendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsExtendedData.t`, *default:* `nil`) - For use with Maps extension. + * `paisaExtendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiExtensionPaisaExtendedData.t`, *default:* `nil`) - For use with Paisa extension + * `peopleStackExtendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiExtensionPeopleStackExtendedData.t`, *default:* `nil`) - DEPRECATED: Use people_stack_person_extended_data instead. For use with PeopleStack extension. + * `peopleStackPersonExtendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiExtensionPeopleStackPersonExtendedData.t`, *default:* `nil`) - For use with PeopleStack extension. + * `playGamesExtendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlayGamesExtendedData.t`, *default:* `nil`) - For use with Play Games Product Profile extension. See go/jam-games-profile. The play games profile will be returned only for profile-centric requests. + * `tlsIsPlaceholder` (*type:* `boolean()`, *default:* `nil`) - For use with the TLS extension and lookup by email. If true, no person was actually found using the specified email address, but we want to return TLS info about the email address regardless. DEPRECATED: Use is_placeholder instead. + * `youtubeExtendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiYoutubeExtendedData.t`, *default:* `nil`) - For use with Youtube extension. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :aboutMeExtendedData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedData.t() + | nil, + :appsWaldoExtendedData => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiExtensionAppsWaldoExtendedData.t() + | nil, + :callerIdExtendedData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCallerIdExtendedData.t() + | nil, + :contactsExtendedData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebContactsExtendedData.t() + | nil, + :domainName => list(String.t()) | nil, + :dynamiteExtendedData => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiExtensionDynamiteExtendedData.t() + | nil, + :gpayExtendedData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGPayExtendedData.t() + | nil, + :gplusExtendedData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGplusExtendedData.t() + | nil, + :hangoutsExtendedData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiHangoutsExtendedData.t() + | nil, + :isPlaceholder => boolean() | nil, + :mapsExtendedData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsExtendedData.t() + | nil, + :paisaExtendedData => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiExtensionPaisaExtendedData.t() + | nil, + :peopleStackExtendedData => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiExtensionPeopleStackExtendedData.t() + | nil, + :peopleStackPersonExtendedData => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiExtensionPeopleStackPersonExtendedData.t() + | nil, + :playGamesExtendedData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlayGamesExtendedData.t() + | nil, + :tlsIsPlaceholder => boolean() | nil, + :youtubeExtendedData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiYoutubeExtendedData.t() + | nil + } + + field(:aboutMeExtendedData, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAboutMeExtendedData + ) + + field(:appsWaldoExtendedData, + as: + GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiExtensionAppsWaldoExtendedData + ) + + field(:callerIdExtendedData, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCallerIdExtendedData + ) + + field(:contactsExtendedData, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebContactsExtendedData + ) + + field(:domainName, type: :list) + + field(:dynamiteExtendedData, + as: + GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiExtensionDynamiteExtendedData + ) + + field(:gpayExtendedData, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGPayExtendedData + ) + + field(:gplusExtendedData, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiGplusExtendedData + ) + + field(:hangoutsExtendedData, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiHangoutsExtendedData + ) + + field(:isPlaceholder) + + field(:mapsExtendedData, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMapsExtendedData + ) + + field(:paisaExtendedData, + as: + GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiExtensionPaisaExtendedData + ) + + field(:peopleStackExtendedData, + as: + GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiExtensionPeopleStackExtendedData + ) + + field(:peopleStackPersonExtendedData, + as: + GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiExtensionPeopleStackPersonExtendedData + ) + + field(:playGamesExtendedData, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlayGamesExtendedData + ) + + field(:tlsIsPlaceholder) + + field(:youtubeExtendedData, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiYoutubeExtendedData + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonExtendedData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonExtendedData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonExtendedData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_field_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_field_metadata.ex new file mode 100644 index 0000000000..46a9ee8f73 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_field_metadata.ex @@ -0,0 +1,187 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata do + @moduledoc """ + Metadata for a single Person field. See go/understanding-merged-person + + ## Attributes + + * `aclChoices` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAcl.t)`, *default:* `nil`) - When the container is PROFILE/DOMAIN_PROFILE and the profile owner is the requester, this read-only, synthesized field indicates which ACLs the user is allowed to set on the profile field. This is distinct from field_acl, which is the field's currently set ACL. field_acl will always be a valid ACL choice, except for the case of default synthesized profile fields like monogram profile photos. For those, field_acl does not represent a user-set field ACL, so it may or may not be a valid choice. In all cases, default_acl_choice will always be a valid choice. This is currently only populated on the photo field when the "person.photo.metadata.acl_choices" mask is set. + * `additionalContainerInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAdditionalContainerInfo.t`, *default:* `nil`) - Additional information about the container of this field. + * `affinity` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAffinity.t)`, *default:* `nil`) - For field-level affinity scores. The affinity between the requester and this particular field in the Person (e.g., frequency of calling a particular phone number). + * `contactVisibility` (*type:* `list(String.t)`, *default:* `nil`) - Each field can have different visibility settings Only returned when explicitly requested. + * `container` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. Use container_type instead. Having the Container be an enum at the PFM message level causes circular dependency when other types try to refer to it. It breaks javascript build targets. + * `containerId` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. Use encoded_container_id instead. The numeric id of the data source. The id is only unique within a single container type. This is only set when the id of the container is numeric, e.g. contact id. + * `containerPrimary` (*type:* `boolean()`, *default:* `nil`) - Indicates if this field is the primary field for the container and container_id. + * `containerType` (*type:* `String.t`, *default:* `nil`) - The source for the data in the field. + * `crossDeviceAllowed` (*type:* `boolean()`, *default:* `nil`) - True if this field can be used on other devices than the one it originated from. Assigned by the server. Currently only used for device contacts. + * `defaultAclChoice` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAcl.t`, *default:* `nil`) - When the container is PROFILE/DOMAIN_PROFILE and the profile owner is the requester, this read-only, synthesized field contains the default ACL choice. This can be used to select a preferred choice from acl_choices. Generally, default_acl_choice should only be preferred for default synthesized profile fields like monogram profile photos. Otherwise, the existing field_acl should be preferred. This is currently only populated on the photo field when the "person.photo.metadata.acl_choices" mask is set. + * `deprecatedContactContainerId` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. Use container_id. Not populated or used at all. + * `edgeKey` (*type:* `boolean()`, *default:* `nil`) - Field is an edge key for this person. Modifying it breaks the link between data sources. This is equivalent to edge_key_info having at least one entry with materialized = true. + * `edgeKeyInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEdgeKeyInfo.t)`, *default:* `nil`) - Edges that this field creates. This includes all edges and not necessarily just the edge relevant to the joined entities. + * `encodedContainerId` (*type:* `String.t`, *default:* `nil`) - The encoded id of the data source. The id is only unique within a single container type. This field correlates to person.metadata.identity_info.source_id.id. This field may not be populated in some special cases, where the id is not visible to the querying user. e.g. ListAutocompletions with full phone number query. For value format, see google3/social/graph/api/proto/main_merged_person.proto?q=symbol:SourceIdentity.id + * `fieldAcl` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAcl.t`, *default:* `nil`) - When the container is PROFILE and the profile owner is the requester, this field indicates how the profile field is accessible. + * `lastUpdateTime` (*type:* `DateTime.t`, *default:* `nil`) - Indicates the time that the field was added or last edited. Currently this is populated for: (1) person.birthday with ContainerType PROFILE, DOMAIN_PROFILE or ACCOUNT. (2) person.name, person.address, person.relation, person.email and person.phone with ContainerType CONTACT_ANNOTATION; + * `matchingInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMatchInfo.t)`, *default:* `nil`) - The matching informations if there was a query against this field. + * `otherDedupedContainers` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDedupedContainerInfo.t)`, *default:* `nil`) - When deduping fields by value, list of containers of the fields that where deduped. + * `primary` (*type:* `boolean()`, *default:* `nil`) - If true, indicates this field is the Person's primary field eg. Contact, and (Profile) Person could have different Name fields, and the Name represented by the Person is primary. For selecting a primary field from RepeatedFields within a Person, use container_primary. + * `productMetadata` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductMetadata.t)`, *default:* `nil`) - The product(s) that generated the data in this field. Empty is equivalent to DEFAULT. ST_USER_METADATA + * `verified` (*type:* `boolean()`, *default:* `nil`) - Indicates whether this is a verified field. It is synthesized from verification and is read-only. If there is at least one verification with status PASSED, the field is considered verified. Currently this is applicable to address, email, name, and phone for PROFILE and DOMAIN_PROFILE. Use .metadata.verified in the request mask. + * `visibility` (*type:* `String.t`, *default:* `nil`) - Currently, only people.get may set this value + * `writeable` (*type:* `boolean()`, *default:* `nil`) - Whether the field is writeable to the requester. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :aclChoices => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAcl.t() + ) + | nil, + :additionalContainerInfo => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAdditionalContainerInfo.t() + | nil, + :affinity => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAffinity.t() + ) + | nil, + :contactVisibility => list(String.t()) | nil, + :container => String.t() | nil, + :containerId => String.t() | nil, + :containerPrimary => boolean() | nil, + :containerType => String.t() | nil, + :crossDeviceAllowed => boolean() | nil, + :defaultAclChoice => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAcl.t() + | nil, + :deprecatedContactContainerId => String.t() | nil, + :edgeKey => boolean() | nil, + :edgeKeyInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEdgeKeyInfo.t() + ) + | nil, + :encodedContainerId => String.t() | nil, + :fieldAcl => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAcl.t() + | nil, + :lastUpdateTime => DateTime.t() | nil, + :matchingInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMatchInfo.t() + ) + | nil, + :otherDedupedContainers => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDedupedContainerInfo.t() + ) + | nil, + :primary => boolean() | nil, + :productMetadata => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductMetadata.t() + ) + | nil, + :verified => boolean() | nil, + :visibility => String.t() | nil, + :writeable => boolean() | nil + } + + field(:aclChoices, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAcl, + type: :list + ) + + field(:additionalContainerInfo, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAdditionalContainerInfo + ) + + field(:affinity, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAffinity, + type: :list + ) + + field(:contactVisibility, type: :list) + field(:container) + field(:containerId) + field(:containerPrimary) + field(:containerType) + field(:crossDeviceAllowed) + + field(:defaultAclChoice, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAcl + ) + + field(:deprecatedContactContainerId) + field(:edgeKey) + + field(:edgeKeyInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEdgeKeyInfo, + type: :list + ) + + field(:encodedContainerId) + + field(:fieldAcl, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldAcl + ) + + field(:lastUpdateTime, as: DateTime) + + field(:matchingInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiMatchInfo, + type: :list + ) + + field(:otherDedupedContainers, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDedupedContainerInfo, + type: :list + ) + + field(:primary) + + field(:productMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductMetadata, + type: :list + ) + + field(:verified) + field(:visibility) + field(:writeable) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_list_with_total_number.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_list_with_total_number.ex new file mode 100644 index 0000000000..6d10160bec --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_list_with_total_number.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonListWithTotalNumber do + @moduledoc """ + A person list with total number specified. + + ## Attributes + + * `people` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson.t)`, *default:* `nil`) - + * `totalNumber` (*type:* `integer()`, *default:* `nil`) - The total number of people, which is aways no less than the size of the above list. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :people => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson.t() + ) + | nil, + :totalNumber => integer() | nil + } + + field(:people, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson, + type: :list + ) + + field(:totalNumber) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonListWithTotalNumber do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonListWithTotalNumber.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonListWithTotalNumber do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_metadata.ex new file mode 100644 index 0000000000..32e9cb826a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_metadata.ex @@ -0,0 +1,170 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadata do + @moduledoc """ + Metadata for the entire Person resource. + + ## Attributes + + * `affinity` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAffinity.t)`, *default:* `nil`) - Affinities associated with the person, with respect to the requester. + * `attribution` (*type:* `list(String.t)`, *default:* `nil`) - Populated when the data for the MergedPerson comes from a 3rd party provider or data source. Clients must display these attributions to the user if they are present. NOTE: This field is only relevant when requesting the following containers: - PLACE (data read from Maps) + * `bestDisplayName` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBestDisplayName.t`, *default:* `nil`) - The best name to use for this person for user-facing display. See go/people-api-howto:names for details about how this field is computed. In many cases this will simply be Person.name[0]. However, Person.name returns only explicit Name fields, but other fields maybe usable as a name (for example: nicknames, file_as, ...). `best_display_name` will be calculated from all fields in storage which are usable as a name, even fields which are not explicitly requested in the MergedPerson result. See go/javagoog/apps/tacotown/socialgraph/entity/PersonNameFormatter.java + * `blockType` (*type:* `list(String.t)`, *default:* `nil`) - DEPRECATED. Indicates whether the profile owner has blocked this person. Please use `person.read_only_profile_info.block_type` instead. + * `circleId` (*type:* `list(String.t)`, *default:* `nil`) - DEPRECATED. The circles the person belongs to. + * `contactGroupId` (*type:* `list(String.t)`, *default:* `nil`) - DEPRECATED. Please use `person.contact_group_memberships` instead. The contact groups the person belongs to. + * `contactId` (*type:* `list(String.t)`, *default:* `nil`) - The IDs of all contacts contributing to this person. + * `customResponseMaskingType` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. Customized masking of the response similar to the legacy People2RequestMask People2Params request message. NOTE: This param is inherently client-specific, limited to specific legacy clients, and not open to new usage. NOTE: Effects may be applied to a subset of people in the response. + * `deleted` (*type:* `boolean()`, *default:* `nil`) - For sync requests (i.e., changed since the provided sync_token), indicates the resource is a tombstone for a Person resource that has been entirely deleted. + * `deprecatedBlocked` (*type:* `boolean()`, *default:* `nil`) - DEPRECATED. Please use `person.read_only_profile_info.block_type` instead. + * `deprecatedMembershipCircleId` (*type:* `list(String.t)`, *default:* `nil`) - DEPRECATED. This field is no longer populated or read. + * `deprecatedMembershipContactGroupId` (*type:* `list(String.t)`, *default:* `nil`) - DEPRECATED. This field is no longer populated or read. + * `deviceContactInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactInfo.t)`, *default:* `nil`) - Info about the aggregated device contacts. When the person contains RAW_DEVICE_CONTACT containers, each DeviceContactInfo represents a single aggregate device contact made up of one or more raw device contacts. + * `identityInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiIdentityInfo.t`, *default:* `nil`) - Detailed metadata about the lookup IDs and data sources included in a MergedPerson result. + * `inViewerDomain` (*type:* `boolean()`, *default:* `nil`) - DEPRECATED. Indicates whether this person is in the same domain as the viewer. For proxying trust between two users based on organization membership, see: - go/flex-orgs-platform - go/flex-orgs-compliance-handbook (especially http://shortn/_ChwfAY36Ys) + * `incomingBlockType` (*type:* `list(String.t)`, *default:* `nil`) - DEPRECATED. Indicates whether this person is blocking the profile owner. Please use `person.read_only_profile_info.incoming_block_type` instead. + * `lastUpdateTimeMicros` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. The last update timestamps for the constituent components of this person are available in `identity_info.source_ids`. The time of the most recent change to this person, in !!!NANOS!!! (due to a bug). May be a change to any of the underlying parts of the person (profile, contact, etc.). Not guaranteed to be the timestamp of the most recent change, due to limitations in the backend. This field is not fully deprecated for backend container-specific storage services like ProfileService which lack identity_info. The use is still discouraged in such systems and they should prefer to use the `last_update_time` field of this message instead. + * `model` (*type:* `String.t`, *default:* `nil`) - The person model that is used to construct this person. + * `objectType` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. + * `ownerId` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. Please use `person.read_only_profile_info.owner_id` instead. + * `ownerUserType` (*type:* `list(String.t)`, *default:* `nil`) - DEPRECATED. See `person.read_only_profile_info.owner_user_type` instead. + * `plusPageType` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. Please use `Person.plus_page_info` instead. + * `previousPersonId` (*type:* `list(String.t)`, *default:* `nil`) - DEPRECATED. This field is no longer populated or read. + * `profileOwnerStats` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileOwnerStats.t`, *default:* `nil`) - DEPRECATED. Stats/counters pertaining to followers and incoming edges. Please use `person.read_only_profile_info.profile_owner_stats` instead. + * `scoringInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadataScoringInfo.t`, *default:* `nil`) - Contact people-directory-dev-team@ if you want to use this field. + * `userVisibleStats` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiUserVisibleStats.t`, *default:* `nil`) - DEPRECATED. This field is no longer populated or read. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :affinity => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAffinity.t() + ) + | nil, + :attribution => list(String.t()) | nil, + :bestDisplayName => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBestDisplayName.t() + | nil, + :blockType => list(String.t()) | nil, + :circleId => list(String.t()) | nil, + :contactGroupId => list(String.t()) | nil, + :contactId => list(String.t()) | nil, + :customResponseMaskingType => String.t() | nil, + :deleted => boolean() | nil, + :deprecatedBlocked => boolean() | nil, + :deprecatedMembershipCircleId => list(String.t()) | nil, + :deprecatedMembershipContactGroupId => list(String.t()) | nil, + :deviceContactInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactInfo.t() + ) + | nil, + :identityInfo => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiIdentityInfo.t() + | nil, + :inViewerDomain => boolean() | nil, + :incomingBlockType => list(String.t()) | nil, + :lastUpdateTimeMicros => String.t() | nil, + :model => String.t() | nil, + :objectType => String.t() | nil, + :ownerId => String.t() | nil, + :ownerUserType => list(String.t()) | nil, + :plusPageType => String.t() | nil, + :previousPersonId => list(String.t()) | nil, + :profileOwnerStats => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileOwnerStats.t() + | nil, + :scoringInfo => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadataScoringInfo.t() + | nil, + :userVisibleStats => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiUserVisibleStats.t() + | nil + } + + field(:affinity, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAffinity, + type: :list + ) + + field(:attribution, type: :list) + + field(:bestDisplayName, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiBestDisplayName + ) + + field(:blockType, type: :list) + field(:circleId, type: :list) + field(:contactGroupId, type: :list) + field(:contactId, type: :list) + field(:customResponseMaskingType) + field(:deleted) + field(:deprecatedBlocked) + field(:deprecatedMembershipCircleId, type: :list) + field(:deprecatedMembershipContactGroupId, type: :list) + + field(:deviceContactInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactInfo, + type: :list + ) + + field(:identityInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiIdentityInfo + ) + + field(:inViewerDomain) + field(:incomingBlockType, type: :list) + field(:lastUpdateTimeMicros) + field(:model) + field(:objectType) + field(:ownerId) + field(:ownerUserType, type: :list) + field(:plusPageType) + field(:previousPersonId, type: :list) + + field(:profileOwnerStats, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileOwnerStats + ) + + field(:scoringInfo, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadataScoringInfo + ) + + field(:userVisibleStats, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiUserVisibleStats + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_metadata_scoring_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_metadata_scoring_info.ex new file mode 100644 index 0000000000..3e2fb1c0fb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_metadata_scoring_info.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadataScoringInfo do + @moduledoc """ + + + ## Attributes + + * `rawMatchQualityScore` (*type:* `float()`, *default:* `nil`) - Only populated on a SearchDirectoryPeople call, when results are scored. Contact people-directory-dev-team@ if you want to use this field. + * `stExpressionResults` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadataScoringInfoStExpressionResult.t)`, *default:* `nil`) - Only populated on a SearchDirectoryPeople call that sends a request with StFieldSpecExpressions. - Used for linking indexed terms with query terms for go/better-name-matching - Name should be alphanumeric or underscores - Value should be an st expression following the syntax at go/stsyntax Contact people-directory-dev-team@ if you want to use this field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :rawMatchQualityScore => float() | nil, + :stExpressionResults => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadataScoringInfoStExpressionResult.t() + ) + | nil + } + + field(:rawMatchQualityScore) + + field(:stExpressionResults, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadataScoringInfoStExpressionResult, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadataScoringInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadataScoringInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadataScoringInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_metadata_scoring_info_st_expression_result.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_metadata_scoring_info_st_expression_result.ex new file mode 100644 index 0000000000..4d141267b1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_person_metadata_scoring_info_st_expression_result.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadataScoringInfoStExpressionResult do + @moduledoc """ + + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :value => String.t() | nil + } + + field(:name) + field(:value) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadataScoringInfoStExpressionResult do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadataScoringInfoStExpressionResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonMetadataScoringInfoStExpressionResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_phone.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_phone.ex new file mode 100644 index 0000000000..2771085dbf --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_phone.ex @@ -0,0 +1,89 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhone do + @moduledoc """ + + + ## Attributes + + * `canonicalizedForm` (*type:* `String.t`, *default:* `nil`) - Canonicalized form that follows ITU-T E.164 international public telecommunication numbering plan. + * `emergencyInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldEmergencyInfo.t`, *default:* `nil`) - Emergency information. See go/emergency-trusted-contacts-papi. + * `extendedData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhoneExtendedData.t`, *default:* `nil`) - Read-only. Field requested by specifying `HANGOUTS_PHONE_DATA` in `extension_set.extension_names`. + * `formattedType` (*type:* `String.t`, *default:* `nil`) - The `type` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the phone number. The type can be free form or one of these predefined values: * `home` * `work` * `mobile` * `homeFax` * `workFax` * `otherFax` * `pager` * `workMobile` * `workPager` * `main` * `googleVoice` * `other` + * `uri` (*type:* `String.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canonicalizedForm => String.t() | nil, + :emergencyInfo => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldEmergencyInfo.t() + | nil, + :extendedData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhoneExtendedData.t() + | nil, + :formattedType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :type => String.t() | nil, + :uri => String.t() | nil, + :value => String.t() | nil + } + + field(:canonicalizedForm) + + field(:emergencyInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiFieldEmergencyInfo + ) + + field(:extendedData, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhoneExtendedData + ) + + field(:formattedType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:type) + field(:uri) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhone do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhone.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhone do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_phone_extended_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_phone_extended_data.ex new file mode 100644 index 0000000000..41e54ade18 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_phone_extended_data.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhoneExtendedData do + @moduledoc """ + + + ## Attributes + + * `structuredPhone` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhone.t`, *default:* `nil`) - For use with Hangouts extension. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :structuredPhone => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhone.t() + | nil + } + + field(:structuredPhone, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhone + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhoneExtendedData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhoneExtendedData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhoneExtendedData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_photo.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_photo.ex new file mode 100644 index 0000000000..5a25fbb9a9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_photo.ex @@ -0,0 +1,106 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhoto do + @moduledoc """ + + + ## Attributes + + * `decoration` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoDecorationOverlay.t)`, *default:* `nil`) - Read-only. Use UpdatePersonPhoto to change photo decorations. If this photo is decorated, this field contains information about its decorations. For now, this will contain at most one entry. + * `emojiAvatarUrl` (*type:* `String.t`, *default:* `nil`) - URL of an emoji avatar as an image. See go/emoji-cdn. PeopleAPI will return the SVG format so that it can be scaled client side and so that the images will not be animated. All clients that use this field must also have fall-back handling for using the `Photo.url` field if this is empty. When we have FIFE-compatible emoji-image URLs we will drop this field and return the Photo.url instead. Clients that have their own go/emoji-rendering integration may prefer to render the emoji-avatar from `Photo.glyph` field using their rendering system so that the emoji version/style match the rest of the application. For further background, see go/chatroom-avatar-as-roster-metadata. This field will only be populated if all of: - The PersonFieldMetadata `container_type` for the Photo is NAMED_CHAT_ROOM - The chat room has an emoji type avatar image set + * `glyph` (*type:* `String.t`, *default:* `nil`) - Unicode emoji representation of the chat room emoji avatar. This can be used by clients that use go/emoji-rendering directly so that they can present this with the same version/style as the rest of their application. This value may also be useful to clients as alt-text for the image. This field will only be populated if all of: - The PersonFieldMetadata `container_type` for the Photo is NAMED_CHAT_ROOM - The chat room has an emoji type avatar image set + * `htmlAttribution` (*type:* `list(String.t)`, *default:* `nil`) - A set of HTML data provider attributions that must be shown with the result. Supported for PLACES photos only. See: go/understanding-places-api-attribution-requirements + * `isDefault` (*type:* `boolean()`, *default:* `nil`) - True when the photo is synthetic or generated (i.e. a monogram or default photo), false when the person has a custom photo. + * `isMonogram` (*type:* `boolean()`, *default:* `nil`) - Indicates if the photo is a monogram avatar. Combined with is_default, the type of photo can be determined by: is_default=true, is_monogram=true: Default monogram avatar. is_default=true, is_monogram=false: Default silhouette avatar. is_default=false: Custom photo. is_monogram is irrelevant in this case. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `monogramBackground` (*type:* `String.t`, *default:* `nil`) - When is_monogram=true, this is the background color of the monogram photo as a hex RGB formatted string "RRGGBB". + * `originalPhoto` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoImageReference.t`, *default:* `nil`) - Read-only. A reference to the original, undecorated profile photo in storage. This field is not stored. It is populated by a live read to /SocialGraphImageService.GetActiveProfilePhoto. This field is only returned when "person.photo.original_photo" is specified in the request mask. + * `photoId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhotoPhotoStorageId.t`, *default:* `nil`) - For writes only. Indicates photo content for person photo-field update. Currently only used for profile-photo updates (not contact photos yet). + * `photoToken` (*type:* `String.t`, *default:* `nil`) - Most clients don't need to worry about this field and should just use the `url` to fetch the photo. See go/phototoken-migration-plan for some more context about this field. If you think you want to use this please talk with people-api-eng@ first. + * `url` (*type:* `String.t`, *default:* `nil`) - See go/people-api-concepts/photos for info on the different representations of URLs. + * `viewerUrl` (*type:* `String.t`, *default:* `nil`) - A URL for a UI to view the photo in its original context. For example, for a place photo, this is the url of a Google Maps page displaying the photo. Supported for place photos only. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :decoration => + list(GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoDecorationOverlay.t()) + | nil, + :emojiAvatarUrl => String.t() | nil, + :glyph => String.t() | nil, + :htmlAttribution => list(String.t()) | nil, + :isDefault => boolean() | nil, + :isMonogram => boolean() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :monogramBackground => String.t() | nil, + :originalPhoto => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoImageReference.t() | nil, + :photoId => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhotoPhotoStorageId.t() + | nil, + :photoToken => String.t() | nil, + :url => String.t() | nil, + :viewerUrl => String.t() | nil + } + + field(:decoration, + as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoDecorationOverlay, + type: :list + ) + + field(:emojiAvatarUrl) + field(:glyph) + field(:htmlAttribution, type: :list) + field(:isDefault) + field(:isMonogram) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:monogramBackground) + field(:originalPhoto, as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoImageReference) + + field(:photoId, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhotoPhotoStorageId + ) + + field(:photoToken) + field(:url) + field(:viewerUrl) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhoto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhoto.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhoto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_photo_photo_storage_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_photo_photo_storage_id.ex new file mode 100644 index 0000000000..82c0470107 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_photo_photo_storage_id.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhotoPhotoStorageId do + @moduledoc """ + Info necessary for looking up a photo in storage. + + ## Attributes + + * `mediaKey` (*type:* `String.t`, *default:* `nil`) - For writes only, pass the media key that represents the image in photos backend. Note, this is not populated on reads. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :mediaKey => String.t() | nil + } + + field(:mediaKey) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhotoPhotoStorageId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhotoPhotoStorageId.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPhotoPhotoStorageId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_place_details.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_place_details.ex new file mode 100644 index 0000000000..0f1c56986d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_place_details.ex @@ -0,0 +1,77 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlaceDetails do + @moduledoc """ + Metadata specific to places. + + ## Attributes + + * `googleUrl` (*type:* `String.t`, *default:* `nil`) - A URL hosted by Google providing more information about this place This is the URL returned by Places API in the Place.Url.google field + * `latLng` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLatLng.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `openingHours` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHours.t`, *default:* `nil`) - + * `primaryTypeName` (*type:* `String.t`, *default:* `nil`) - The name of the primary type. Examples of primary type are: "art_school", "clothing_wholesaler", etc. All primary types can be found at http://shortn/_veqh6UwWdc + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :googleUrl => String.t() | nil, + :latLng => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLatLng.t() + | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :openingHours => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHours.t() + | nil, + :primaryTypeName => String.t() | nil + } + + field(:googleUrl) + + field(:latLng, as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiLatLng) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:openingHours, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiOpeningHours + ) + + field(:primaryTypeName) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlaceDetails do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlaceDetails.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlaceDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_play_games_extended_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_play_games_extended_data.ex new file mode 100644 index 0000000000..e727288be4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_play_games_extended_data.ex @@ -0,0 +1,90 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlayGamesExtendedData do + @moduledoc """ + Extension data for use in Play Games Product Profile. See go/jam-games-profile. + + ## Attributes + + * `achievements` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlayGamesExtendedDataAchievement.t)`, *default:* `nil`) - User's top achievements that are sorted for example by rarity. + * `avatarImageUrl` (*type:* `String.t`, *default:* `nil`) - The avatar image to display for the user. + * `failure` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductProfileFailure.t`, *default:* `nil`) - Failure type if there is an error when fetching product profile data. + * `gamerTag` (*type:* `String.t`, *default:* `nil`) - The gamer tag set by the user. Not set if the user hasn't set a gamer tag yet. + * `playerLevel` (*type:* `integer()`, *default:* `nil`) - User's level. + * `profileVisibility` (*type:* `String.t`, *default:* `nil`) - Specifies the visibility of the player's profile. + * `totalFriendsCount` (*type:* `String.t`, *default:* `nil`) - Total number of friends. + * `totalUnlockedAchievements` (*type:* `String.t`, *default:* `nil`) - How many achievements this player has unlocked. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :achievements => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlayGamesExtendedDataAchievement.t() + ) + | nil, + :avatarImageUrl => String.t() | nil, + :failure => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductProfileFailure.t() + | nil, + :gamerTag => String.t() | nil, + :playerLevel => integer() | nil, + :profileVisibility => String.t() | nil, + :totalFriendsCount => String.t() | nil, + :totalUnlockedAchievements => String.t() | nil + } + + field(:achievements, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlayGamesExtendedDataAchievement, + type: :list + ) + + field(:avatarImageUrl) + + field(:failure, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductProfileFailure + ) + + field(:gamerTag) + field(:playerLevel) + field(:profileVisibility) + field(:totalFriendsCount) + field(:totalUnlockedAchievements) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlayGamesExtendedData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlayGamesExtendedData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlayGamesExtendedData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_play_games_extended_data_achievement.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_play_games_extended_data_achievement.ex new file mode 100644 index 0000000000..2d0c5eb9d4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_play_games_extended_data_achievement.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlayGamesExtendedDataAchievement do + @moduledoc """ + Details of an achievement that the user has unlocked. + + ## Attributes + + * `achievementName` (*type:* `String.t`, *default:* `nil`) - The name of the achievement. + * `achievementUnlockedIconUrl` (*type:* `String.t`, *default:* `nil`) - The achievement icon url shown to the user if it is unlocked. + * `rarityPercentage` (*type:* `number()`, *default:* `nil`) - Rarity of unlocking this achievement (3% of players unlocked would be 3) + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :achievementName => String.t() | nil, + :achievementUnlockedIconUrl => String.t() | nil, + :rarityPercentage => number() | nil + } + + field(:achievementName) + field(:achievementUnlockedIconUrl) + field(:rarityPercentage) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlayGamesExtendedDataAchievement do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlayGamesExtendedDataAchievement.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlayGamesExtendedDataAchievement do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_plus_page_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_plus_page_info.ex new file mode 100644 index 0000000000..3fa874f4fe --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_plus_page_info.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlusPageInfo do + @moduledoc """ + Information about a plus page and the entity it represents. + + ## Attributes + + * `applicationId` (*type:* `String.t`, *default:* `nil`) - Int64 ID of packaging-service entry; if set, the plus page is associated with a third-party application. + * `entityType` (*type:* `String.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :applicationId => String.t() | nil, + :entityType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil + } + + field(:applicationId) + field(:entityType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlusPageInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlusPageInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPlusPageInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_point_spec.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_point_spec.ex new file mode 100644 index 0000000000..edf4949020 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_point_spec.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPointSpec do + @moduledoc """ + Map marker location for an address. + + ## Attributes + + * `bounds` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreRectProto.t`, *default:* `nil`) - + * `point` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t`, *default:* `nil`) - + * `pointSource` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bounds => GoogleApi.ContentWarehouse.V1.Model.GeostoreRectProto.t() | nil, + :point => GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t() | nil, + :pointSource => String.t() | nil + } + + field(:bounds, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRectProto) + field(:point, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto) + field(:pointSource) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPointSpec do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPointSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPointSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_posix_account.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_posix_account.ex new file mode 100644 index 0000000000..589d0701ee --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_posix_account.ex @@ -0,0 +1,96 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPosixAccount do + @moduledoc """ + Custom field that represents POSIX account information. Description of the field family: go/fbs-posix. If account has non-empty Username or Uid we will enforce global uniqueness of (AccountNamespace, CustomerKey, SystemId, Uid) and (AccountNamespace, CustomerKey, SystemId, Username) tuples to ensure there are no duplicates. + + ## Attributes + + * `accountId` (*type:* `String.t`, *default:* `nil`) - The user visible value is used to distinguish identical posix account fields with different customer key values. + * `accountNamespace` (*type:* `String.t`, *default:* `nil`) - Value indicates the uniqueness namespace that applies to the POSIX information. The value is included in all POSIX account uniqueness indices. The indexing prevents two accounts within the same customer from having the same username. Namespacing allows Windows and Linux users to share the same username. + * `accountType` (*type:* `String.t`, *default:* `nil`) - Value indicates whether the POSIX information is associated with a non-human entity and the validation logic to apply during PosixAccount mutation. + * `customerKey` (*type:* `String.t`, *default:* `nil`) - The customer associated with the POSIX identity. If the user is already associated with a G Suite Customer, this field has the same value as http://google3/ccc/hosted/policies/settings/dthree_customer_info.proto + * `fingerprint` (*type:* `String.t`, *default:* `nil`) - The value is automatically set to a SHA-256 fingerprint of the POSIX account. A fingerprint should uniquely identify a POSIX account entry. + * `gecos` (*type:* `String.t`, *default:* `nil`) - The GECOS (user information) entry for this account. + * `gid` (*type:* `String.t`, *default:* `nil`) - The default group ID. + * `homeDirectory` (*type:* `String.t`, *default:* `nil`) - The path to the home directory for this account. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `operatingSystemType` (*type:* `String.t`, *default:* `nil`) - Value indicates whether to use Linux or Windows specific validation logic during PosixAccount mutation. + * `shell` (*type:* `String.t`, *default:* `nil`) - The path to the login shell for this account. + * `systemId` (*type:* `String.t`, *default:* `nil`) - System identifier for which account Username or Uid apply to. If not specified on mutate by a caller it will default to empty value if either Username or Uid are being set. SystemId does require to have a value (even an empty one) because it is included into null-filtered Spanner index used to enforce uniqueness on Username and Uid fields. + * `uid` (*type:* `String.t`, *default:* `nil`) - The user ID. + * `username` (*type:* `String.t`, *default:* `nil`) - The username of the account. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accountId => String.t() | nil, + :accountNamespace => String.t() | nil, + :accountType => String.t() | nil, + :customerKey => String.t() | nil, + :fingerprint => String.t() | nil, + :gecos => String.t() | nil, + :gid => String.t() | nil, + :homeDirectory => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :operatingSystemType => String.t() | nil, + :shell => String.t() | nil, + :systemId => String.t() | nil, + :uid => String.t() | nil, + :username => String.t() | nil + } + + field(:accountId) + field(:accountNamespace) + field(:accountType) + field(:customerKey) + field(:fingerprint) + field(:gecos) + field(:gid) + field(:homeDirectory) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:operatingSystemType) + field(:shell) + field(:systemId) + field(:uid) + field(:username) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPosixAccount do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPosixAccount.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPosixAccount do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_product_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_product_metadata.ex new file mode 100644 index 0000000000..69e50dc8eb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_product_metadata.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductMetadata do + @moduledoc """ + + + ## Attributes + + * `productSource` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :productSource => String.t() | nil + } + + field(:productSource) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_product_profile_failure.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_product_profile_failure.ex new file mode 100644 index 0000000000..353341fcdc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_product_profile_failure.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductProfileFailure do + @moduledoc """ + Product profiles failure type: the status of the rpc to fetch the product profile. + + ## Attributes + + * `failureType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :failureType => String.t() | nil + } + + field(:failureType) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductProfileFailure do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductProfileFailure.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductProfileFailure do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_profile_owner_stats.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_profile_owner_stats.ex new file mode 100644 index 0000000000..e41efe992c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_profile_owner_stats.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileOwnerStats do + @moduledoc """ + Stats pertaining to incoming edges and views, visible to the requester (with acls applied). Related to, but not equal to, com.google.focus.proto.Storage.UserVisibleStats. + + ## Attributes + + * `incomingAnyCircleCount` (*type:* `String.t`, *default:* `nil`) - Replacement for deprecated follower_count. Comes from the EdgeSummary. + * `viewCount` (*type:* `String.t`, *default:* `nil`) - Deprecated. This field is no longer populated by the server. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :incomingAnyCircleCount => String.t() | nil, + :viewCount => String.t() | nil + } + + field(:incomingAnyCircleCount) + field(:viewCount) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileOwnerStats do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileOwnerStats.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileOwnerStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_profile_url.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_profile_url.ex new file mode 100644 index 0000000000..0987600f8c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_profile_url.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileUrl do + @moduledoc """ + This is a Google+-only field (and thus does not exist for consumer users). See go/fbs-g+-deprecation. + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `url` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :url => String.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:url) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileUrl do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileUrl.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileUrl do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_pronoun.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_pronoun.ex new file mode 100644 index 0000000000..ca111947d5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_pronoun.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPronoun do + @moduledoc """ + Message to represent a user's set of preferred pronouns, see go/pronouns-backend. + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `pronounData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPronounData.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :pronounData => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPronounData.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:pronounData, as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPronounData) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPronoun do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPronoun.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPronoun do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_raw_device_contact_analytical_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_raw_device_contact_analytical_info.ex new file mode 100644 index 0000000000..2d4211a831 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_raw_device_contact_analytical_info.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactAnalyticalInfo do + @moduledoc """ + + + ## Attributes + + * `dataSet` (*type:* `String.t`, *default:* `nil`) - The data set within the account that this raw contact belongs to. + * `dirty` (*type:* `boolean()`, *default:* `nil`) - The CP2 dirty field which indicates the sync state of the raw contact: https://developer.android.com/reference/android/provider/ContactsContract.SyncColumns#DIRTY True if the row is changed but not synced + * `sourceIdExist` (*type:* `boolean()`, *default:* `nil`) - Whether the source ID exists for non-Google contacts. Won't set for Google contacts. + * `syncInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoSyncInfo.t`, *default:* `nil`) - The Sync Info of a raw contact. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataSet => String.t() | nil, + :dirty => boolean() | nil, + :sourceIdExist => boolean() | nil, + :syncInfo => GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoSyncInfo.t() | nil + } + + field(:dataSet) + field(:dirty) + field(:sourceIdExist) + field(:syncInfo, as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoSyncInfo) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactAnalyticalInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactAnalyticalInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactAnalyticalInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_raw_device_contact_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_raw_device_contact_info.ex new file mode 100644 index 0000000000..9e43fd2e61 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_raw_device_contact_info.ex @@ -0,0 +1,105 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactInfo do + @moduledoc """ + Raw device contact information. + + ## Attributes + + * `accountName` (*type:* `String.t`, *default:* `nil`) - Account name of raw contact, e.g. "google@gmail.com". + * `accountType` (*type:* `String.t`, *default:* `nil`) - Account type of raw contact, e.g. "com.google" or "com.linkedin.android". + * `appContactData` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiAppContactData.t)`, *default:* `nil`) - The detailed app-specific endpoint data available for the given RawDeviceContactInfo instance. This proto should be used to obtain the list of actions and mimetypes supported by the third-party app. Design: go/3p-contact-upload + * `appInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAppUniqueInfo.t`, *default:* `nil`) - The app-specific endpoint data needed for app action fulfillment. Usage of this field should be avoided on the server-side, and should use the more detailed |full_app_info| field. + * `crossDeviceAllowed` (*type:* `boolean()`, *default:* `nil`) - If true, this raw contact can be used on other devices than the one it originated from. Assigned by the server. + * `deviceContactMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactExtraMetadata.t`, *default:* `nil`) - Extra metadata for this raw contact. + * `googleContactId` (*type:* `String.t`, *default:* `nil`) - The focus contact id for Google contacts. + * `id` (*type:* `String.t`, *default:* `nil`) - The base64 serialized social.graph.peopleapi.proto.internal.RawDeviceContactId. This id should be used to correlate to field.metadata.encoded_container_id when the field.metadata.container_type is RAW_DEVICE_CONTACT The id also correlates to person.metadata.identity_info.source_id.id. For value format, see google3/social/graph/api/proto/main_merged_person.proto?q=symbol:SourceIdentity.id + * `photoType` (*type:* `String.t`, *default:* `nil`) - The type of photo from the device (if any). + * `rawContactId` (*type:* `String.t`, *default:* `nil`) - The id of the raw contact on the device. + * `rawDeviceContactAnalyticalInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactAnalyticalInfo.t`, *default:* `nil`) - Only to be used by Romanesco team specifically for analytics. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accountName => String.t() | nil, + :accountType => String.t() | nil, + :appContactData => + list(GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiAppContactData.t()) | nil, + :appInfo => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAppUniqueInfo.t() + | nil, + :crossDeviceAllowed => boolean() | nil, + :deviceContactMetadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactExtraMetadata.t() + | nil, + :googleContactId => String.t() | nil, + :id => String.t() | nil, + :photoType => String.t() | nil, + :rawContactId => String.t() | nil, + :rawDeviceContactAnalyticalInfo => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactAnalyticalInfo.t() + | nil + } + + field(:accountName) + field(:accountType) + + field(:appContactData, + as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiAppContactData, + type: :list + ) + + field(:appInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAppUniqueInfo + ) + + field(:crossDeviceAllowed) + + field(:deviceContactMetadata, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiDeviceContactExtraMetadata + ) + + field(:googleContactId) + field(:id) + field(:photoType) + field(:rawContactId) + + field(:rawDeviceContactAnalyticalInfo, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactAnalyticalInfo + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRawDeviceContactInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_read_only_profile_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_read_only_profile_info.ex new file mode 100644 index 0000000000..4647ef8a9d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_read_only_profile_info.ex @@ -0,0 +1,121 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfo do + @moduledoc """ + Metadata information about a profile. This message replaces legacy profile-specific singleton fields from the PersonMetadata proto (singleton top level Person fields are not compatible with non-profile-centric person results, which may include multiple profile containers). + + ## Attributes + + * `accountEmail` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAccountEmail.t`, *default:* `nil`) - The account email linked to the profile, if any exists and is visible to the requester. + * `blockType` (*type:* `list(String.t)`, *default:* `nil`) - Indicates whether the profile owner has blocked this person. + * `customerInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCustomerInfo.t`, *default:* `nil`) - CustomerInfo for dasher user. The reader has to explicitly request this in the field_mask as 'read_only_profile_info.customer_info' + * `domainInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfoDomainInfo.t`, *default:* `nil`) - DEPRECATED. Use the `ReadOnlyProfileInfo.customer_info` field instead (b/138120418). Only populated if in_viewer_domain is true. + * `inViewerDomain` (*type:* `boolean()`, *default:* `nil`) - DEPRECATED. Proxying trust between users in a domain should use go/flex-orgs-platform. For more info see: http://doc/18i0-C7vWcz2UuXYBsmulnriVCK3_EuMPpRlPa2OmMHw#heading=h.dobotdwx25kg Indicates whether the profile owner is in the same domain as the viewer. + * `incomingBlockType` (*type:* `list(String.t)`, *default:* `nil`) - Indicates whether this person is blocking the profile owner. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `objectType` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. + * `ownerId` (*type:* `String.t`, *default:* `nil`) - The Focus-obfuscated Gaia ID of the profile owner (go/obfuscated-ids). + * `ownerUserType` (*type:* `list(String.t)`, *default:* `nil`) - + * `plusPageType` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. Please use `person.plus_page_info` instead. + * `profileOwnerStats` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileOwnerStats.t`, *default:* `nil`) - Stats/counters pertaining to followers and incoming edges. + * `unjoinedEmailCertificates` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmail.t)`, *default:* `nil`) - Returned only when explicitly requested in the request mask as read_only_profile_info.unjoined_email_certificates. Equivalent to fetching the Emails & the Email Certificates with the acls ignored. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accountEmail => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAccountEmail.t() + | nil, + :blockType => list(String.t()) | nil, + :customerInfo => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCustomerInfo.t() + | nil, + :domainInfo => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfoDomainInfo.t() + | nil, + :inViewerDomain => boolean() | nil, + :incomingBlockType => list(String.t()) | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :objectType => String.t() | nil, + :ownerId => String.t() | nil, + :ownerUserType => list(String.t()) | nil, + :plusPageType => String.t() | nil, + :profileOwnerStats => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileOwnerStats.t() + | nil, + :unjoinedEmailCertificates => + list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmail.t()) + | nil + } + + field(:accountEmail, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAccountEmail + ) + + field(:blockType, type: :list) + + field(:customerInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiCustomerInfo + ) + + field(:domainInfo, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfoDomainInfo + ) + + field(:inViewerDomain) + field(:incomingBlockType, type: :list) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:objectType) + field(:ownerId) + field(:ownerUserType, type: :list) + field(:plusPageType) + + field(:profileOwnerStats, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProfileOwnerStats + ) + + field(:unjoinedEmailCertificates, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiEmail, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_read_only_profile_info_domain_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_read_only_profile_info_domain_info.ex new file mode 100644 index 0000000000..dc5d95eab7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_read_only_profile_info_domain_info.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfoDomainInfo do + @moduledoc """ + DEPRECATED. + + ## Attributes + + * `domainBadge` (*type:* `list(String.t)`, *default:* `nil`) - DEPRECATED. Organization badge for the domain this person is a member of. The badge is the primary hosted domain. + * `domainName` (*type:* `list(String.t)`, *default:* `nil`) - DEPRECATED. Hosted domain this person is a member of. Formerly only available via PersonExtendedData. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :domainBadge => list(String.t()) | nil, + :domainName => list(String.t()) | nil + } + + field(:domainBadge, type: :list) + field(:domainName, type: :list) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfoDomainInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfoDomainInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfoDomainInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_relation.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_relation.ex new file mode 100644 index 0000000000..d49149d467 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_relation.ex @@ -0,0 +1,78 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelation do + @moduledoc """ + Relation stores the related person between the contact or profile and a third person. See go/relation-vs-relationship for relation vs relationship explanation. This field currently includes RelationshipToMe data in fields value and canonical_value for ContainerType CONTACT_ANNOTATION. This will be moved to RelationshipToMe in b/221081499. + + ## Attributes + + * `canonicalValue` (*type:* `String.t`, *default:* `nil`) - Canonicalized `value` of the relation from this person to the user. This is currently used for data from contact annotations. Possible canonical values are based from http://google3/googledata/quality/aliases/relationship_en.config. + * `formattedType` (*type:* `String.t`, *default:* `nil`) - The `type` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `relationDetails` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationRelationDetails.t`, *default:* `nil`) - The person whose email matches the Relation.value field, if it is a valid email address. This field is read-only and ignored on update. + * `type` (*type:* `String.t`, *default:* `nil`) - The relation type. The type can be free form or one of these predefined values: * `spouse` * `child` * `mother` * `father` * `parent` * `brother` * `sister` * `friend` * `relative` * `domesticPartner` * `manager` * `assistant` * `referredBy` * `partner` + * `value` (*type:* `String.t`, *default:* `nil`) - The person this relation applies to. Custom value provided by the user. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canonicalValue => String.t() | nil, + :formattedType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :relationDetails => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationRelationDetails.t() + | nil, + :type => String.t() | nil, + :value => String.t() | nil + } + + field(:canonicalValue) + field(:formattedType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:relationDetails, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationRelationDetails + ) + + field(:type) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelation do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_relation_relation_details.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_relation_relation_details.ex new file mode 100644 index 0000000000..e25d19da06 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_relation_relation_details.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationRelationDetails do + @moduledoc """ + + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - Equivalent to Name.display_name for the person_id profile. + * `jobTitle` (*type:* `String.t`, *default:* `nil`) - Equivalent to Organization.title for the primary organization of the person_id profile. + * `personId` (*type:* `String.t`, *default:* `nil`) - + * `photoUrl` (*type:* `String.t`, *default:* `nil`) - Equivalent to Photo.url for the person_id profile. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :jobTitle => String.t() | nil, + :personId => String.t() | nil, + :photoUrl => String.t() | nil + } + + field(:displayName) + field(:jobTitle) + field(:personId) + field(:photoUrl) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationRelationDetails do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationRelationDetails.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationRelationDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_relationship_interest.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_relationship_interest.ex new file mode 100644 index 0000000000..0250fa2f73 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_relationship_interest.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationshipInterest do + @moduledoc """ + Deprecated in b/122464133. No data returned for this field. + + ## Attributes + + * `formattedType` (*type:* `String.t`, *default:* `nil`) - The `type` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - These fields may give away the sexual orientation of the user. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :formattedType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :type => String.t() | nil + } + + field(:formattedType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationshipInterest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationshipInterest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationshipInterest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_relationship_status.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_relationship_status.ex new file mode 100644 index 0000000000..a40c8322d4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_relationship_status.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationshipStatus do + @moduledoc """ + Deprecated in b/122464133. No data returned for this field. + + ## Attributes + + * `formattedType` (*type:* `String.t`, *default:* `nil`) - The `type` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :formattedType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :type => String.t() | nil + } + + field(:formattedType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationshipStatus do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationshipStatus.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRelationshipStatus do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_right_of_publicity_state.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_right_of_publicity_state.ex new file mode 100644 index 0000000000..6fd63ff31e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_right_of_publicity_state.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRightOfPublicityState do + @moduledoc """ + User preference for shared endorsements. See go/se-devguide and go/sharedendorsements for details, including guidance on which contexts are which. + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `state` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :state => String.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:state) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRightOfPublicityState do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRightOfPublicityState.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRightOfPublicityState do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_roster_details.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_roster_details.ex new file mode 100644 index 0000000000..cf4d199266 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_roster_details.ex @@ -0,0 +1,74 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterDetails do + @moduledoc """ + Information specific to rosters like Google Groups and Chatrooms. + + ## Attributes + + * `abridgedRosterMemberships` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterMember.t)`, *default:* `nil`) - Abridged / sample subset of member details of the roster. NOTE: This field is only returned if the request's field mask includes "person.roster_details.abridged_roster_memberships". http://cs/symbol:google.apps.cloudidentity.groups.internal.GroupSummary.abridged_memberships + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `rosterMemberCount` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterMemberCount.t`, *default:* `nil`) - Indicates the number of members and sub-rosters of the roster. Corresponds to http://cs/symbol:google.apps.cloudidentity.groups.internal.Group.direct_member_count_per_type + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :abridgedRosterMemberships => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterMember.t() + ) + | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :rosterMemberCount => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterMemberCount.t() + | nil + } + + field(:abridgedRosterMemberships, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterMember, + type: :list + ) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:rosterMemberCount, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterMemberCount + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterDetails do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterDetails.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_roster_member.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_roster_member.ex new file mode 100644 index 0000000000..b5c5cdad43 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_roster_member.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterMember do + @moduledoc """ + Represents details of a member of a roster. Used in RosterDetails. Corresponds to http://cs/symbol:google.apps.cloudidentity.groups.internal.Membership + + ## Attributes + + * `memberType` (*type:* `String.t`, *default:* `nil`) - Type of the member. + * `personId` (*type:* `String.t`, *default:* `nil`) - Focus-Obfuscated Gaia Id of the member. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :memberType => String.t() | nil, + :personId => String.t() | nil + } + + field(:memberType) + field(:personId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterMember do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterMember.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterMember do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_roster_member_count.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_roster_member_count.ex new file mode 100644 index 0000000000..23b28816ea --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_roster_member_count.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterMemberCount do + @moduledoc """ + Represents the summary of member counts of a roster. Used in RosterDetails. Corresponds to http://cs/symbol:google.apps.cloudidentity.groups.internal.Group.DirectMemberCountPerType + + ## Attributes + + * `directGroupCount` (*type:* `String.t`, *default:* `nil`) - Indicates the number of direct sub-rosters of the roster. This comes from http://cs/symbol:google.apps.cloudidentity.groups.internal.Group.DirectMemberCountPerType.group_count + * `directUserCount` (*type:* `String.t`, *default:* `nil`) - Indicates the number of direct, non-roster members of the roster. This comes from http://cs/symbol:google.apps.cloudidentity.groups.internal.Group.DirectMemberCountPerType.user_count + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :directGroupCount => String.t() | nil, + :directUserCount => String.t() | nil + } + + field(:directGroupCount) + field(:directUserCount) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterMemberCount do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterMemberCount.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiRosterMemberCount do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_search_profile.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_search_profile.ex new file mode 100644 index 0000000000..4418f37c2a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_search_profile.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSearchProfile do + @moduledoc """ + Profile for Janata and Search. go/janata-profile-in-sgbe + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `searchProfileData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoSearchProfileData.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :searchProfileData => + GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoSearchProfileData.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:searchProfileData, + as: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoSearchProfileData + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSearchProfile do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSearchProfile.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSearchProfile do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_sip_address.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_sip_address.ex new file mode 100644 index 0000000000..06d304c1da --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_sip_address.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSipAddress do + @moduledoc """ + As of 03/2018 is not supported for user Profile. + + ## Attributes + + * `formattedType` (*type:* `String.t`, *default:* `nil`) - The `type` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the SIP address. The type can be free form or or one of these predefined values: * `home` * `work` * `mobile` * `other` + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :formattedType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :type => String.t() | nil, + :value => String.t() | nil + } + + field(:formattedType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:type) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSipAddress do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSipAddress.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSipAddress do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_skills.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_skills.ex new file mode 100644 index 0000000000..df01a2bed4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_skills.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSkills do + @moduledoc """ + + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :value => String.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSkills do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSkills.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSkills do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_social_connection.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_social_connection.ex new file mode 100644 index 0000000000..78e82949d9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_social_connection.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSocialConnection do + @moduledoc """ + The social connection of this person to the viewer. NOTE: this is used by go/starlight, but not actually used or returned in PeopleAPI. See b/27281119 for context. + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `type` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :type => list(String.t()) | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:type, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSocialConnection do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSocialConnection.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSocialConnection do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_sort_keys.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_sort_keys.ex new file mode 100644 index 0000000000..b99f53ddf5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_sort_keys.ex @@ -0,0 +1,74 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSortKeys do + @moduledoc """ + + + ## Attributes + + * `affinity` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAffinity.t)`, *default:* `nil`) - + * `interactionRank` (*type:* `String.t`, *default:* `nil`) - Deprecated. This field is only populated with 0.000 for legacy reasons. Clients should not use this field. + * `lastName` (*type:* `String.t`, *default:* `nil`) - + * `lastNameRaw` (*type:* `String.t`, *default:* `nil`) - + * `name` (*type:* `String.t`, *default:* `nil`) - + * `nameRaw` (*type:* `String.t`, *default:* `nil`) - Raw name strings that were used to generate the name and last_name sort keys fields above. Contacts+ need them to generate section headers for list view (b/30642866). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :affinity => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAffinity.t() + ) + | nil, + :interactionRank => String.t() | nil, + :lastName => String.t() | nil, + :lastNameRaw => String.t() | nil, + :name => String.t() | nil, + :nameRaw => String.t() | nil + } + + field(:affinity, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAffinity, + type: :list + ) + + field(:interactionRank) + field(:lastName) + field(:lastNameRaw) + field(:name) + field(:nameRaw) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSortKeys do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSortKeys.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSortKeys do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_source_identity.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_source_identity.ex new file mode 100644 index 0000000000..7d7c81fdb8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_source_identity.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSourceIdentity do + @moduledoc """ + Id of a single source from the merged person. + + ## Attributes + + * `container` (*type:* `String.t`, *default:* `nil`) - The type of source. To be deprecated infavor of container_type + * `containerType` (*type:* `String.t`, *default:* `nil`) - The type of the source. + * `deleted` (*type:* `boolean()`, *default:* `nil`) - In sync responses, indicates whether the identity source has been deleted. Not applicable to GOOGLE_GROUP. + * `id` (*type:* `String.t`, *default:* `nil`) - The encoded id of the data source. This field correlates to PersonFieldMetadata.encoded_container_id. The possible values of this `id` field are as follows based on the value of the `container_type` field: CONTACT: Hex-encoded contact id. PROFILE: DOMAIN_PROFILE: GOOGLE_GROUP: NAMED_CHAT_ROOM: Focus-obfuscated Gaia ID. DOMAIN_CONTACT: Synthetic-contact id representing the domain shared contact. PLACE: Encoded PlaceId (go/javagoog/maps/api/places/util/PlaceIdEncoder.java) RAW_DEVICE_CONTACT: Pair of device_id and raw_contact_id, encoded as base64 serialized social.graph.peopleapi.proto.internal.RawDeviceContactId proto. CONTACT_ANNOTATION: Pair of annotation_id and event_timestamp, encoded as base64 serialized social.graph.peopleapi.proto.internal.ContactAnnotationId proto. -- DEPRECATED container types -- If the container is CIRCLE, then the id is going to be the synthetic- contact id representing the email-only circle member or gaia circle member for which the requester does not have a contact for. + * `lastUpdated` (*type:* `DateTime.t`, *default:* `nil`) - Last update timestamp of this source. NOTE: Only populated for CONTACT container type in Java PeopleAPI. Populated for CONTACT, PROFILE, DOMAIN_PROFILE in Sharpen implementation. NOTE: Not populated for GOOGLE_GROUP. + * `lastUpdatedMicros` (*type:* `String.t`, *default:* `nil`) - **DEPRECATED** Please use `last_updated` field instead. Last update timestamp of this source in microseconds. NOTE: Only populated for CONTACT container type. + * `sourceEtag` (*type:* `String.t`, *default:* `nil`) - NOTE: Not populated for GOOGLE_GROUP. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :container => String.t() | nil, + :containerType => String.t() | nil, + :deleted => boolean() | nil, + :id => String.t() | nil, + :lastUpdated => DateTime.t() | nil, + :lastUpdatedMicros => String.t() | nil, + :sourceEtag => String.t() | nil + } + + field(:container) + field(:containerType) + field(:deleted) + field(:id) + field(:lastUpdated, as: DateTime) + field(:lastUpdatedMicros) + field(:sourceEtag) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSourceIdentity do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSourceIdentity.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSourceIdentity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_ssh_public_key.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_ssh_public_key.ex new file mode 100644 index 0000000000..1a7f20b34b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_ssh_public_key.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSshPublicKey do + @moduledoc """ + Custom field that represents SSH public keys associated with the user. We can treat the field as a map from a string fingerprint to the SSH public key information. + + ## Attributes + + * `expirationTime` (*type:* `DateTime.t`, *default:* `nil`) - + * `fingerprint` (*type:* `String.t`, *default:* `nil`) - The value is automatically set to a SHA-256 fingerprint of an SSH public key. A fingerprint should uniquely identify an SSH public key. + * `key` (*type:* `String.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :expirationTime => DateTime.t() | nil, + :fingerprint => String.t() | nil, + :key => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil + } + + field(:expirationTime, as: DateTime) + field(:fingerprint) + field(:key) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSshPublicKey do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSshPublicKey.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiSshPublicKey do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_structured_phone.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_structured_phone.ex new file mode 100644 index 0000000000..06714ac8a4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_structured_phone.ex @@ -0,0 +1,73 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhone do + @moduledoc """ + This message mirrors the ContactPhoneNumber message in ccc/grand_central/common/types.proto. For various reasons, we cannot take on a direct dependency. See other proto file for most recent documentation. + + ## Attributes + + * `formattedType` (*type:* `String.t`, *default:* `nil`) - The phone formatted type. See docs from mirrored proto: http://google3/ccc/grand_central/common/types.proto?l=128&rcl=241000760 + * `phoneNumber` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhonePhoneNumber.t`, *default:* `nil`) - + * `shortCode` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhoneShortCode.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - The type of phone. See docs from mirrored proto: http://google3/ccc/grand_central/common/types.proto?l=125&rcl=241000760 + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :formattedType => String.t() | nil, + :phoneNumber => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhonePhoneNumber.t() + | nil, + :shortCode => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhoneShortCode.t() + | nil, + :type => String.t() | nil + } + + field(:formattedType) + + field(:phoneNumber, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhonePhoneNumber + ) + + field(:shortCode, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhoneShortCode + ) + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhone do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhone.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhone do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_structured_phone_phone_number.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_structured_phone_phone_number.ex new file mode 100644 index 0000000000..3f128a2e43 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_structured_phone_phone_number.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhonePhoneNumber do + @moduledoc """ + + + ## Attributes + + * `e164` (*type:* `String.t`, *default:* `nil`) - + * `i18nData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhonePhoneNumberI18nData.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :e164 => String.t() | nil, + :i18nData => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhonePhoneNumberI18nData.t() + | nil + } + + field(:e164) + + field(:i18nData, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhonePhoneNumberI18nData + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhonePhoneNumber do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhonePhoneNumber.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhonePhoneNumber do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_structured_phone_phone_number_i18n_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_structured_phone_phone_number_i18n_data.ex new file mode 100644 index 0000000000..05be916e2c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_structured_phone_phone_number_i18n_data.ex @@ -0,0 +1,68 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhonePhoneNumberI18nData do + @moduledoc """ + + + ## Attributes + + * `countryCode` (*type:* `integer()`, *default:* `nil`) - + * `internationalNumber` (*type:* `String.t`, *default:* `nil`) - + * `isValid` (*type:* `boolean()`, *default:* `nil`) - + * `nationalNumber` (*type:* `String.t`, *default:* `nil`) - + * `regionCode` (*type:* `String.t`, *default:* `nil`) - + * `validationResult` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :countryCode => integer() | nil, + :internationalNumber => String.t() | nil, + :isValid => boolean() | nil, + :nationalNumber => String.t() | nil, + :regionCode => String.t() | nil, + :validationResult => String.t() | nil + } + + field(:countryCode) + field(:internationalNumber) + field(:isValid) + field(:nationalNumber) + field(:regionCode) + field(:validationResult) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhonePhoneNumberI18nData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhonePhoneNumberI18nData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhonePhoneNumberI18nData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_structured_phone_short_code.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_structured_phone_short_code.ex new file mode 100644 index 0000000000..b3a8a2320f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_structured_phone_short_code.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhoneShortCode do + @moduledoc """ + + + ## Attributes + + * `code` (*type:* `String.t`, *default:* `nil`) - The phone code. See docs from mirrored proto: http://google3/ccc/grand_central/common/types.proto?l=70&rcl=241000760 + * `countryCode` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :code => String.t() | nil, + :countryCode => String.t() | nil + } + + field(:code) + field(:countryCode) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhoneShortCode do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhoneShortCode.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiStructuredPhoneShortCode do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_tagline.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_tagline.ex new file mode 100644 index 0000000000..c96e84478d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_tagline.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiTagline do + @moduledoc """ + + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :value => String.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiTagline do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiTagline.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiTagline do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_teams_extended_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_teams_extended_data.ex new file mode 100644 index 0000000000..98244cc7d3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_teams_extended_data.ex @@ -0,0 +1,113 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiTeamsExtendedData do + @moduledoc """ + *UNSUPPORTED*. This message is never populated and is no longer used. + + ## Attributes + + * `adminTo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson.t)`, *default:* `nil`) - + * `admins` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson.t)`, *default:* `nil`) - + * `dottedLineManagers` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson.t)`, *default:* `nil`) - + * `dottedLineReports` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonListWithTotalNumber.t`, *default:* `nil`) - + * `failures` (*type:* `list(String.t)`, *default:* `nil`) - + * `managementChain` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson.t)`, *default:* `nil`) - + * `reports` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonListWithTotalNumber.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adminTo => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson.t() + ) + | nil, + :admins => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson.t() + ) + | nil, + :dottedLineManagers => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson.t() + ) + | nil, + :dottedLineReports => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonListWithTotalNumber.t() + | nil, + :failures => list(String.t()) | nil, + :managementChain => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson.t() + ) + | nil, + :reports => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonListWithTotalNumber.t() + | nil + } + + field(:adminTo, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson, + type: :list + ) + + field(:admins, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson, + type: :list + ) + + field(:dottedLineManagers, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson, + type: :list + ) + + field(:dottedLineReports, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonListWithTotalNumber + ) + + field(:failures, type: :list) + + field(:managementChain, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPerson, + type: :list + ) + + field(:reports, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonListWithTotalNumber + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiTeamsExtendedData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiTeamsExtendedData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiTeamsExtendedData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_user_defined.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_user_defined.ex new file mode 100644 index 0000000000..31de6d7fa0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_user_defined.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiUserDefined do + @moduledoc """ + + + ## Attributes + + * `key` (*type:* `String.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :key => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :value => String.t() | nil + } + + field(:key) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiUserDefined do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiUserDefined.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiUserDefined do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_user_visible_stats.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_user_visible_stats.ex new file mode 100644 index 0000000000..c226d4e30b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_user_visible_stats.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiUserVisibleStats do + @moduledoc """ + DEPRECATED in favor of ProfileStats. Stats pertaining to incoming edges and views, visible to the requester (with acls applied). Related to, but not equal to, com.google.focus.proto.Storage.UserVisibleStats. + + ## Attributes + + * `incomingAnyCircleCount` (*type:* `String.t`, *default:* `nil`) - Replacement for deprecated follower_count. Comes from the EdgeSummary. + * `viewCount` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :incomingAnyCircleCount => String.t() | nil, + :viewCount => String.t() | nil + } + + field(:incomingAnyCircleCount) + field(:viewCount) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiUserVisibleStats do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiUserVisibleStats.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiUserVisibleStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_visible_to_guests.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_visible_to_guests.ex new file mode 100644 index 0000000000..621de8d419 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_visible_to_guests.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiVisibleToGuests do + @moduledoc """ + Store metadata information like annotation-id and product source for visible to guests contacts go/visible-to-guests. + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiVisibleToGuests do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiVisibleToGuests.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiVisibleToGuests do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_web_contacts_extended_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_web_contacts_extended_data.ex new file mode 100644 index 0000000000..99c12fe1e5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_web_contacts_extended_data.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebContactsExtendedData do + @moduledoc """ + + + ## Attributes + + * `isIncomplete` (*type:* `boolean()`, *default:* `nil`) - Used by Contacts client-side to indicate whether a person is not completed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isIncomplete => boolean() | nil + } + + field(:isIncomplete) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebContactsExtendedData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebContactsExtendedData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebContactsExtendedData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_website.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_website.ex new file mode 100644 index 0000000000..840974bcad --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_website.ex @@ -0,0 +1,78 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebsite do + @moduledoc """ + + + ## Attributes + + * `formattedType` (*type:* `String.t`, *default:* `nil`) - The `type` translated and formatted in the request locale. See go/people-api-howto/localization for details on how to usage. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t`, *default:* `nil`) - + * `rel` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebsiteRelationshipInfo.t)`, *default:* `nil`) - Currently in Oz: "Links": Links with no rel. "Other profiles": Links with rel=ME. "Contributor to": Links with rel=CONTRIBUTOR_TO or PAST_CONTRIBUTOR_TO. + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the website. The type can be free form or one of these predefined values: * `home` * `work` * `blog` * `profile` * `homePage` * `ftp` * `reservations` * `appInstallPage`: website for a Currents application. * `other` + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :formattedType => String.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata.t() + | nil, + :rel => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebsiteRelationshipInfo.t() + ) + | nil, + :type => String.t() | nil, + :value => String.t() | nil + } + + field(:formattedType) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata + ) + + field(:rel, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebsiteRelationshipInfo, + type: :list + ) + + field(:type) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebsite do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebsite.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebsite do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_website_relationship_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_website_relationship_info.ex new file mode 100644 index 0000000000..6f58a35985 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_website_relationship_info.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebsiteRelationshipInfo do + @moduledoc """ + + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebsiteRelationshipInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebsiteRelationshipInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiWebsiteRelationshipInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_youtube_extended_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_youtube_extended_data.ex new file mode 100644 index 0000000000..6ccf09fd69 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/apps_people_oz_external_mergedpeopleapi_youtube_extended_data.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiYoutubeExtendedData do + @moduledoc """ + Extension data for use in Youtube Product Profile. + + ## Attributes + + * `channelData` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiChannelData.t)`, *default:* `nil`) - Information about a channel created by the user. A user can create multiple Youtube channels. + * `failure` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductProfileFailure.t`, *default:* `nil`) - Failure type if there is an error when fetching product profile data. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :channelData => + list( + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiChannelData.t() + ) + | nil, + :failure => + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductProfileFailure.t() + | nil + } + + field(:channelData, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiChannelData, + type: :list + ) + + field(:failure, + as: + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiProductProfileFailure + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiYoutubeExtendedData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiYoutubeExtendedData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiYoutubeExtendedData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_action_v2_supported_features.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_action_v2_supported_features.ex new file mode 100644 index 0000000000..6eb46c7409 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_action_v2_supported_features.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiActionV2SupportedFeatures do + @moduledoc """ + The features supported by the ActionV2 protocol. Note that after we move on to ConversationProto for all surfaces we can remove this message. + + ## Attributes + + * `expressUrlInSettingsResponseSupported` (*type:* `boolean()`, *default:* `nil`) - This flag is used to work around a bug in AGSA 6.8 that got away. The bug prevents users from accessing their shopping list if the URL of the shopping list is not a keep.google.com URL. This will happen when switch the backend that stores the shopping list from Keep to a backend maintained by the Google Shopping Express team. + * `reconnectClientInputSupported` (*type:* `boolean()`, *default:* `nil`) - Whether client supports reconnect client input in action v2 payload. This capability is needed to determine if client supports parsing client input payload from actionv2 proto for workflow purposes. See go/personal-workflow. OWNER:nyzstar,vvvemuri. + * `simpleActionV2PuntSupported` (*type:* `boolean()`, *default:* `nil`) - Whether or not the surface supports a simple UnsupportedAction instead of a ModalState punt card for rendering. For ActionV2 punt cards, the ModalState extension on the ResourceSet is the canonical way of building punt cards. However, while most all devices support the ActionV2 protocol, not all devices handle the ModalState rendering as part of the ActionV2. For these devices, we want to build a modified ActionV2 for punt cards which omits this ModalState. At present, this is only Android Wear and should not be used for other devices if they support ModalState or Conversation protocol. + * `supportedActionType` (*type:* `list(String.t)`, *default:* `nil`) - A list of all the action types supported by the client. These should be the string representation of majel.ActionTypes within "quality/majel/api/proto/action_v2.proto". + * `takeScreenshotSupported` (*type:* `boolean()`, *default:* `nil`) - Checks if screenshots can be taken on the client. This field is set on the client from AGSA 7.2 onwards. + * `voiceDelightImmersiveUiSupported` (*type:* `boolean()`, *default:* `nil`) - If IMMERSIVE_ACTIONS UiType is supported by the client. + * `voiceDelightStickersSupported` (*type:* `boolean()`, *default:* `nil`) - If Voice Delight Stickers are supported by the client. In order to support Voice Delight stickers, the client should know how to extract sticker_url from VoiceDelightSystemInteractionSegment. + * `voiceDelightSuggestionsSupported` (*type:* `boolean()`, *default:* `nil`) - If Voice Delight Suggestion Chips are supported by the client. In order to support Voice Delight Suggestion Chips, the client should know how to extract suggestions form VoiceDelightSystemInteraction.ResourceSet. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :expressUrlInSettingsResponseSupported => boolean() | nil, + :reconnectClientInputSupported => boolean() | nil, + :simpleActionV2PuntSupported => boolean() | nil, + :supportedActionType => list(String.t()) | nil, + :takeScreenshotSupported => boolean() | nil, + :voiceDelightImmersiveUiSupported => boolean() | nil, + :voiceDelightStickersSupported => boolean() | nil, + :voiceDelightSuggestionsSupported => boolean() | nil + } + + field(:expressUrlInSettingsResponseSupported) + field(:reconnectClientInputSupported) + field(:simpleActionV2PuntSupported) + field(:supportedActionType, type: :list) + field(:takeScreenshotSupported) + field(:voiceDelightImmersiveUiSupported) + field(:voiceDelightStickersSupported) + field(:voiceDelightSuggestionsSupported) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiActionV2SupportedFeatures do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiActionV2SupportedFeatures.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiActionV2SupportedFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_android_intent_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_android_intent_capabilities.ex new file mode 100644 index 0000000000..f05aaa5998 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_android_intent_capabilities.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiAndroidIntentCapabilities do + @moduledoc """ + Capabilities related to Android intent support. These capabilities can apply to any device on the Android platform. Provides the list of Android package names that support a given Android intent. + + ## Attributes + + * `androidIntentCapability` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiAndroidIntentCapabilitiesAndroidIntentCapability.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :androidIntentCapability => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAndroidIntentCapabilitiesAndroidIntentCapability.t() + ) + | nil + } + + field(:androidIntentCapability, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAndroidIntentCapabilitiesAndroidIntentCapability, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAndroidIntentCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAndroidIntentCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAndroidIntentCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_android_intent_capabilities_android_intent_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_android_intent_capabilities_android_intent_capability.ex new file mode 100644 index 0000000000..f237e78db1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_android_intent_capabilities_android_intent_capability.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiAndroidIntentCapabilitiesAndroidIntentCapability do + @moduledoc """ + + + ## Attributes + + * `intentActionName` (*type:* `String.t`, *default:* `nil`) - The Action name of the Android Intent in standard notation (https://developer.android.com/reference/android/content/Intent#getAction()). + * `packageNames` (*type:* `list(String.t)`, *default:* `nil`) - The Android provider packages that support the intent, e.g. "com.google.android.deskclock". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :intentActionName => String.t() | nil, + :packageNames => list(String.t()) | nil + } + + field(:intentActionName) + field(:packageNames, type: :list) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAndroidIntentCapabilitiesAndroidIntentCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAndroidIntentCapabilitiesAndroidIntentCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAndroidIntentCapabilitiesAndroidIntentCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_app_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_app_capabilities.ex new file mode 100644 index 0000000000..8095144000 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_app_capabilities.ex @@ -0,0 +1,79 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppCapabilities do + @moduledoc """ + Used to describe app capabilities of the device installed apps reported to the server. + + ## Attributes + + * `allowlistedForMediaFulfillment` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the provider is compatible for media fulfillment on this surface. For example, Amazon Music isn't compatible with the driving mode. + * `appIntegrationsSettings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppIntegrationsSettings.t`, *default:* `nil`) - Currently unused. Will be used in the future when integrating with incremental app capabilities. + * `disabledSystemApp` (*type:* `boolean()`, *default:* `nil`) - This system app is disabled in settings. + * `provider` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider.t`, *default:* `nil`) - The installed app of the provider. + * `routableToProviderCloud` (*type:* `boolean()`, *default:* `nil`) - This provider has integrated its cloud backend with Google, and Google can route the user queries to the provider's cloud. + * `searchableOnDevice` (*type:* `boolean()`, *default:* `nil`) - This provider has an app that supports on-device search through the provider's own inventory. + * `searchableOnServer` (*type:* `boolean()`, *default:* `nil`) - This provider has integrated its content with Google, and Google has enabled to serve its content as a server-side solution. + * `supports3pPodcastPlayback` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the provider supports playback of 3P(externally hosted) podcasts. + * `supportsScreenlessInitiation` (*type:* `boolean()`, *default:* `nil`) - This provider has an app that supports starting new media playback when there is no screen (e.g. by integrating with the Bisto SDK). + * `whitelistedForAnnotation` (*type:* `boolean()`, *default:* `nil`) - This provider is an app which should be used for query annotations. This is useful for apps which may not be already indexed by Google or are client specific. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowlistedForMediaFulfillment => boolean() | nil, + :appIntegrationsSettings => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppIntegrationsSettings.t() | nil, + :disabledSystemApp => boolean() | nil, + :provider => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider.t() | nil, + :routableToProviderCloud => boolean() | nil, + :searchableOnDevice => boolean() | nil, + :searchableOnServer => boolean() | nil, + :supports3pPodcastPlayback => boolean() | nil, + :supportsScreenlessInitiation => boolean() | nil, + :whitelistedForAnnotation => boolean() | nil + } + + field(:allowlistedForMediaFulfillment) + + field(:appIntegrationsSettings, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppIntegrationsSettings + ) + + field(:disabledSystemApp) + field(:provider, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider) + field(:routableToProviderCloud) + field(:searchableOnDevice) + field(:searchableOnServer) + field(:supports3pPodcastPlayback) + field(:supportsScreenlessInitiation) + field(:whitelistedForAnnotation) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_app_capabilities_delta.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_app_capabilities_delta.ex new file mode 100644 index 0000000000..8d74a29619 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_app_capabilities_delta.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppCapabilitiesDelta do + @moduledoc """ + Used to describe the incremental change of app capabilities of the device installed apps reported to the server. + + ## Attributes + + * `appIntegrationsSettings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppIntegrationsSettings.t`, *default:* `nil`) - Currently unused. Will be used in the future when integrating with incremental app capabilities. + * `providerDelta` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProviderDelta.t`, *default:* `nil`) - The installed app of the provider. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appIntegrationsSettings => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppIntegrationsSettings.t() | nil, + :providerDelta => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProviderDelta.t() | nil + } + + field(:appIntegrationsSettings, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppIntegrationsSettings + ) + + field(:providerDelta, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProviderDelta) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppCapabilitiesDelta do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppCapabilitiesDelta.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppCapabilitiesDelta do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_app_control_support.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_app_control_support.ex new file mode 100644 index 0000000000..767899db86 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_app_control_support.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppControlSupport do + @moduledoc """ + + + ## Attributes + + * `enabled` (*type:* `String.t`, *default:* `nil`) - + * `sendMessageSuppressed` (*type:* `boolean()`, *default:* `nil`) - If true, disable send message AppControl/SD flow. This is needed to suppress the feature for specific device. If we decide to turn down this feature for all devices, then this field will become obsolete and should be removed. See context in b/275727627. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enabled => String.t() | nil, + :sendMessageSuppressed => boolean() | nil + } + + field(:enabled) + field(:sendMessageSuppressed) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppControlSupport do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppControlSupport.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppControlSupport do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_app_integrations_settings.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_app_integrations_settings.ex new file mode 100644 index 0000000000..76bc58037b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_app_integrations_settings.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppIntegrationsSettings do + @moduledoc """ + Contains the app privacy bits used for App Integrations implicit request. (go/app-privacy-settings-for-implicit-requests) + + ## Attributes + + * `handleRequestsWithPredictedApps` (*type:* `String.t`, *default:* `nil`) - Whether to enable Assistant to handle request with predicted apps. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :handleRequestsWithPredictedApps => String.t() | nil + } + + field(:handleRequestsWithPredictedApps) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppIntegrationsSettings do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppIntegrationsSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppIntegrationsSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_assistant_continued_presence_support.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_assistant_continued_presence_support.ex new file mode 100644 index 0000000000..b2c36d6161 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_assistant_continued_presence_support.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiAssistantContinuedPresenceSupport do + @moduledoc """ + + + ## Attributes + + * `plateSupport` (*type:* `String.t`, *default:* `nil`) - Indicates in what cases assistant continued presence can be shown as a plate. This field is white-listed as being PII-free. Please do not add PII here. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :plateSupport => String.t() | nil + } + + field(:plateSupport) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAssistantContinuedPresenceSupport do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAssistantContinuedPresenceSupport.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAssistantContinuedPresenceSupport do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_audio_input.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_audio_input.ex new file mode 100644 index 0000000000..2ce00a6c23 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_audio_input.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiAudioInput do + @moduledoc """ + These capabilities represent the audio input features associated with the device. This includes what kind of audio input the device can handle, and what the privacy circumstances of that input are. + + ## Attributes + + * `environment` (*type:* `String.t`, *default:* `nil`) - + * `quality` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :environment => String.t() | nil, + :quality => String.t() | nil + } + + field(:environment) + field(:quality) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAudioInput do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAudioInput.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAudioInput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_audio_output.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_audio_output.ex new file mode 100644 index 0000000000..37d5b616fd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_audio_output.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiAudioOutput do + @moduledoc """ + These capabilities represent the audio output features associated with the device. This includes what kind of audio output the device can handle, and what the privacy circumstances of that output are. + + ## Attributes + + * `alwaysOnSpeaker` (*type:* `String.t`, *default:* `nil`) - + * `environment` (*type:* `String.t`, *default:* `nil`) - + * `mediaTtsMixable` (*type:* `String.t`, *default:* `nil`) - + * `quality` (*type:* `String.t`, *default:* `nil`) - + * `volumeProperties` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiVolumeProperties.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alwaysOnSpeaker => String.t() | nil, + :environment => String.t() | nil, + :mediaTtsMixable => String.t() | nil, + :quality => String.t() | nil, + :volumeProperties => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiVolumeProperties.t() | nil + } + + field(:alwaysOnSpeaker) + field(:environment) + field(:mediaTtsMixable) + field(:quality) + field(:volumeProperties, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiVolumeProperties) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAudioOutput do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAudioOutput.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAudioOutput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_bluetooth_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_bluetooth_capabilities.ex new file mode 100644 index 0000000000..731a271154 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_bluetooth_capabilities.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiBluetoothCapabilities do + @moduledoc """ + Bluetooth capabilities related to usage of a feature. + + ## Attributes + + * `isBluetoothConnectedProfileRequired` (*type:* `boolean()`, *default:* `nil`) - If this surface needs to bluetooth pair a phone before using a feature. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isBluetoothConnectedProfileRequired => boolean() | nil + } + + field(:isBluetoothConnectedProfileRequired) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiBluetoothCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiBluetoothCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiBluetoothCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_call_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_call_capabilities.ex new file mode 100644 index 0000000000..c510bbb70a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_call_capabilities.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCallCapabilities do + @moduledoc """ + CallCapabilities supported by a surface. See go/call-capabilities. Next ID: 7 + + ## Attributes + + * `callFormats` (*type:* `list(String.t)`, *default:* `nil`) - The supported call formats on the surface. + * `callMediums` (*type:* `list(String.t)`, *default:* `nil`) - The supported call mediums on the surface. + * `callOptions` (*type:* `list(String.t)`, *default:* `nil`) - The call options this surface can provide. For example, SPEAKERPHONE is available on Android OPA while iOPA doesn't support it yet. + * `fallbackToTetheredDeviceAppCapabilities` (*type:* `boolean()`, *default:* `nil`) - If true, APP_ID queries initiated by this device should fall back to execution on the tethered device if it's available and if the primary device cannot perform the action (e.g. due to the app not being installed). + * `supportedRecipientTypes` (*type:* `list(String.t)`, *default:* `nil`) - Should only be checked if nonempty. + * `supportsDuoEmailEndpoint` (*type:* `boolean()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :callFormats => list(String.t()) | nil, + :callMediums => list(String.t()) | nil, + :callOptions => list(String.t()) | nil, + :fallbackToTetheredDeviceAppCapabilities => boolean() | nil, + :supportedRecipientTypes => list(String.t()) | nil, + :supportsDuoEmailEndpoint => boolean() | nil + } + + field(:callFormats, type: :list) + field(:callMediums, type: :list) + field(:callOptions, type: :list) + field(:fallbackToTetheredDeviceAppCapabilities) + field(:supportedRecipientTypes, type: :list) + field(:supportsDuoEmailEndpoint) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCallCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCallCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCallCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_camera_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_camera_capabilities.ex new file mode 100644 index 0000000000..c1adaffb90 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_camera_capabilities.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCameraCapabilities do + @moduledoc """ + These capabilities represent the camera features associated with the device. + + ## Attributes + + * `faceMatchCapable` (*type:* `boolean()`, *default:* `nil`) - Whether the device supports Face Match. + * `hasCamera` (*type:* `boolean()`, *default:* `nil`) - Whether the device has a camera. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :faceMatchCapable => boolean() | nil, + :hasCamera => boolean() | nil + } + + field(:faceMatchCapable) + field(:hasCamera) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCameraCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCameraCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCameraCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_camera_receiver_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_camera_receiver_capabilities.ex new file mode 100644 index 0000000000..08c1d97cfa --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_camera_receiver_capabilities.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCameraReceiverCapabilities do + @moduledoc """ + These capabilities present the capability of the device running camera receiver apps. + + ## Attributes + + * `hasLimitedCameraStreamCapability` (*type:* `boolean()`, *default:* `nil`) - Whether the device has limited camera stream capability. If true, check supported_camera_receivers for detailed supported cameras. + * `supportedCameraReceivers` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCastAppInfo.t)`, *default:* `nil`) - The camera receiver cast apps the device supports. Only used if has_limited_camera_stream_capability is true. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :hasLimitedCameraStreamCapability => boolean() | nil, + :supportedCameraReceivers => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCastAppInfo.t()) | nil + } + + field(:hasLimitedCameraStreamCapability) + + field(:supportedCameraReceivers, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCastAppInfo, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCameraReceiverCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCameraReceiverCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCameraReceiverCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_car_assistant_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_car_assistant_capabilities.ex new file mode 100644 index 0000000000..ce5a067732 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_car_assistant_capabilities.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCarAssistantCapabilities do + @moduledoc """ + Capabilities that are associated with Assistants on auto surfaces. This is different from other capabilities such as CarSettingsCapabilities, CloudCarCapabilities since they are specific to settings and 3P cloud information. All the auto/car Assistant specific capabilities should live here. + + ## Attributes + + * `shouldPuntMultiAssistantMode` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the current Assistant should provide a multi Assistant specific punt when there are multiple Auto specific Google Assistants (Android Auto Projected (AAP) and Android Auto Embedded (AAE)) in the same GAS enabled car. This will be used by both AAP and AAE. Design doc: go/doubledash++ + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :shouldPuntMultiAssistantMode => boolean() | nil + } + + field(:shouldPuntMultiAssistantMode) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCarAssistantCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCarAssistantCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCarAssistantCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_car_settings_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_car_settings_capabilities.ex new file mode 100644 index 0000000000..461bf0d0ae --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_car_settings_capabilities.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCarSettingsCapabilities do + @moduledoc """ + Capabilities that are associated with Assistant Settings on auto surfaces. + + ## Attributes + + * `playWarmerWelcome` (*type:* `boolean()`, *default:* `nil`) - If true, it indicates that the auto surface client should receive a warmer welcome TTS for signed-out users. For signed-in user, we will rely on server side metadata. go/aaae:preview-lang + * `supportsAddingCars` (*type:* `boolean()`, *default:* `nil`) - If true, it indicates that the client can be used to add cars after account linking with the OEM. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :playWarmerWelcome => boolean() | nil, + :supportsAddingCars => boolean() | nil + } + + field(:playWarmerWelcome) + field(:supportsAddingCars) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCarSettingsCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCarSettingsCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCarSettingsCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_cast_assistant_setting_linking_result.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_cast_assistant_setting_linking_result.ex new file mode 100644 index 0000000000..13a68ed422 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_cast_assistant_setting_linking_result.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCastAssistantSettingLinkingResult do + @moduledoc """ + + + ## Attributes + + * `castLinkingStatus` (*type:* `String.t`, *default:* `nil`) - Cast linking status for ATV surfaces. This is derived from error messages returned from Cast Orchestration Server and will be used for data profiling only(go/katniss-settings-dashboard). + * `truncatedErrorMsg` (*type:* `String.t`, *default:* `nil`) - The error msg returned from COS, truncated in case it's too large. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :castLinkingStatus => String.t() | nil, + :truncatedErrorMsg => String.t() | nil + } + + field(:castLinkingStatus) + field(:truncatedErrorMsg) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCastAssistantSettingLinkingResult do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCastAssistantSettingLinkingResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCastAssistantSettingLinkingResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_cast_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_cast_capabilities.ex new file mode 100644 index 0000000000..13c0cfaed7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_cast_capabilities.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCastCapabilities do + @moduledoc """ + These capabilities represent capabilities that have to do with casting that pertain to this device. Next ID: 9 + + ## Attributes + + * `cameraReceiverCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCameraReceiverCapabilities.t`, *default:* `nil`) - Whether the device has limited camera stream capability and if yes, which receivers are supported. + * `cameraStreamSupportedProtocols` (*type:* `list(String.t)`, *default:* `nil`) - The supported protocols for camera streaming. The value is used as string in go/smarthome-internal-api#camera-stream, so using a string for this field instead of an enum. Supported protocols: (align the definition in go/smarthome-camerastream-trait) - "hls": HTTP Live Streaming - "dash": Dynamic Adaptive Streaming over HTTP - "smooth_stream": Smooth Streaming - "progressive_mp4": Progressive MP4 (will likely only be used for Clips) - "webrtc": WebRTC (currently, only H.264 is supported) - "nexustalk": Internal-only protocol used for Nest + * `canReceiveCast` (*type:* `boolean()`, *default:* `nil`) - True if we can cast things to this device. + * `deviceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t`, *default:* `nil`) - Optional for primarily cast devices (e.g., Chirp, Chromecast). For devices that are NOT primarily cast devices, but having a cast receiver as secondary functionality, this field SHOULD store the cast-device-id to be used to send remote casting commands to the device. Example: Android TV, which supports both Android-native actions as well as remote casting using its built-in cast receiver. Android TV device id contains a DUSI id, which is not a cast-device-id. When executing a cast command on the Android TV, this field is used to route the cast command (through CloudCastService) to the cast receiver on the device. + * `dynamicGroupsSupported` (*type:* `boolean()`, *default:* `nil`) - Whether this device supports dynamic groups or not. It implies if a Stream Control operation (transfer, expansion, and contraction) could be applied on this device since Stream Control is implemented as part of dynamic groups (ie, adding/removing devices from playback) + * `groupType` (*type:* `String.t`, *default:* `nil`) - + * `overlayApplicationsSupported` (*type:* `boolean()`, *default:* `nil`) - Whether UI overlay applications are supported on this device. It's used by Chromecast only. + * `yetiGamingSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the device supports playing games through Yeti. This is set by the cast device when the device is updated: Chromecast updates -> Chromecast registers its capabilities with CCS -> CCS passes the capabilities to the AssistantSettingsService -> AssistantSettingsService stores the device's capabilities. go/yeti-gaming-supported-cast-capability + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cameraReceiverCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCameraReceiverCapabilities.t() | nil, + :cameraStreamSupportedProtocols => list(String.t()) | nil, + :canReceiveCast => boolean() | nil, + :deviceId => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t() | nil, + :dynamicGroupsSupported => boolean() | nil, + :groupType => String.t() | nil, + :overlayApplicationsSupported => boolean() | nil, + :yetiGamingSupported => boolean() | nil + } + + field(:cameraReceiverCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCameraReceiverCapabilities + ) + + field(:cameraStreamSupportedProtocols, type: :list) + field(:canReceiveCast) + field(:deviceId, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId) + field(:dynamicGroupsSupported) + field(:groupType) + field(:overlayApplicationsSupported) + field(:yetiGamingSupported) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCastCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCastCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCastCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_client_op_properties_device_modify_setting_client_op_property.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_client_op_properties_device_modify_setting_client_op_property.ex new file mode 100644 index 0000000000..ccd3113214 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_client_op_properties_device_modify_setting_client_op_property.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty do + @moduledoc """ + The properties of the client op device.MODIFY_SETTING. This proto is stored in the SupportedClientOp proto. + + ## Attributes + + * `skipAndroidAndGsaVersionCheck` (*type:* `boolean()`, *default:* `nil`) - Additional specific setting capabilities. This boolean is used to indicate whether we want to skip the Android and GSA version check in CheckSettingSchemaAndMaybeGetUris() from assistant/vertical/device/fulfillment/utils/setting_utils.h. Consider setting this field to true if your device is neither Android or GSA (especially when the UserAgent string of your device's TaskRequest will not contain a valid/up-to-date Android/GSA version). + * `supportedSettings` (*type:* `list(String.t)`, *default:* `nil`) - Uses DeviceSetting enum which corresponds to setting_id. This indicates which specific settings are supported by client. An empty list implies all settings are supported. + * `supportsDoNotDisturbWithDuration` (*type:* `boolean()`, *default:* `nil`) - Additional specific setting capabilities. This boolean is used to indicate if do not disturb with duration is supported through device.MODIFY_SETTING clientop on a client or not. + * `supportsMuteUnmute` (*type:* `boolean()`, *default:* `nil`) - Additional specific setting capabilities. This boolean is used to indicate if new unmute logic is enabled on a client or not. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :skipAndroidAndGsaVersionCheck => boolean() | nil, + :supportedSettings => list(String.t()) | nil, + :supportsDoNotDisturbWithDuration => boolean() | nil, + :supportsMuteUnmute => boolean() | nil + } + + field(:skipAndroidAndGsaVersionCheck) + field(:supportedSettings, type: :list) + field(:supportsDoNotDisturbWithDuration) + field(:supportsMuteUnmute) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_client_op_properties_provider_open_client_op_property.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_client_op_properties_provider_open_client_op_property.ex new file mode 100644 index 0000000000..4c3545d20b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_client_op_properties_provider_open_client_op_property.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiClientOpPropertiesProviderOpenClientOpProperty do + @moduledoc """ + The properties of the provider.OPEN ClientOp. This proto is stored in the SupportedClientOp proto with the key provider.OPEN. + + ## Attributes + + * `keepsConversationAliveAfterOpeningApp` (*type:* `boolean()`, *default:* `nil`) - Whether conversation is kept alive after opening the app. See go/keep-opa-conversation-alive for details. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :keepsConversationAliveAfterOpeningApp => boolean() | nil + } + + field(:keepsConversationAliveAfterOpeningApp) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiClientOpPropertiesProviderOpenClientOpProperty do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiClientOpPropertiesProviderOpenClientOpProperty.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiClientOpPropertiesProviderOpenClientOpProperty do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_clock_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_clock_capabilities.ex new file mode 100644 index 0000000000..7bccda2915 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_clock_capabilities.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiClockCapabilities do + @moduledoc """ + Used to describe clock capabilities of the device (for example, capabilities related to maximum number of supported alarms and timers that can be created on the device). Fields may be populated by clients or be backfilled by SAL (in case of Timon, for example). + + ## Attributes + + * `maxSupportedAlarms` (*type:* `integer()`, *default:* `nil`) - Maximum number of alarms that can be created on the client. + * `maxSupportedExtendedTimerDuration` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiDuration.t`, *default:* `nil`) - Maximum extended timer duration supported by the client. The extended timer duration is the total start-to-finish duration after an AddTimeToTimer operation. E.g. if a user sets a timer for 30 minutes, and later adds 10 minutes, the extended duration is 40 minutes. + * `maxSupportedTimerDuration` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiDuration.t`, *default:* `nil`) - Maximum duration of timers that can be created on the client. + * `maxSupportedTimers` (*type:* `integer()`, *default:* `nil`) - Maximum number of timers that can be created on the client. + * `preferredStopwatchProvider` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider.t`, *default:* `nil`) - The preferred provider to use for stopwatch related functionality. + * `restrictAlarmsToNext24h` (*type:* `boolean()`, *default:* `nil`) - Whether the client restricts alarms to ring within the next 24 hours. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :maxSupportedAlarms => integer() | nil, + :maxSupportedExtendedTimerDuration => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiDuration.t() | nil, + :maxSupportedTimerDuration => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiDuration.t() | nil, + :maxSupportedTimers => integer() | nil, + :preferredStopwatchProvider => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider.t() | nil, + :restrictAlarmsToNext24h => boolean() | nil + } + + field(:maxSupportedAlarms) + + field(:maxSupportedExtendedTimerDuration, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDuration + ) + + field(:maxSupportedTimerDuration, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDuration) + field(:maxSupportedTimers) + + field(:preferredStopwatchProvider, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider + ) + + field(:restrictAlarmsToNext24h) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiClockCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiClockCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiClockCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_communication_ui_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_communication_ui_capabilities.ex new file mode 100644 index 0000000000..308f341979 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_communication_ui_capabilities.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCommunicationUiCapabilities do + @moduledoc """ + UI capabilities for the surfaces rendering Comms features. See go/rohan-comms-fluid-actions-customization. + + ## Attributes + + * `fluidActionsUiType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fluidActionsUiType => String.t() | nil + } + + field(:fluidActionsUiType) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCommunicationUiCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCommunicationUiCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCommunicationUiCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_contact_lookup_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_contact_lookup_capabilities.ex new file mode 100644 index 0000000000..a5ebf909e1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_contact_lookup_capabilities.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiContactLookupCapabilities do + @moduledoc """ + + + ## Attributes + + * `fallbackToTetheredDevice` (*type:* `boolean()`, *default:* `nil`) - If true, contact.LOOKUP should be routed to the tethered device (if present) if the tethered device supports contact.LOOKUP and the primary device does not. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fallbackToTetheredDevice => boolean() | nil + } + + field(:fallbackToTetheredDevice) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiContactLookupCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiContactLookupCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiContactLookupCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_android_app_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_android_app_info.ex new file mode 100644 index 0000000000..244c96e260 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_android_app_info.ex @@ -0,0 +1,99 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfo do + @moduledoc """ + The android app information of the provider. Like, Spotify. Next ID: 17 LINT.IfChange + + ## Attributes + + * `accountType` (*type:* `String.t`, *default:* `nil`) - + * `activityInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoActivityInfo.t`, *default:* `nil`) - + * `androidIntent` (*type:* `String.t`, *default:* `nil`) - Intent associated with the app. We include intents here as different versions of the same app may support different intents. In those cases, the package_name is not enough to identify the app and we should use the combination of package_name and android_intent. This field might contain sensitive data, if represents ClientOp with encapsulated PII such as user query. + * `appUniqueId` (*type:* `String.t`, *default:* `nil`) - Store the app unique id endpoint. This will be passed over to app to fulfill the action. + * `appVersion` (*type:* `integer()`, *default:* `nil`) - The android app version. Deprecated because https://developer.android.com/reference/android/content/pm/PackageInfo.html#getLongVersionCode + * `dataMimetype` (*type:* `String.t`, *default:* `nil`) - data_mimetype and account_type are the what AGSA uses to filter which contacts support this Android app in ContactProvider. + * `isBroadcastIntent` (*type:* `boolean()`, *default:* `nil`) - If true, client should broadcast the intent instead of open the intent. + * `isDefault` (*type:* `boolean()`, *default:* `nil`) - App is the default app for it's core functionality. For example, it will be true for Android messages if it is the default app to send and receive SMS on the phone. + * `localizedAppName` (*type:* `String.t`, *default:* `nil`) - The localized app name. + * `longVersionCode` (*type:* `String.t`, *default:* `nil`) - The long android app version. + * `mimetype` (*type:* `String.t`, *default:* `nil`) - Store mimetype of this endpoint. We will use this as the differentiator for Assistant to know whether to use the RawContact for messaging, call or video call. For example, send message mimetype for whatsapp: "vnd.android.cursor.item/vnd.com.whatsapp.profile" voice call mimetype for whatsapp: "vnd.android.cursor.item/vnd.com.whatsapp.voip.call" + * `packageName` (*type:* `String.t`, *default:* `nil`) - The android app package of the provider, like "com.spotify.music". + * `providerType` (*type:* `String.t`, *default:* `nil`) - The OemProviderType is specific for OEM system Android apps. For example, in Auto Embedded, the OEM will have a system Radio/Media app. The system app’s capabilities/core functionalities are captured here. For physical media sources, the OEM may decide to implement one media app (thus, one package name) that handles multiple physical media sources. For these cases, each physical media source will be sent as different providers even though the package name is the same. + * `shortcutId` (*type:* `String.t`, *default:* `nil`) - Id of the app's Android shortcut to be launched by Assistant. The client is expected to use the Android LauncherApps API to execute this shortcut which in turn will open the app. For example, Whatsapp may create an Android shortcut for a frequently messaged contact with an id "contact_123". This field will contain that id and the client can execute it to open up the chat with that particular contact. If this field is set, the package_name field must also be set since both will be used by the LauncherApps API for execution. If this field is set, the intent related fields will be ignored and not used as a fallback. Design: go/shortcut-id-in-provider-open-clientop This field should only be set for devices with Android API level >= 25 (since that is the version from which the LauncherApps startShortcut API is available) + * `targetClass` (*type:* `String.t`, *default:* `nil`) - The fully qualified target class name of the provider, like "com.example.myapp.GetOrderService". + * `versionName` (*type:* `String.t`, *default:* `nil`) - The android app version name, like "4.1.091.05.40d", "11.2.7.21.alpha". Android Docs: https://developer.android.com/reference/android/content/pm/PackageInfo#versionName + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accountType => String.t() | nil, + :activityInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoActivityInfo.t() + | nil, + :androidIntent => String.t() | nil, + :appUniqueId => String.t() | nil, + :appVersion => integer() | nil, + :dataMimetype => String.t() | nil, + :isBroadcastIntent => boolean() | nil, + :isDefault => boolean() | nil, + :localizedAppName => String.t() | nil, + :longVersionCode => String.t() | nil, + :mimetype => String.t() | nil, + :packageName => String.t() | nil, + :providerType => String.t() | nil, + :shortcutId => String.t() | nil, + :targetClass => String.t() | nil, + :versionName => String.t() | nil + } + + field(:accountType) + + field(:activityInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoActivityInfo + ) + + field(:androidIntent) + field(:appUniqueId) + field(:appVersion) + field(:dataMimetype) + field(:isBroadcastIntent) + field(:isDefault) + field(:localizedAppName) + field(:longVersionCode) + field(:mimetype) + field(:packageName) + field(:providerType) + field(:shortcutId) + field(:targetClass) + field(:versionName) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_android_app_info_activity_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_android_app_info_activity_info.ex new file mode 100644 index 0000000000..bc2ed3e904 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_android_app_info_activity_info.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoActivityInfo do + @moduledoc """ + General information about activities in the app. + + ## Attributes + + * `activeLaunchableActivities` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoActivityInfoActivity.t)`, *default:* `nil`) - Activities that are currently active and tagged as ACTION_MAIN and CATEGORY_LAUNCHER. Includes the activity corresponding to android_intent if it falls under CATEGORY_LAUNCHER. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :activeLaunchableActivities => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoActivityInfoActivity.t() + ) + | nil + } + + field(:activeLaunchableActivities, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoActivityInfoActivity, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoActivityInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoActivityInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoActivityInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_android_app_info_activity_info_activity.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_android_app_info_activity_info_activity.ex new file mode 100644 index 0000000000..06f3eab87d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_android_app_info_activity_info_activity.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoActivityInfoActivity do + @moduledoc """ + Information about an individual activity. + + ## Attributes + + * `localizedActivityName` (*type:* `String.t`, *default:* `nil`) - The localized user visible activity name. + * `shortClassName` (*type:* `String.t`, *default:* `nil`) - Short class name for activity, following https://developer.android.com/reference/android/content/ComponentName#getShortClassName() + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :localizedActivityName => String.t() | nil, + :shortClassName => String.t() | nil + } + + field(:localizedActivityName) + field(:shortClassName) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoActivityInfoActivity do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoActivityInfoActivity.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoActivityInfoActivity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_android_app_info_delta.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_android_app_info_delta.ex new file mode 100644 index 0000000000..e38be433e5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_android_app_info_delta.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoDelta do + @moduledoc """ + The change of AndroidAppInfo, e.g. app installation or deletion for incremental delta app info upload. + + ## Attributes + + * `androidAppInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfo.t`, *default:* `nil`) - The android app information of the provider. Like, Spotify. + * `lastUpdateTimestamp` (*type:* `DateTime.t`, *default:* `nil`) - The client-side timestamp in millis when the app is last updated, installed or deleted. + * `updateType` (*type:* `String.t`, *default:* `nil`) - App is installed or deleted. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :androidAppInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfo.t() | nil, + :lastUpdateTimestamp => DateTime.t() | nil, + :updateType => String.t() | nil + } + + field(:androidAppInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfo + ) + + field(:lastUpdateTimestamp, as: DateTime) + field(:updateType) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoDelta do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoDelta.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoDelta do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event.ex new file mode 100644 index 0000000000..cb6e7b6f65 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event.ex @@ -0,0 +1,155 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEvent do + @moduledoc """ + This proto contains the information of a calendar event, including title, start time, end time, etc. LINT.IfChange(CalendarEvent) NEXT_ID: 26 + + ## Attributes + + * `attendees` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventAttendee.t)`, *default:* `nil`) - Attendees invited to the event, usually includes also the organizer. + * `backgroundColor` (*type:* `integer()`, *default:* `nil`) - The background color of the event, in RGB format. + * `calendarId` (*type:* `String.t`, *default:* `nil`) - Optional calendar containing the event. + * `creator` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventAttendee.t`, *default:* `nil`) - The person who created this event. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional description of the event (plain text). + * `end` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTime.t`, *default:* `nil`) - The end time of the event. Start and end time must either both be date or both be datetime. End is exclusive, ie. the first day / first second when the event is over. + * `eventId` (*type:* `String.t`, *default:* `nil`) - Optional event id provided by assistant server. Needs to be unique, at least on a per-user and calendar level, ideally globally unique. If none is given, the server will assign an id. + * `flairName` (*type:* `String.t`, *default:* `nil`) - The flair name, calculated according to the event title (go/as-cal-flair). With the flair name, background images can be got from gstatic (go/scs): https://ssl.gstatic.com/tmly/f8944938hffheth4ew890ht4i8/flairs/ + * `foregroundColor` (*type:* `integer()`, *default:* `nil`) - The foreground color of the event, in RGB format. + * `guestsCanInviteOthers` (*type:* `boolean()`, *default:* `nil`) - Whether the guests can invite other guests. + * `guestsCanModify` (*type:* `boolean()`, *default:* `nil`) - Whether the guests can modify the event. + * `guestsCanSeeGuests` (*type:* `boolean()`, *default:* `nil`) - Whether the guests of the event can be seen. If false, the user is reported as the only attendee to the event, even though there may be more attendees. + * `habitId` (*type:* `String.t`, *default:* `nil`) - Optional id of the Habit (Calendar Goal) this event is linked to + * `habitStatus` (*type:* `String.t`, *default:* `nil`) - Optional status for this habit event instance. + * `htmlLink` (*type:* `String.t`, *default:* `nil`) - Absolute link to this event in the Calendar web UI. + * `location` (*type:* `String.t`, *default:* `nil`) - Optional location of the event (plain text). + * `meetingContacts` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventMeetingContact.t)`, *default:* `nil`) - + * `organizer` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventAttendee.t`, *default:* `nil`) - The organizer of this event. + * `otherAttendeesExcluded` (*type:* `boolean()`, *default:* `nil`) - Whether not all attendees are included in the attendee list. This is set when the attendees list has been truncated (e.g., when the number of attendees is beyond the maxAttendees limitation). + * `participationResponse` (*type:* `String.t`, *default:* `nil`) - The user's response (the owner of this copy of the event) to this event. + * `recurringEventId` (*type:* `String.t`, *default:* `nil`) - If this is an instance of a recurring event, recurring_event_id identifies the recurring series as a whole. + * `rooms` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventRoom.t)`, *default:* `nil`) - Meeting rooms associated to this event. + * `start` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTime.t`, *default:* `nil`) - The start time of the event. This event is an all-day event if start has no time_of_day. + * `summary` (*type:* `String.t`, *default:* `nil`) - The title of the event. + * `visibility` (*type:* `String.t`, *default:* `nil`) - Optional visibility of the event. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attendees => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventAttendee.t() + ) + | nil, + :backgroundColor => integer() | nil, + :calendarId => String.t() | nil, + :creator => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventAttendee.t() + | nil, + :description => String.t() | nil, + :end => GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTime.t() | nil, + :eventId => String.t() | nil, + :flairName => String.t() | nil, + :foregroundColor => integer() | nil, + :guestsCanInviteOthers => boolean() | nil, + :guestsCanModify => boolean() | nil, + :guestsCanSeeGuests => boolean() | nil, + :habitId => String.t() | nil, + :habitStatus => String.t() | nil, + :htmlLink => String.t() | nil, + :location => String.t() | nil, + :meetingContacts => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventMeetingContact.t() + ) + | nil, + :organizer => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventAttendee.t() + | nil, + :otherAttendeesExcluded => boolean() | nil, + :participationResponse => String.t() | nil, + :recurringEventId => String.t() | nil, + :rooms => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventRoom.t()) + | nil, + :start => GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTime.t() | nil, + :summary => String.t() | nil, + :visibility => String.t() | nil + } + + field(:attendees, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventAttendee, + type: :list + ) + + field(:backgroundColor) + field(:calendarId) + + field(:creator, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventAttendee + ) + + field(:description) + field(:end, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTime) + field(:eventId) + field(:flairName) + field(:foregroundColor) + field(:guestsCanInviteOthers) + field(:guestsCanModify) + field(:guestsCanSeeGuests) + field(:habitId) + field(:habitStatus) + field(:htmlLink) + field(:location) + + field(:meetingContacts, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventMeetingContact, + type: :list + ) + + field(:organizer, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventAttendee + ) + + field(:otherAttendeesExcluded) + field(:participationResponse) + field(:recurringEventId) + + field(:rooms, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventRoom, + type: :list + ) + + field(:start, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTime) + field(:summary) + field(:visibility) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEvent do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEvent.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEvent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_attendee.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_attendee.ex new file mode 100644 index 0000000000..ec03119501 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_attendee.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventAttendee do + @moduledoc """ + Next id: 8 + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - Display name, present only if available. + * `email` (*type:* `String.t`, *default:* `nil`) - Email address of the attendee (calendar), for regular events. For +Events, this field is not populated, instead "id" is used. + * `givenName` (*type:* `String.t`, *default:* `nil`) - Given (first) name, present only if available. This is used for generating meeting titles as given name is preferred over display (full) name (ie: "Jeff : Sundar" is better than "Jeff Dean : Sundar Pichai"). + * `id` (*type:* `String.t`, *default:* `nil`) - Profile ID of the principal, for +Events. For regular events, this field is not populated, instead "email" is used. + * `organizer` (*type:* `boolean()`, *default:* `nil`) - Is this the organizer? + * `responseStatus` (*type:* `String.t`, *default:* `nil`) - Attendees response status. + * `self` (*type:* `boolean()`, *default:* `nil`) - Is this the owner of this copy of the event? + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :email => String.t() | nil, + :givenName => String.t() | nil, + :id => String.t() | nil, + :organizer => boolean() | nil, + :responseStatus => String.t() | nil, + :self => boolean() | nil + } + + field(:displayName) + field(:email) + field(:givenName) + field(:id) + field(:organizer) + field(:responseStatus) + field(:self) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventAttendee do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventAttendee.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventAttendee do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_meeting_contact.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_meeting_contact.ex new file mode 100644 index 0000000000..c4d2da9d29 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_meeting_contact.ex @@ -0,0 +1,76 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventMeetingContact do + @moduledoc """ + Next id: 10 + + ## Attributes + + * `conferenceId` (*type:* `String.t`, *default:* `nil`) - ID that corresponds to in ConferenceData.conference_id in calendar.common.ConferenceData proto. For Meet, this is the identifier used to join a meeting via URL. + * `dialInNumberClasses` (*type:* `list(String.t)`, *default:* `nil`) - + * `phoneNumberUri` (*type:* `String.t`, *default:* `nil`) - Default meeting phone number, for example: "tel:+1-475-777-1840" + * `pinNumber` (*type:* `String.t`, *default:* `nil`) - A PIN that the participant will need to input after dialing in the conference. + * `provider` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider.t`, *default:* `nil`) - Provider info for the meeting. + * `regionCode` (*type:* `String.t`, *default:* `nil`) - The region code for the default meeting phone number + * `source` (*type:* `String.t`, *default:* `nil`) - + * `universalPinNumber` (*type:* `String.t`, *default:* `nil`) - The universal meeting PIN number for phone numbers in all available countries + * `url` (*type:* `String.t`, *default:* `nil`) - URL that can be used to join the meeting. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conferenceId => String.t() | nil, + :dialInNumberClasses => list(String.t()) | nil, + :phoneNumberUri => String.t() | nil, + :pinNumber => String.t() | nil, + :provider => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider.t() | nil, + :regionCode => String.t() | nil, + :source => String.t() | nil, + :universalPinNumber => String.t() | nil, + :url => String.t() | nil + } + + field(:conferenceId) + field(:dialInNumberClasses, type: :list) + field(:phoneNumberUri) + field(:pinNumber) + field(:provider, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider) + field(:regionCode) + field(:source) + field(:universalPinNumber) + field(:url) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventMeetingContact do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventMeetingContact.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventMeetingContact do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_room.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_room.ex new file mode 100644 index 0000000000..e4ce93b0bc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_room.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventRoom do + @moduledoc """ + A room that is available for a potential meeting or has been booked for a scheduled meeting. Next id: 4 + + ## Attributes + + * `email` (*type:* `String.t`, *default:* `nil`) - Room email that identifies the room and is used to book it. + * `locationDetails` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventRoomRoomLocationDetails.t`, *default:* `nil`) - Additional room details. Read-only, populated on request. + * `name` (*type:* `String.t`, *default:* `nil`) - Room name (ex: "MTV-PR55-5-A-Shadow 5K0 (13) GVC (No external guests)"). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :email => String.t() | nil, + :locationDetails => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventRoomRoomLocationDetails.t() + | nil, + :name => String.t() | nil + } + + field(:email) + + field(:locationDetails, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventRoomRoomLocationDetails + ) + + field(:name) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventRoom do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventRoom.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventRoom do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_room_room_location_details.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_room_room_location_details.ex new file mode 100644 index 0000000000..63c64031a4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_room_room_location_details.ex @@ -0,0 +1,71 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventRoomRoomLocationDetails do + @moduledoc """ + Room location details. Read-only, populated on request. Next id: 8 + + ## Attributes + + * `building` (*type:* `String.t`, *default:* `nil`) - Building where the room is (ex: "PR55"). + * `city` (*type:* `String.t`, *default:* `nil`) - City where the room is (ex: "MTV"). + * `floor` (*type:* `String.t`, *default:* `nil`) - Floor where the room is (ex: "5"). + * `latitude` (*type:* `float()`, *default:* `nil`) - The latitude in degrees. + * `longitude` (*type:* `float()`, *default:* `nil`) - The longitude in degrees. + * `section` (*type:* `String.t`, *default:* `nil`) - Section in the floor (ex: "A"). + * `simpleName` (*type:* `String.t`, *default:* `nil`) - Room name (ex: "Shadow 5K0"). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :building => String.t() | nil, + :city => String.t() | nil, + :floor => String.t() | nil, + :latitude => float() | nil, + :longitude => float() | nil, + :section => String.t() | nil, + :simpleName => String.t() | nil + } + + field(:building) + field(:city) + field(:floor) + field(:latitude) + field(:longitude) + field(:section) + field(:simpleName) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventRoomRoomLocationDetails do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventRoomRoomLocationDetails.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventRoomRoomLocationDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_wrapper.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_wrapper.ex new file mode 100644 index 0000000000..d10e3ea20e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_calendar_event_wrapper.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventWrapper do + @moduledoc """ + This empty type allows us to publish sensitive calendar events to go/attentional-entities, while maintaining BUILD visibility protection for their contents. The BUILD-visibility-protected extension to this message is defined at http://google3/assistant/verticals/calendar/proto/multi_account_calendar_event.proto + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventWrapper do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventWrapper.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCalendarEventWrapper do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_cast_app_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_cast_app_info.ex new file mode 100644 index 0000000000..fffc4e7ca1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_cast_app_info.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCastAppInfo do + @moduledoc """ + The cast app information of the provider. + + ## Attributes + + * `castAppId` (*type:* `String.t`, *default:* `nil`) - The cast app id. |cast_app_id| is the ID of the cast app used on the current device and |content_app_id| is the ID of the app that provides the actual content. For example, in a group playback, on a follower device, the |cast_app_id| is the follower cast app ID and the |content_app_id| is the leader cast app ID. + * `contentAppId` (*type:* `String.t`, *default:* `nil`) - The id of the cast app that provides the content in a group. The field will always be filled. In the case of a group playback and the current device is a follower, the |cast_app_id| has the ID of the follower app, and |content_app_id| has ID of the actual content app. In all other cases, |content_app_id| and |cast_app_id| will be the same. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :castAppId => String.t() | nil, + :contentAppId => String.t() | nil + } + + field(:castAppId) + field(:contentAppId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCastAppInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCastAppInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCastAppInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_chrome_os_app_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_chrome_os_app_info.ex new file mode 100644 index 0000000000..51ac22d2ba --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_chrome_os_app_info.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesChromeOsAppInfo do + @moduledoc """ + The ChromeOS app information of the provider. Next ID: 3 + + ## Attributes + + * `localizedAppName` (*type:* `String.t`, *default:* `nil`) - The localized app name. + * `packageName` (*type:* `String.t`, *default:* `nil`) - Unique package name that identifies a ChromeOS app of the provider. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :localizedAppName => String.t() | nil, + :packageName => String.t() | nil + } + + field(:localizedAppName) + field(:packageName) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesChromeOsAppInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesChromeOsAppInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesChromeOsAppInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_cloud_provider_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_cloud_provider_info.ex new file mode 100644 index 0000000000..b9c9e2602e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_cloud_provider_info.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCloudProviderInfo do + @moduledoc """ + The third party provider information. + + ## Attributes + + * `agentStyle` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCloudProviderInfoAgentStyle.t`, *default:* `nil`) - + * `directoryUrl` (*type:* `String.t`, *default:* `nil`) - URL to a directory page about the third party agent in Assistant HQ. This is a universal (https) URL that may be handled natively by clients to show HQ or launch to the HQ directory web page. + * `logoUrl` (*type:* `String.t`, *default:* `nil`) - The logo url for the third party provider. + * `name` (*type:* `String.t`, *default:* `nil`) - The user visible name of the cloud provider, which may be used for example in the chat header during a conversation with the third party. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentStyle => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCloudProviderInfoAgentStyle.t() + | nil, + :directoryUrl => String.t() | nil, + :logoUrl => String.t() | nil, + :name => String.t() | nil + } + + field(:agentStyle, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCloudProviderInfoAgentStyle + ) + + field(:directoryUrl) + field(:logoUrl) + field(:name) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCloudProviderInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCloudProviderInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCloudProviderInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_cloud_provider_info_agent_style.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_cloud_provider_info_agent_style.ex new file mode 100644 index 0000000000..6780df7ec3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_cloud_provider_info_agent_style.ex @@ -0,0 +1,75 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCloudProviderInfoAgentStyle do + @moduledoc """ + The style customizations for the 3p agent. + + ## Attributes + + * `backgroundColor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedColor.t`, *default:* `nil`) - The background color of the agent. Used if no background image is specified for the given display orientation, or if the provided background image does not fit. + * `headerTheme` (*type:* `String.t`, *default:* `nil`) - + * `landscapeBackgroundImageUrl` (*type:* `String.t`, *default:* `nil`) - URL for the background image of the agent on landscape display. + * `logoUrl` (*type:* `String.t`, *default:* `nil`) - URL for the image containing the 3p logo. This can include logomark and logotype, or logotype only. If present, this can be used in place of the square logo contained in the top level logo_url field in CloudProviderInfo. See go/cards-logo-customization for details on applying this logo. + * `maskColor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedColor.t`, *default:* `nil`) - The color of the mask to apply to the background. See go/aog-cards-background-mask for details on applying this mask. + * `portraitBackgroundImageUrl` (*type:* `String.t`, *default:* `nil`) - URL for the background image of the agent on portrait display. + * `primaryColor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedColor.t`, *default:* `nil`) - The primary color of the agent. Used by the client to style the header and suggestion chips. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :backgroundColor => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedColor.t() | nil, + :headerTheme => String.t() | nil, + :landscapeBackgroundImageUrl => String.t() | nil, + :logoUrl => String.t() | nil, + :maskColor => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedColor.t() | nil, + :portraitBackgroundImageUrl => String.t() | nil, + :primaryColor => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedColor.t() | nil + } + + field(:backgroundColor, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedColor + ) + + field(:headerTheme) + field(:landscapeBackgroundImageUrl) + field(:logoUrl) + field(:maskColor, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedColor) + field(:portraitBackgroundImageUrl) + field(:primaryColor, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedColor) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCloudProviderInfoAgentStyle do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCloudProviderInfoAgentStyle.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCloudProviderInfoAgentStyle do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_device_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_device_config.ex new file mode 100644 index 0000000000..e48697e27d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_device_config.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceConfig do + @moduledoc """ + The identification information for third party devices that integrates with the assistant. All of these fields will be populated by the third party when the query is sent from the third party device. Next Id: 5 + + ## Attributes + + * `agentId` (*type:* `String.t`, *default:* `nil`) - Pantheon Project ID that uniquely identifies the consumer project ID. Required + * `deviceId` (*type:* `String.t`, *default:* `nil`) - Unique identifier for the device. Example: DBCDW098234. Required + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentId => String.t() | nil, + :deviceId => String.t() | nil + } + + field(:agentId) + field(:deviceId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_device_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_device_id.ex new file mode 100644 index 0000000000..b18bdf96be --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_device_id.ex @@ -0,0 +1,83 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId do + @moduledoc """ + LINT.IfChange(DeviceId) Specifies identifier of a device AKA surface. Note there may be multiple device ids for the same physical device E.g. Allo app and Assistant app on Nexus. Note: DeviceId usage is complicated. Please do not depend on it for surface specific logic. Please use google3/assistant/api/capabilities.proto instead. IMPORTANT: When checking for equality between two `DeviceId`s, you should always use an `isSameDevice{As}` function to check for equality, as deep equality between `DeviceId`'s is not guaranteed. * C++: http://google3/assistant/assistant_server/util/device_id_util.cc;l=23;rcl=421295740 * Dart: http://google3/assistant/context/util/lib/device_id.dart;l=26;rcl=442126145 * Java: http://google3/java/com/google/assistant/assistantserver/utils/DeviceIdHelper.java;l=9;rcl=390378522 See http://go/deviceid-equality for more details. Next ID: 14 + + ## Attributes + + * `agsaClientInstanceId` (*type:* `String.t`, *default:* `nil`) - The client_instance_id on devices with GSA. See 'client_instance_field' in go/androidids. + * `alloDeviceId` (*type:* `String.t`, *default:* `nil`) - Allo Id. Corresponds to the GBotRequest.Sender.sender. NOTE(dychen): This may change to standard android/ios physical device ids in order to enable shared data (e.g. installed app on physical device shared between Allo and Opa apps on Nexus). + * `canonicalDeviceId` (*type:* `String.t`, *default:* `nil`) - A unique device ID for Assistant devices as proposed by go/ocelot-team to solve the device id fragmentation problem. The value of this id is the HomeGraph id of the device. See go/ocelot-track-0-registry-design. New surfaces should use the canonical_device_id instead of using other ids, and the registration should utilize the DeviceDataLayer (go/ddl-v0). Please contact the assistant-state-management@ team for guidance. Note: We didn't reuse |home_graph_device_id| because in Assistant code base |home_graph_device_id| is common to associate it with 3P devices. See go/project-yellowstone for more context. + * `castDeviceId` (*type:* `String.t`, *default:* `nil`) - If set, indicates that the device is a cast device, and contains the UUID of the cast device. Corresponds to the device_id field of the CastDevice proto. + * `clientInstanceId` (*type:* `String.t`, *default:* `nil`) - DUSI (go/dusi) is used as the identifier here. This identifier is unique to the user and device. This will help identify which device or application the user's request originated from. This is not to be confused with the client_instance_id that android devices provide. This is currently used by surfaces that use the assistant-legacy-nexus and assistant-legacy-clockwork pipelines. DUSI is created and set in S3. This field is only filled for GAIA requests. + * `connectedDockId` (*type:* `String.t`, *default:* `nil`) - A device ID produced by a connected dock, which is registered in HomeGraph. + * `deviceConfig` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceConfig.t`, *default:* `nil`) - The unique DeviceConfig to the specific third party device. It is also used by Android Auto Embedded first party device. See go/opa-ids. + * `deviceType` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. assistant.api.core_types.governed.SurfaceIdentity.surface_type field should be used instead. The device's surface type. This is the string version of surface_type. The server should use the SurfaceType value derived from this string. If the device_type isn't supported within the SurfaceType enum, it will be set as UNKNOWN. Developers should use the enum in ServerParams instead of this string. WARNING: Clients are not actually setting this field. This field will be removed once references to it within the code base have been removed. + * `homeGraphDeviceId` (*type:* `String.t`, *default:* `nil`) - The unique device ID for HomeGraph devices. This is the HomeGraph ID, created when the device is registered into HomeGraph. It is immutable for the same device unless it is completely deleted and recreated. See go/home-graph for details. + * `libassistantDeviceId` (*type:* `String.t`, *default:* `nil`) - The unique ID for libassistant based devices. See go/libassistant-id for details. + * `multiHotwordArbitrationDeviceId` (*type:* `String.t`, *default:* `nil`) - If set, indicates that the device is participating the multi-hotword arbitration and the id is an UUID to distinguish it from other devices. It should also be consistent between requests from a single device within a session (or short duration). + * `opaIosDeviceId` (*type:* `String.t`, *default:* `nil`) - The unique device ID for the Assistant App on iOS. See go/opa-ios-design for details. + * `quartzDeviceId` (*type:* `String.t`, *default:* `nil`) - The unique ID of a Quartz device. See go/quartz-design-doc for more details. Quartz ID is a hash of (android_id + gaia). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agsaClientInstanceId => String.t() | nil, + :alloDeviceId => String.t() | nil, + :canonicalDeviceId => String.t() | nil, + :castDeviceId => String.t() | nil, + :clientInstanceId => String.t() | nil, + :connectedDockId => String.t() | nil, + :deviceConfig => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceConfig.t() | nil, + :deviceType => String.t() | nil, + :homeGraphDeviceId => String.t() | nil, + :libassistantDeviceId => String.t() | nil, + :multiHotwordArbitrationDeviceId => String.t() | nil, + :opaIosDeviceId => String.t() | nil, + :quartzDeviceId => String.t() | nil + } + + field(:agsaClientInstanceId) + field(:alloDeviceId) + field(:canonicalDeviceId) + field(:castDeviceId) + field(:clientInstanceId) + field(:connectedDockId) + field(:deviceConfig, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceConfig) + field(:deviceType) + field(:homeGraphDeviceId) + field(:libassistantDeviceId) + field(:multiHotwordArbitrationDeviceId) + field(:opaIosDeviceId) + field(:quartzDeviceId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_device_user_identity.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_device_user_identity.ex new file mode 100644 index 0000000000..7ede598149 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_device_user_identity.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceUserIdentity do + @moduledoc """ + LINT.IfChange + + ## Attributes + + * `deviceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t`, *default:* `nil`) - The identifier of the device. + * `gaiaId` (*type:* `String.t`, *default:* `nil`) - The identifier of the user. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceId => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t() | nil, + :gaiaId => String.t() | nil + } + + field(:deviceId, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId) + field(:gaiaId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceUserIdentity do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceUserIdentity.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceUserIdentity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_color.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_color.ex new file mode 100644 index 0000000000..8dba7a8bd9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_color.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedColor do + @moduledoc """ + LINT.IfChange Represents a color in the RGBA color space. This message mirrors google.type.Color. IMPORTANT: The definition of Color proto is being moved to //assistant/api/core_types/color_type.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new one instead. + + ## Attributes + + * `alpha` (*type:* `number()`, *default:* `nil`) - The fraction of this color that should be applied to the pixel. That is, the final pixel color is defined by the equation: pixel color = alpha * (this color) + (1.0 - alpha) * (background color) This means that a value of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a completely transparent color. If omitted, this color object is to be rendered as a solid color (as if the alpha value had been explicitly given with a value of 1.0). + * `blue` (*type:* `number()`, *default:* `nil`) - The amount of blue in the color as a value in the interval [0, 1]. + * `green` (*type:* `number()`, *default:* `nil`) - The amount of green in the color as a value in the interval [0, 1]. + * `red` (*type:* `number()`, *default:* `nil`) - The amount of red in the color as a value in the interval [0, 1]. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alpha => number() | nil, + :blue => number() | nil, + :green => number() | nil, + :red => number() | nil + } + + field(:alpha) + field(:blue) + field(:green) + field(:red) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedColor do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedColor.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedColor do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_device_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_device_config.ex new file mode 100644 index 0000000000..6517891e5c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_device_config.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedDeviceConfig do + @moduledoc """ + The identification information for third party devices that integrates with the assistant. All of these fields will be populated by the third party when the query is sent from the third party device. IMPORTANT: The definition of DeviceConfig proto is being moved to //assistant/api/core_types/device_type.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new one instead. Next Id: 5 + + ## Attributes + + * `agentId` (*type:* `String.t`, *default:* `nil`) - Pantheon Project ID that uniquely identifies the consumer project ID. Required + * `deviceId` (*type:* `String.t`, *default:* `nil`) - Unique identifier for the device. Example: DBCDW098234. Required + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentId => String.t() | nil, + :deviceId => String.t() | nil + } + + field(:agentId) + field(:deviceId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedDeviceConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedDeviceConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedDeviceConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_device_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_device_id.ex new file mode 100644 index 0000000000..1796728be0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_device_id.ex @@ -0,0 +1,93 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedDeviceId do + @moduledoc """ + LINT.IfChange Specifies identifier of a device AKA surface. Note there may be multiple device ids for the same physical device E.g. Allo app and Assistant app on Nexus. Note: DeviceId usage is complicated. Please do not depend on it for surface specific logic. Please use google3/assistant/api/capabilities.proto instead. IMPORTANT: When checking for equality between two `DeviceId`s, you should always use an `isSameDevice{As}` function to check for equality, as deep equality between `DeviceId`'s is not guaranteed. * C++: http://google3/assistant/assistant_server/util/device_id_util.cc;l=23;rcl=421295740 * Dart: http://google3/assistant/context/util/lib/device_id.dart;l=26;rcl=442126145 * Java: http://google3/java/com/google/assistant/assistantserver/utils/DeviceIdHelper.java;l=9;rcl=390378522 See http://go/deviceid-equality for more details. IMPORTANT: The definition of DeviceId proto is being moved to //assistant/api/core_types/device_type.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new one instead. Next ID: 14 + + ## Attributes + + * `agsaClientInstanceId` (*type:* `String.t`, *default:* `nil`) - The client_instance_id on devices with GSA. See 'client_instance_field' in go/androidids. + * `alloDeviceId` (*type:* `String.t`, *default:* `nil`) - Allo Id. Corresponds to the GBotRequest.Sender.sender. NOTE(dychen): This may change to standard android/ios physical device ids in order to enable shared data (e.g. installed app on physical device shared between Allo and Opa apps on Nexus). + * `canonicalDeviceId` (*type:* `String.t`, *default:* `nil`) - A unique device ID for Assistant devices as proposed by go/ocelot-team to solve the device id fragmentation problem. The value of this id is the HomeGraph id of the device. See go/ocelot-track-0-registry-design. New surfaces should use the canonical_device_id instead of using other ids, and the registration should utilize the DeviceDataLayer (go/ddl-v0). Please contact the assistant-state-management@ team for guidance. Note: We didn't reuse |home_graph_device_id| because in Assistant code base |home_graph_device_id| is common to associate it with 3P devices. See go/project-yellowstone for more context. + * `castDeviceId` (*type:* `String.t`, *default:* `nil`) - If set, indicates that the device is a cast device, and contains the UUID of the cast device. Corresponds to the device_id field of the CastDevice proto. + * `clientInstanceId` (*type:* `String.t`, *default:* `nil`) - DUSI (go/dusi) is used as the identifier here. This identifier is unique to the user and device. This will help identify which device or application the user's request originated from. This is not to be confused with the client_instance_id that android devices provide. This is currently used by surfaces that use the assistant-legacy-nexus and assistant-legacy-clockwork pipelines. DUSI is created and set in S3. This field is only filled for GAIA requests. + * `connectedDockId` (*type:* `String.t`, *default:* `nil`) - A device ID produced by a connected dock, which is registered in HomeGraph. + * `deviceConfig` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedDeviceConfig.t`, *default:* `nil`) - The unique DeviceConfig to the specific third party device. It is also used by Android Auto Embedded first party device. See go/opa-ids. + * `deviceType` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. assistant.api.core_types.governed.SurfaceIdentity.surface_type field should be used instead. The device's surface type. This is the string version of surface_type. The server should use the SurfaceType value derived from this string. If the device_type isn't supported within the SurfaceType enum, it will be set as UNKNOWN. Developers should use the enum in ServerParams instead of this string. WARNING: Clients are not actually setting this field. This field will be removed once references to it within the code base have been removed. + * `homeGraphDeviceId` (*type:* `String.t`, *default:* `nil`) - The unique device ID for HomeGraph devices. This is the HomeGraph ID, created when the device is registered into HomeGraph. It is immutable for the same device unless it is completely deleted and recreated. See go/home-graph for details. + * `libassistantDeviceId` (*type:* `String.t`, *default:* `nil`) - The unique ID for libassistant based devices. See go/libassistant-id for details. + * `multiHotwordArbitrationDeviceId` (*type:* `String.t`, *default:* `nil`) - If set, indicates that the device is participating the multi-hotword arbitration and the id is an UUID to distinguish it from other devices. It should also be consistent between requests from a single device within a session (or short duration). + * `opaIosDeviceId` (*type:* `String.t`, *default:* `nil`) - The unique device ID for the Assistant App on iOS. See go/opa-ios-design for details. + * `quartzDeviceId` (*type:* `String.t`, *default:* `nil`) - The unique ID of a Quartz device. See go/quartz-design-doc for more details. Quartz ID is a hash of (android_id + gaia). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agsaClientInstanceId => String.t() | nil, + :alloDeviceId => String.t() | nil, + :canonicalDeviceId => String.t() | nil, + :castDeviceId => String.t() | nil, + :clientInstanceId => String.t() | nil, + :connectedDockId => String.t() | nil, + :deviceConfig => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedDeviceConfig.t() + | nil, + :deviceType => String.t() | nil, + :homeGraphDeviceId => String.t() | nil, + :libassistantDeviceId => String.t() | nil, + :multiHotwordArbitrationDeviceId => String.t() | nil, + :opaIosDeviceId => String.t() | nil, + :quartzDeviceId => String.t() | nil + } + + field(:agsaClientInstanceId) + field(:alloDeviceId) + field(:canonicalDeviceId) + field(:castDeviceId) + field(:clientInstanceId) + field(:connectedDockId) + + field(:deviceConfig, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedDeviceConfig + ) + + field(:deviceType) + field(:homeGraphDeviceId) + field(:libassistantDeviceId) + field(:multiHotwordArbitrationDeviceId) + field(:opaIosDeviceId) + field(:quartzDeviceId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedDeviceId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedDeviceId.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedDeviceId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata.ex new file mode 100644 index 0000000000..c32083c63c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata.ex @@ -0,0 +1,116 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadata do + @moduledoc """ + LINT.IfChange Task metadata information describing the ringtone. IMPORTANT: The definition of RingtoneTaskMetadata proto is being moved to //assistant/api/core_types/ringtone_task_metadata.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new one instead. Next id: 11 + + ## Attributes + + * `category` (*type:* `String.t`, *default:* `nil`) - The category related with the ringtone. It's used to generate ringtone related with the category if the entity_mid is not be populated. E.g. for instrument, the ringtone may be piano sound. + * `characterAlarmMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataCharacterAlarmMetadata.t`, *default:* `nil`) - + * `characterTag` (*type:* `String.t`, *default:* `nil`) - + * `entityMid` (*type:* `String.t`, *default:* `nil`) - The freebase mid of the entity related to the ringtone. It will be used to generate the ringtone for the alarm or timer (with support for i18n). For instance, for the "cat" mid, the related ringtone will be a cat sound in some language, and for the "Beyonce" mid, the ringtone will be, e.g., a playlist of Beyonce's best hits. + * `funtimeMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataFuntimeMetadata.t`, *default:* `nil`) - + * `genMlAlarmMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataGenMlAlarmMetadata.t`, *default:* `nil`) - + * `gentleWakeInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataGentleWakeInfo.t`, *default:* `nil`) - Gentle wake information for this alarm. + * `onDeviceAlarmMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataOnDeviceAlarmMetadata.t`, *default:* `nil`) - + * `onDeviceAlarmSound` (*type:* `String.t`, *default:* `nil`) - Will be deprecated. Use OnDeviceAlarmMetadata. + * `routineAlarmMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataRoutineAlarmMetadata.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :category => String.t() | nil, + :characterAlarmMetadata => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataCharacterAlarmMetadata.t() + | nil, + :characterTag => String.t() | nil, + :entityMid => String.t() | nil, + :funtimeMetadata => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataFuntimeMetadata.t() + | nil, + :genMlAlarmMetadata => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataGenMlAlarmMetadata.t() + | nil, + :gentleWakeInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataGentleWakeInfo.t() + | nil, + :onDeviceAlarmMetadata => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataOnDeviceAlarmMetadata.t() + | nil, + :onDeviceAlarmSound => String.t() | nil, + :routineAlarmMetadata => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataRoutineAlarmMetadata.t() + | nil + } + + field(:category) + + field(:characterAlarmMetadata, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataCharacterAlarmMetadata + ) + + field(:characterTag) + field(:entityMid) + + field(:funtimeMetadata, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataFuntimeMetadata + ) + + field(:genMlAlarmMetadata, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataGenMlAlarmMetadata + ) + + field(:gentleWakeInfo, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataGentleWakeInfo + ) + + field(:onDeviceAlarmMetadata, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataOnDeviceAlarmMetadata + ) + + field(:onDeviceAlarmSound) + + field(:routineAlarmMetadata, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataRoutineAlarmMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_character_alarm_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_character_alarm_metadata.ex new file mode 100644 index 0000000000..7ee55a813b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_character_alarm_metadata.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataCharacterAlarmMetadata do + @moduledoc """ + + + ## Attributes + + * `agentIds` (*type:* `list(String.t)`, *default:* `nil`) - For character alarm, the media resources are provided through AOG apps. During alarm trigger phase, aog apps with the specified agent_ids are used to get the media resources. Multiple "AoG agents" can satisfy a character_tag. So the user will select the agents they want at alarm creation time. The chosen agents will be recorded so that the resources only from those agents will be used at trigger time. The number of selected agent_ids will not exceed 3. See go/character-alarm-aog. + * `characterTags` (*type:* `list(String.t)`, *default:* `nil`) - The Character Alarm tag. Tags are needed to identify the theme of the alarm. For example, if the tag is 'astronaut', astronaut based audio is played during alarm ring. Note : We have made it repeated so that the user can choose multiple character alarm themes at one go. At present, the user is allowed to choose only one theme during alarm creation. + * `iconUrls` (*type:* `list(String.t)`, *default:* `nil`) - Icons urls corresponding to a character. Note : We have made it repeated so that we can show different images when the alarm rings. At present, we only support only one image. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentIds => list(String.t()) | nil, + :characterTags => list(String.t()) | nil, + :iconUrls => list(String.t()) | nil + } + + field(:agentIds, type: :list) + field(:characterTags, type: :list) + field(:iconUrls, type: :list) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataCharacterAlarmMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataCharacterAlarmMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataCharacterAlarmMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_funtime_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_funtime_metadata.ex new file mode 100644 index 0000000000..c619c5b359 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_funtime_metadata.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataFuntimeMetadata do + @moduledoc """ + Used to make timers and alarms more delightful. See go/funtime-engdesign for more details. + + ## Attributes + + * `agentIds` (*type:* `list(String.t)`, *default:* `nil`) - For FunTime alarms and timers, the media resources are provided through AOG apps during their ringtone. Multiple AoG agents can satisfy a label. So a random agent will be chosen from those that are supplied. See go/funtime-engdesign. + * `animationBlob` (*type:* `String.t`, *default:* `nil`) - These bytes may represent the blob of the Rive animation that we pass to the Opal App. We will deprecate this field if we figure out a solution to load the animation from the web. + * `animationUrl` (*type:* `String.t`, *default:* `nil`) - Url for Rive animation that is brought up on ring. Rive is a lightweight animation library that is compatible with Flutter on Opal. See https://rive.app/. + * `timerHeroUrl` (*type:* `String.t`, *default:* `nil`) - The url used to load the image that is at the center of the timer during timer countdown visuals. + * `ttsServiceRequestBytes` (*type:* `String.t`, *default:* `nil`) - This is used to call S3 to realize the TTS. Is in the form of bytes because of a circular dependency issue in libassistant protos. It is a serialized proto of type speech.s3.TtsServiceRequest. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentIds => list(String.t()) | nil, + :animationBlob => String.t() | nil, + :animationUrl => String.t() | nil, + :timerHeroUrl => String.t() | nil, + :ttsServiceRequestBytes => String.t() | nil + } + + field(:agentIds, type: :list) + field(:animationBlob) + field(:animationUrl) + field(:timerHeroUrl) + field(:ttsServiceRequestBytes) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataFuntimeMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataFuntimeMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataFuntimeMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_gen_ml_alarm_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_gen_ml_alarm_metadata.ex new file mode 100644 index 0000000000..93a7e4679c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_gen_ml_alarm_metadata.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataGenMlAlarmMetadata do + @moduledoc """ + Metadata for machine learning generated audio samples. This will be similar to character alarms, Category will be set MEDIA but this metadata field will be used to identify the ringtone type on surface. (go/magenta-alarm-ringtones). + + ## Attributes + + * `isEnabled` (*type:* `boolean()`, *default:* `nil`) - + * `ringtoneLabel` (*type:* `String.t`, *default:* `nil`) - Label for the generated ringtone. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isEnabled => boolean() | nil, + :ringtoneLabel => String.t() | nil + } + + field(:isEnabled) + field(:ringtoneLabel) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataGenMlAlarmMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataGenMlAlarmMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataGenMlAlarmMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_gentle_wake_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_gentle_wake_info.ex new file mode 100644 index 0000000000..2616a6eaa4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_gentle_wake_info.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataGentleWakeInfo do + @moduledoc """ + Gentle wake actions like slowly brightening the room/device screen leading up to the alarm firing (go/cube-gentle-wake-up). + + ## Attributes + + * `effectDurationMs` (*type:* `String.t`, *default:* `nil`) - Specifies how long the effect lasts. Allowed for effect to last after the alarm has started ringing. If unset or negative or 0, effect is assumed to last until alarm trigger time. + * `isEnabled` (*type:* `boolean()`, *default:* `nil`) - Indicates if gentle wake action is to be performed before this alarm fires. This is enabled only if the device supports sunrise alarm capability. http://cs/symbol:assistant.api.SunriseFeaturesSupport + * `startTimedeltaMs` (*type:* `String.t`, *default:* `nil`) - Specifies how long before the alarm fire time, the wakeup effect will start. ALWAYS POSITIVE. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :effectDurationMs => String.t() | nil, + :isEnabled => boolean() | nil, + :startTimedeltaMs => String.t() | nil + } + + field(:effectDurationMs) + field(:isEnabled) + field(:startTimedeltaMs) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataGentleWakeInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataGentleWakeInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataGentleWakeInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_on_device_alarm_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_on_device_alarm_metadata.ex new file mode 100644 index 0000000000..307d44f211 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_on_device_alarm_metadata.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataOnDeviceAlarmMetadata do + @moduledoc """ + This describes the alarm sound resource enum and the alarm sound label for the on device alarm sound. On-device ringtones are product specific, hence Opal/UI layer will be responsible for populating this metadata at creation/edit. The enum map will be used to convert to an internal resource id used by libassistant for accessing the asset which are not exposed to UI. + + ## Attributes + + * `onDeviceAlarmSound` (*type:* `String.t`, *default:* `nil`) - Opal/UI layer will set this bit based on the user selection. + * `onDeviceAlarmSoundLabel` (*type:* `String.t`, *default:* `nil`) - A string label to identify the alarm sound name. Opal/UI layer will set this as per product definition. This will be used to display the name of the selected ringtone. + * `ttsServiceRequestBytes` (*type:* `String.t`, *default:* `nil`) - This is used to call S3 to realize the TTS. Is in the form of bytes because of a circular dependency issue in libassistant protos. It is a serialized proto of type speech.s3.TtsServiceRequest. This request will contain an ssml with the url to the ringtone files hosted on gstatic. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :onDeviceAlarmSound => String.t() | nil, + :onDeviceAlarmSoundLabel => String.t() | nil, + :ttsServiceRequestBytes => String.t() | nil + } + + field(:onDeviceAlarmSound) + field(:onDeviceAlarmSoundLabel) + field(:ttsServiceRequestBytes) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataOnDeviceAlarmMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataOnDeviceAlarmMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataOnDeviceAlarmMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_routine_alarm_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_routine_alarm_metadata.ex new file mode 100644 index 0000000000..b787333774 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_ringtone_task_metadata_routine_alarm_metadata.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataRoutineAlarmMetadata do + @moduledoc """ + + + ## Attributes + + * `routineId` (*type:* `String.t`, *default:* `nil`) - The unique id for each routine. When the alrm is dismissed, it will trigger the routine of the routine alarm's creator if feasible. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :routineId => String.t() | nil + } + + field(:routineId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataRoutineAlarmMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataRoutineAlarmMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedRingtoneTaskMetadataRoutineAlarmMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_surface_identity.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_surface_identity.ex new file mode 100644 index 0000000000..fe860f450c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_surface_identity.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedSurfaceIdentity do + @moduledoc """ + The set of information that helps the server identify the surface. This replaces the User-Agent string within the Assistant Server. Note: The SurfaceIdentity proto should only be used to derive the capabilities of a surface. It should not be accessed outside of the CapabilityBuilder or CapabilityChecker. IMPORTANT: The partial migration to the SurfaceIdentity and SurfaceVersion protos defined here is being rolled back (b/303012824). All existing references will be updated to point back to //assistant/api/core_types/surface_identity.proto. If you are adding a reference, use the SurfaceIdentity and SurfaceVersion protos defined there. NEXT ID: 6 LINT.IfChange + + ## Attributes + + * `deviceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t`, *default:* `nil`) - The identifier of the device. + * `legacySurfaceType` (*type:* `String.t`, *default:* `nil`) - DEPRECATED: The legacy device's surface type enum. NOTE: Prefer using the ontological `surface_type` field above. If you need to access the legacy surface type, please file a bug and add it in your code to migrate to ontological surface type. + * `surfaceType` (*type:* `String.t`, *default:* `nil`) - The device's surface type. The types are defined at google3/assistant/api/core_types/surfaces.gcl. + * `surfaceVersion` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedSurfaceVersion.t`, *default:* `nil`) - The version of the surface/client. This is different from the Conversation protocol version. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceId => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t() | nil, + :legacySurfaceType => String.t() | nil, + :surfaceType => String.t() | nil, + :surfaceVersion => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedSurfaceVersion.t() + | nil + } + + field(:deviceId, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId) + field(:legacySurfaceType) + field(:surfaceType) + + field(:surfaceVersion, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedSurfaceVersion + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedSurfaceIdentity do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedSurfaceIdentity.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedSurfaceIdentity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_surface_version.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_surface_version.ex new file mode 100644 index 0000000000..072d59aaa5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_governed_surface_version.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedSurfaceVersion do + @moduledoc """ + The version of the surface/client. New surfaces are encouraged to only use the “major” field to keep track of version number. The “minor” field may be used for surfaces that rely on both the “major” and “minor” fields to define their version. + + ## Attributes + + * `major` (*type:* `integer()`, *default:* `nil`) - + * `minor` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :major => integer() | nil, + :minor => integer() | nil + } + + field(:major) + field(:minor) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedSurfaceVersion do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedSurfaceVersion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedSurfaceVersion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_home_app_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_home_app_info.ex new file mode 100644 index 0000000000..b18a0040ee --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_home_app_info.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesHomeAppInfo do + @moduledoc """ + The Home app information of the provider. Next ID: 3 + + ## Attributes + + * `localizedAppName` (*type:* `String.t`, *default:* `nil`) - The localized app name. + * `packageName` (*type:* `String.t`, *default:* `nil`) - Unique package name that identifies a Home app of the provider. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :localizedAppName => String.t() | nil, + :packageName => String.t() | nil + } + + field(:localizedAppName) + field(:packageName) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesHomeAppInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesHomeAppInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesHomeAppInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_image.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_image.ex new file mode 100644 index 0000000000..a20aeb1635 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_image.ex @@ -0,0 +1,79 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesImage do + @moduledoc """ + An image represents the data about an image or a photo. LINT.IfChange NextId: 13 + + ## Attributes + + * `accessibilityText` (*type:* `String.t`, *default:* `nil`) - A text description of the image to be used for accessibility, e.g. screen readers. + * `appIconIdentifier` (*type:* `String.t`, *default:* `nil`) - App identifier. This field is specific to mobile surfaces and stands for app package name for Android surface, and app bundle identifier for iOS. In case identifier is specified but invalid, some default icon will be used, e.g. PackageManager.getDefaultActivityIcon() for Android. If you want to show image for AGSA versions which don't support this field, you can specify source_url as backup. + * `badgeImage` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesImage.t`, *default:* `nil`) - This is the image that is displayed as the badge on the main image. + * `content` (*type:* `String.t`, *default:* `nil`) - Content of the image in bytes. + * `height` (*type:* `integer()`, *default:* `nil`) - + * `imageSource` (*type:* `String.t`, *default:* `nil`) - Indicate the data source where the image is fetched. + * `jsonContent` (*type:* `String.t`, *default:* `nil`) - Content of image in form of JSON representation. + * `letterDrawableText` (*type:* `String.t`, *default:* `nil`) - Text used to generate a letter drawable (a letter icon with color). It will be the default icon if the source_url is empty or cannot be rendered. + * `providerUrl` (*type:* `String.t`, *default:* `nil`) - Url of the image provider, which is the website containing the image. For example, https://www.agentx.com. + * `sourceUrl` (*type:* `String.t`, *default:* `nil`) - The source url of the image. For example, https://www.agentx.com/logo.png + * `sourceUrlType` (*type:* `String.t`, *default:* `nil`) - Type of the source url. + * `width` (*type:* `integer()`, *default:* `nil`) - The width and height of the image in pixels. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accessibilityText => String.t() | nil, + :appIconIdentifier => String.t() | nil, + :badgeImage => GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesImage.t() | nil, + :content => String.t() | nil, + :height => integer() | nil, + :imageSource => String.t() | nil, + :jsonContent => String.t() | nil, + :letterDrawableText => String.t() | nil, + :providerUrl => String.t() | nil, + :sourceUrl => String.t() | nil, + :sourceUrlType => String.t() | nil, + :width => integer() | nil + } + + field(:accessibilityText) + field(:appIconIdentifier) + field(:badgeImage, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesImage) + field(:content) + field(:height) + field(:imageSource) + field(:jsonContent) + field(:letterDrawableText) + field(:providerUrl) + field(:sourceUrl) + field(:sourceUrlType) + field(:width) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesImage do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesImage.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesImage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_internal_provider_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_internal_provider_info.ex new file mode 100644 index 0000000000..b44b6b06e2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_internal_provider_info.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesInternalProviderInfo do + @moduledoc """ + Info for targeting a feature provided directly by the Assistant surface itself. i.e Could be pointing to AGSA audio player for AUDIO_PLAYER on AGSA. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - Specifying which type of internal provider. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesInternalProviderInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesInternalProviderInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesInternalProviderInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_ios_app_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_ios_app_info.ex new file mode 100644 index 0000000000..1621955bec --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_ios_app_info.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesIosAppInfo do + @moduledoc """ + The iOS app information of the provider. Next ID: 4 + + ## Attributes + + * `bundleIdentifier` (*type:* `String.t`, *default:* `nil`) - Bundle identifier that identifies an iOS app of the provider. + * `localizedAppName` (*type:* `String.t`, *default:* `nil`) - The localized app name. + * `openAppUrl` (*type:* `String.t`, *default:* `nil`) - A URL to open the provider's app. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bundleIdentifier => String.t() | nil, + :localizedAppName => String.t() | nil, + :openAppUrl => String.t() | nil + } + + field(:bundleIdentifier) + field(:localizedAppName) + field(:openAppUrl) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesIosAppInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesIosAppInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesIosAppInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_kai_os_app_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_kai_os_app_info.ex new file mode 100644 index 0000000000..8de3597296 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_kai_os_app_info.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesKaiOsAppInfo do + @moduledoc """ + The KaiOS app information of the provider. Next ID: 4 + + ## Attributes + + * `localizedAppName` (*type:* `String.t`, *default:* `nil`) - The localized app name. + * `openAppUrl` (*type:* `String.t`, *default:* `nil`) - A URL to open the provider's app. + * `packageName` (*type:* `String.t`, *default:* `nil`) - Unique package name that identifies a KaiOS app of the provider. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :localizedAppName => String.t() | nil, + :openAppUrl => String.t() | nil, + :packageName => String.t() | nil + } + + field(:localizedAppName) + field(:openAppUrl) + field(:packageName) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesKaiOsAppInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesKaiOsAppInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesKaiOsAppInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_location_coordinates.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_location_coordinates.ex new file mode 100644 index 0000000000..460e7f2809 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_location_coordinates.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesLocationCoordinates do + @moduledoc """ + Geographic coordinate information for location. + + ## Attributes + + * `accuracyMeters` (*type:* `float()`, *default:* `nil`) - The accuracy of the coordinates in meters. + * `latDegrees` (*type:* `float()`, *default:* `nil`) - Latitude degrees. + * `lngDegrees` (*type:* `float()`, *default:* `nil`) - Longitude degrees. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accuracyMeters => float() | nil, + :latDegrees => float() | nil, + :lngDegrees => float() | nil + } + + field(:accuracyMeters) + field(:latDegrees) + field(:lngDegrees) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesLocationCoordinates do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesLocationCoordinates.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesLocationCoordinates do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_message_notification.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_message_notification.ex new file mode 100644 index 0000000000..fafcdf4b71 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_message_notification.ex @@ -0,0 +1,124 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotification do + @moduledoc """ + LINT.IfChange(ungoverned_message_notification) This proto captures the contents of a messaging app notification that is typically part of a conversation thread. Next Id: 21 + + ## Attributes + + * `appName` (*type:* `String.t`, *default:* `nil`) - App name of the message notification, e.g. Hangouts. + * `bundleId` (*type:* `String.t`, *default:* `nil`) - The key used to group this notification into a cluster. + * `dataUri` (*type:* `String.t`, *default:* `nil`) - Uri for the attachment (image, audio, video etc.). + * `groupName` (*type:* `String.t`, *default:* `nil`) - Name of the group associated with the message notification. This field is set iff this is a group message. + * `groupingKey` (*type:* `String.t`, *default:* `nil`) - The group key of a proactive notification. Details in assistant.api.client_op.NotificationArgs.grouping_key. + * `index` (*type:* `integer()`, *default:* `nil`) - Index of the message notification. + * `markAsReadActionAvailable` (*type:* `boolean()`, *default:* `nil`) - Boolean indicating if the mark_as_read action is available for this message. + * `messageLength` (*type:* `integer()`, *default:* `nil`) - Length of the message/notification content in characters. Note: We can't send the full content because of privacy restriction, preventing sending client content to our backends. Concatenated message_length of all notification_entries. + * `messageRecipientType` (*type:* `String.t`, *default:* `nil`) - + * `messageWordCount` (*type:* `integer()`, *default:* `nil`) - Word count of the message + * `mimeType` (*type:* `String.t`, *default:* `nil`) - Mime type of the data_uri. e.g. 'audio/wav', 'video/mp4', 'image/png'. + * `notificationEntries` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationNotificationEntry.t)`, *default:* `nil`) - + * `notificationIconKey` (*type:* `String.t`, *default:* `nil`) - On-device cache key for notification icon. + * `notificationKey` (*type:* `String.t`, *default:* `nil`) - String key of the notification. It is the key from original StatusBarNotification received from Android OS. It is used to identify the original notification to send a reply. + * `opaqueToken` (*type:* `String.t`, *default:* `nil`) - The opaque_token of a proactive notification. Details in assistant.api.client_op.NotificationArgs.opaque_token. + * `packageName` (*type:* `String.t`, *default:* `nil`) - App pkg of the message notification, e.g. "com.google.android.talk". + * `postTime` (*type:* `String.t`, *default:* `nil`) - Timestamp of the last notification's post time. + * `replyActionAvailable` (*type:* `boolean()`, *default:* `nil`) - Boolean indicating if the reply action is available for this message. + * `sender` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationPerson.t`, *default:* `nil`) - + * `senderName` (*type:* `String.t`, *default:* `nil`) - Sender's name of the message notification, e.g. Elsa. Last sender name in case of a group conversation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appName => String.t() | nil, + :bundleId => String.t() | nil, + :dataUri => String.t() | nil, + :groupName => String.t() | nil, + :groupingKey => String.t() | nil, + :index => integer() | nil, + :markAsReadActionAvailable => boolean() | nil, + :messageLength => integer() | nil, + :messageRecipientType => String.t() | nil, + :messageWordCount => integer() | nil, + :mimeType => String.t() | nil, + :notificationEntries => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationNotificationEntry.t() + ) + | nil, + :notificationIconKey => String.t() | nil, + :notificationKey => String.t() | nil, + :opaqueToken => String.t() | nil, + :packageName => String.t() | nil, + :postTime => String.t() | nil, + :replyActionAvailable => boolean() | nil, + :sender => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationPerson.t() + | nil, + :senderName => String.t() | nil + } + + field(:appName) + field(:bundleId) + field(:dataUri) + field(:groupName) + field(:groupingKey) + field(:index) + field(:markAsReadActionAvailable) + field(:messageLength) + field(:messageRecipientType) + field(:messageWordCount) + field(:mimeType) + + field(:notificationEntries, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationNotificationEntry, + type: :list + ) + + field(:notificationIconKey) + field(:notificationKey) + field(:opaqueToken) + field(:packageName) + field(:postTime) + field(:replyActionAvailable) + + field(:sender, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationPerson + ) + + field(:senderName) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotification do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotification.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotification do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_message_notification_notification_entry.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_message_notification_notification_entry.ex new file mode 100644 index 0000000000..a4fd6be233 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_message_notification_notification_entry.ex @@ -0,0 +1,77 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationNotificationEntry do + @moduledoc """ + Structure of each notification in the MessageNotification Bundle. Attribute sender_name could be different in case of group messages. Next Id: 8 + + ## Attributes + + * `charCount` (*type:* `integer()`, *default:* `nil`) - Count of characters in the message body in the notification. + * `dataUri` (*type:* `String.t`, *default:* `nil`) - Uri for the attachment (image, audio, video etc.). + * `messageBody` (*type:* `String.t`, *default:* `nil`) - Note that this is not present in production traffic. Content of the message body in the notification. + * `mimeType` (*type:* `String.t`, *default:* `nil`) - Mime type of the data_uri. e.g. 'audio/wav', 'video/mp4', 'image/png'. + * `postTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp of the notification's post time. + * `sender` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationPerson.t`, *default:* `nil`) - Sender of the message notification. + * `wordCount` (*type:* `integer()`, *default:* `nil`) - Count of words in the message body in the notification. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :charCount => integer() | nil, + :dataUri => String.t() | nil, + :messageBody => String.t() | nil, + :mimeType => String.t() | nil, + :postTime => DateTime.t() | nil, + :sender => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationPerson.t() + | nil, + :wordCount => integer() | nil + } + + field(:charCount) + field(:dataUri) + field(:messageBody) + field(:mimeType) + field(:postTime, as: DateTime) + + field(:sender, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationPerson + ) + + field(:wordCount) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationNotificationEntry do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationNotificationEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationNotificationEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_message_notification_person.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_message_notification_person.ex new file mode 100644 index 0000000000..eafa7c95d0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_message_notification_person.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationPerson do + @moduledoc """ + Mirrors part of https://developer.android.com/reference/android/app/Person Next Id: 4 + + ## Attributes + + * `isImportant` (*type:* `boolean()`, *default:* `nil`) - + * `key` (*type:* `String.t`, *default:* `nil`) - + * `name` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isImportant => boolean() | nil, + :key => String.t() | nil, + :name => String.t() | nil + } + + field(:isImportant) + field(:key) + field(:name) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationPerson do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationPerson.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesMessageNotificationPerson do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_provider.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_provider.ex new file mode 100644 index 0000000000..2e05c0c24d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_provider.ex @@ -0,0 +1,110 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider do + @moduledoc """ + Provider. Like, Spotify or iHeartRadio. Next ID: 13 + + ## Attributes + + * `androidAppInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfo.t`, *default:* `nil`) - The android app information of the provider. + * `castAppInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCastAppInfo.t`, *default:* `nil`) - The cast app information of the provider. + * `chromeosAppInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesChromeOsAppInfo.t`, *default:* `nil`) - The ChromeOS app information of the provider. + * `cloudProviderInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCloudProviderInfo.t`, *default:* `nil`) - The third party provider information. + * `fallbackUrl` (*type:* `String.t`, *default:* `nil`) - A URL to fallback to if app can not be opened. + * `homeAppInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesHomeAppInfo.t`, *default:* `nil`) - + * `iconImageUrl` (*type:* `String.t`, *default:* `nil`) - Public URL pointing to an icon image for the provider. e.g. https://lh3.googleusercontent.com/UrY7BAZ-XfXGpfkeWg0zCCeo-7ras4DCoRalC_WXXWTK9q5b0Iw7B0YQMsVxZaNB7DM + * `internalProviderInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesInternalProviderInfo.t`, *default:* `nil`) - The internal assistant provider information. + * `iosAppInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesIosAppInfo.t`, *default:* `nil`) - The iOS app information of the provider. + * `kaiosAppInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesKaiOsAppInfo.t`, *default:* `nil`) - The KaiOS app information of the provider. + * `sipProviderInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSipProviderInfo.t`, *default:* `nil`) - The sip information of the provider. + * `webProviderInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesWebProviderInfo.t`, *default:* `nil`) - The web provider information. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :androidAppInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfo.t() | nil, + :castAppInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCastAppInfo.t() | nil, + :chromeosAppInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesChromeOsAppInfo.t() | nil, + :cloudProviderInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCloudProviderInfo.t() | nil, + :fallbackUrl => String.t() | nil, + :homeAppInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesHomeAppInfo.t() | nil, + :iconImageUrl => String.t() | nil, + :internalProviderInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesInternalProviderInfo.t() + | nil, + :iosAppInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesIosAppInfo.t() | nil, + :kaiosAppInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesKaiOsAppInfo.t() | nil, + :sipProviderInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSipProviderInfo.t() | nil, + :webProviderInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesWebProviderInfo.t() | nil + } + + field(:androidAppInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfo + ) + + field(:castAppInfo, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCastAppInfo) + + field(:chromeosAppInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesChromeOsAppInfo + ) + + field(:cloudProviderInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesCloudProviderInfo + ) + + field(:fallbackUrl) + field(:homeAppInfo, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesHomeAppInfo) + field(:iconImageUrl) + + field(:internalProviderInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesInternalProviderInfo + ) + + field(:iosAppInfo, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesIosAppInfo) + field(:kaiosAppInfo, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesKaiOsAppInfo) + + field(:sipProviderInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSipProviderInfo + ) + + field(:webProviderInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesWebProviderInfo + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_provider_delta.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_provider_delta.ex new file mode 100644 index 0000000000..840cafd3ba --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_provider_delta.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProviderDelta do + @moduledoc """ + ProviderDelta. The incremental change, e.g. installation or deletion for Spotify or iHeartRadio. Currently it is for Android only. A few considerations for edge cases: - If the app being deleted is not found from Footprints, it is ignored. - For Footprint upload through Geller, the gPRC response is available for client to retry in the next upload if the upload fails. - For Assistant Request, there is no upload status similar to the current AppCapabilities. Next ID: 4 + + ## Attributes + + * `androidAppInfoDelta` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoDelta.t`, *default:* `nil`) - The android app information of the provider. + * `fallbackUrl` (*type:* `String.t`, *default:* `nil`) - A URL to fallback to if app can not be opened. + * `iconImageUrl` (*type:* `String.t`, *default:* `nil`) - Public URL pointing to an icon image for the provider. e.g. https://lh3.googleusercontent.com/UrY7BAZ-XfXGpfkeWg0zCCeo-7ras4DCoRalC_WXXWTK9q5b0Iw7B0YQMsVxZaNB7DM + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :androidAppInfoDelta => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoDelta.t() | nil, + :fallbackUrl => String.t() | nil, + :iconImageUrl => String.t() | nil + } + + field(:androidAppInfoDelta, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesAndroidAppInfoDelta + ) + + field(:fallbackUrl) + field(:iconImageUrl) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProviderDelta do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProviderDelta.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProviderDelta do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_sip_provider_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_sip_provider_info.ex new file mode 100644 index 0000000000..4858541ed6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_sip_provider_info.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSipProviderInfo do + @moduledoc """ + Session Initiation Protocol (SIP) information for providers that use SIP to initiate multimedia communication sessions, like Google Voice and Fi. https://en.wikipedia.org/wiki/Session_Initiation_Protocol + + ## Attributes + + * `providerId` (*type:* `String.t`, *default:* `nil`) - The providers id (MID) which is the primary identifier for a call provider within the Assistant. A MID, or machine identifier, is a unique identifier issued by Knowledge Graph for all entities contained in it's graph. + * `realm` (*type:* `String.t`, *default:* `nil`) - Calling realm to be use for each call. i.e. For anonymous, this would be set to anonymous.chirp.google.com + * `useBirdsongTacl` (*type:* `boolean()`, *default:* `nil`) - If true, client should use the Birdsong TaCL API for this call. Uses the VoiceCallManager API by default. For more details: go/birdsong-migration-google-home + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :providerId => String.t() | nil, + :realm => String.t() | nil, + :useBirdsongTacl => boolean() | nil + } + + field(:providerId) + field(:realm) + field(:useBirdsongTacl) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSipProviderInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSipProviderInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSipProviderInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_surface_identity.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_surface_identity.ex new file mode 100644 index 0000000000..ebdb5ff723 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_surface_identity.ex @@ -0,0 +1,68 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceIdentity do + @moduledoc """ + The set of information that helps the server identify the surface. This replaces the User-Agent string within the Assistant Server. Note: The SurfaceIdentity proto should only be used to derive the capabilities of a surface. It should not be accessed outside of the CapabilityBuilder or CapabilityChecker. NEXT ID: 6 LINT.IfChange + + ## Attributes + + * `deviceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t`, *default:* `nil`) - The identifier of the device. + * `legacySurfaceType` (*type:* `String.t`, *default:* `nil`) - DEPRECATED: The legacy device's surface type enum. NOTE: Prefer using the ontological `surface_type` field above. If you need to access the legacy surface type, please file a bug and add it in your code to migrate to ontological surface type. + * `surfaceType` (*type:* `String.t`, *default:* `nil`) - The device's surface type. The types are defined at google3/assistant/api/core_types/surfaces.gcl. For more details, refer to go/ontologicalize-surface-type. + * `surfaceTypeString` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. The legacy device's surface type string. NOTE: Prefer using the ontological `surface_type` field. The device's surface type. This is the string version of the assistant.api.core_types.SurfaceType enum. The server should not use this field, rather it should use the SurfaceType value derived from this string. + * `surfaceVersion` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceVersion.t`, *default:* `nil`) - The version of the surface/client. This is different from the Conversation protocol version. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceId => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t() | nil, + :legacySurfaceType => String.t() | nil, + :surfaceType => String.t() | nil, + :surfaceTypeString => String.t() | nil, + :surfaceVersion => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceVersion.t() | nil + } + + field(:deviceId, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId) + field(:legacySurfaceType) + field(:surfaceType) + field(:surfaceTypeString) + + field(:surfaceVersion, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceVersion + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceIdentity do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceIdentity.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceIdentity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_surface_type.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_surface_type.ex new file mode 100644 index 0000000000..14eeb1e9d4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_surface_type.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceType do + @moduledoc """ + Specifies the types of device surfaces. LINT.IfChange When adding new surface types make sure that My Activity (https://myactivity.google.com/product/assistant) will correctly render by adding your enum to http://cs/symbol:GetAssistSurfaceName%20f:%5C.cc$ If your type doesn't fit in to any of the existing surfaces messages, add a new message in http://google3/personalization/footprints/boq/uservisible/events/intl/smh_frontend_messages.h. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceType do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceType.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceType do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_surface_version.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_surface_version.ex new file mode 100644 index 0000000000..13220956d9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_surface_version.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceVersion do + @moduledoc """ + The version of the surface/client. New surfaces are encouraged to only use the “major” field to keep track of version number. The “minor” field may be used for surfaces that rely on both the “major” and “minor” fields to define their version. + + ## Attributes + + * `major` (*type:* `integer()`, *default:* `nil`) - + * `minor` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :major => integer() | nil, + :minor => integer() | nil + } + + field(:major) + field(:minor) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceVersion do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceVersion.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceVersion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_web_provider_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_web_provider_info.ex new file mode 100644 index 0000000000..682c34bc1f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_web_provider_info.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesWebProviderInfo do + @moduledoc """ + The web information of the provider. Next ID: 5 + + ## Attributes + + * `homeStorage` (*type:* `String.t`, *default:* `nil`) - Serialized storage (context) persisted and retrieved for the app and home. + * `localizedAppName` (*type:* `String.t`, *default:* `nil`) - The localized app name. + * `openAppUrl` (*type:* `String.t`, *default:* `nil`) - A URL to open the provider's app. + * `thirdPartyCustomNluInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesWebProviderInfoThirdPartyCustomNluInfo.t`, *default:* `nil`) - Info about 3P Custom NLU used in this web provider. TODO(b/321644453) remove when QRewrite is able to call SERoot. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :homeStorage => String.t() | nil, + :localizedAppName => String.t() | nil, + :openAppUrl => String.t() | nil, + :thirdPartyCustomNluInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesWebProviderInfoThirdPartyCustomNluInfo.t() + | nil + } + + field(:homeStorage) + field(:localizedAppName) + field(:openAppUrl) + + field(:thirdPartyCustomNluInfo, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesWebProviderInfoThirdPartyCustomNluInfo + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesWebProviderInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesWebProviderInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesWebProviderInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_web_provider_info_third_party_custom_nlu_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_web_provider_info_third_party_custom_nlu_info.ex new file mode 100644 index 0000000000..1128a41999 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_core_types_web_provider_info_third_party_custom_nlu_info.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesWebProviderInfoThirdPartyCustomNluInfo do + @moduledoc """ + + + ## Attributes + + * `locale` (*type:* `String.t`, *default:* `nil`) - The locale of this agent version, represented by BCP-47 language strings, such as "en", "en-US", "fr", "fr-CA", "sr-Latn", "zh-Hans-CN", etc. + * `nluAgentId` (*type:* `String.t`, *default:* `nil`) - Unique internal identifier of 3P Custom NLU agent. UUID. + * `nluAgentVersion` (*type:* `String.t`, *default:* `nil`) - Identifies the 3P Custom NLU agent version. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :locale => String.t() | nil, + :nluAgentId => String.t() | nil, + :nluAgentVersion => String.t() | nil + } + + field(:locale) + field(:nluAgentId) + field(:nluAgentVersion) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesWebProviderInfoThirdPartyCustomNluInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesWebProviderInfoThirdPartyCustomNluInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesWebProviderInfoThirdPartyCustomNluInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_cross_device_execution_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_cross_device_execution_capability.ex new file mode 100644 index 0000000000..2d7baea71f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_cross_device_execution_capability.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiCrossDeviceExecutionCapability do + @moduledoc """ + + + ## Attributes + + * `localConnectivityEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether the device has torus/usonia capabililities enabled or not. + * `remoteCastMediaEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether the device supports cast media originated from a remote device to be executed through local execution and can upload results asynchronously. Needs to be checked before sending remote media initiation through local channel since it needs an async result upload path. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :localConnectivityEnabled => boolean() | nil, + :remoteCastMediaEnabled => boolean() | nil + } + + field(:localConnectivityEnabled) + field(:remoteCastMediaEnabled) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCrossDeviceExecutionCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCrossDeviceExecutionCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCrossDeviceExecutionCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_data_validate_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_data_validate_capabilities.ex new file mode 100644 index 0000000000..534d6b2f5a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_data_validate_capabilities.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiDataValidateCapabilities do + @moduledoc """ + + + ## Attributes + + * `fallbackToTetheredDevice` (*type:* `boolean()`, *default:* `nil`) - If true, data.VALIDATE should be routed to the tethered device (if present) if the tethered device supports data.VALIDATE and the primary device does not. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fallbackToTetheredDevice => boolean() | nil + } + + field(:fallbackToTetheredDevice) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDataValidateCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiDataValidateCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDataValidateCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_date.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_date.ex new file mode 100644 index 0000000000..4db8565ea8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_date.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiDate do + @moduledoc """ + A Gregorian calendar date. + + ## Attributes + + * `day` (*type:* `integer()`, *default:* `nil`) - The day, in 1...31. + * `month` (*type:* `integer()`, *default:* `nil`) - The month, in 1...12. + * `year` (*type:* `integer()`, *default:* `nil`) - The year, e.g. 2016. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :day => integer() | nil, + :month => integer() | nil, + :year => integer() | nil + } + + field(:day) + field(:month) + field(:year) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDate do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiDate.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDate do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_date_time.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_date_time.ex new file mode 100644 index 0000000000..db23b2f821 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_date_time.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTime do + @moduledoc """ + A date-time specification, combining a date and civil time (relative to a given timezone). + + ## Attributes + + * `date` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiDate.t`, *default:* `nil`) - A Gregorian calendar date. + * `timeOfDay` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeOfDay.t`, *default:* `nil`) - A civil time relative to a timezone. + * `timeZone` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeZone.t`, *default:* `nil`) - A time zone in IANA format. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :date => GoogleApi.ContentWarehouse.V1.Model.AssistantApiDate.t() | nil, + :timeOfDay => GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeOfDay.t() | nil, + :timeZone => GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeZone.t() | nil + } + + field(:date, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDate) + field(:timeOfDay, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeOfDay) + field(:timeZone, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeZone) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTime do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTime.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTime do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_date_time_range.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_date_time_range.ex new file mode 100644 index 0000000000..87ae2ee6f1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_date_time_range.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTimeRange do + @moduledoc """ + A representation of a range of time with start and end datetime specified. + + ## Attributes + + * `endDate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTime.t`, *default:* `nil`) - End date of the range. + * `startDate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTime.t`, *default:* `nil`) - Start date of the range. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :endDate => GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTime.t() | nil, + :startDate => GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTime.t() | nil + } + + field(:endDate, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTime) + field(:startDate, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTimeRange do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTimeRange.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTimeRange do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_device_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_device_capabilities.ex new file mode 100644 index 0000000000..e4a9b2b2af --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_device_capabilities.ex @@ -0,0 +1,216 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiDeviceCapabilities do + @moduledoc """ + This message describes roughly what a surface is capable of doing and metadata around those capabilities. These capabilities are determined based on: - device hardware - software - status (e.g. volume level, battery percentage) These capabilities refer to the surface and not the physical device. The list of supported surfaces can be found in the assistant.api.core_types.SurfaceType enum. A surface's capabilities can differ from the device's. An example would be ANDROID_ALLO running on Pixel. Allo does not support AudioInput while the Pixel does. In this case, audio_input will be set to false for Assistant Allo requests while it might be set to true for OPA_NEXUS requests. Next ID: 37 + + ## Attributes + + * `thirdPartyCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyCapabilities.t`, *default:* `nil`) - Capabilities related to third party integration. + * `dataValidateCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiDataValidateCapabilities.t`, *default:* `nil`) - + * `supportedLocale` (*type:* `list(String.t)`, *default:* `nil`) - Locales supported by assistant settings for speaking and display. This is independent from device language that is defined in device setting. New locales are added based on rollout, whitelist and app version releases because older versions does not have model support. Currently supported locale list differs by surface type. + * `cast` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCastCapabilities.t`, *default:* `nil`) - These capabilities are scoped to the cast abilities of this device. + * `notificationCapabilities` (*type:* `String.t`, *default:* `nil`) - DEPRECATED: Use SystemNotificationRestrictions instead. Specifies whether the surface is able to display notifications. This field is superficially similar to ProactiveNotificationOutput, but unlike that field which tracks a per-user preference on the OPA side, this field captures whether the surface is capable of displaying notifications. + * `software` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSoftwareCapabilities.t`, *default:* `nil`) - These capabilities are scoped to the software available on the device as well as the set of supported Assistant features. + * `lensPerceptionCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilities.t`, *default:* `nil`) - Capabilities related to Lens Perception, i.e. image understanding. See go/lens-perception-sdk. + * `outputRestrictions` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiOutputRestrictions.t`, *default:* `nil`) - These are user configured restrictions indicating what the device is allowed to output from the privacy point of view. + * `notificationOutputRestrictions` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictions.t`, *default:* `nil`) - Settings, that reflect whether a specific notification type is allowed for current device, e.g. if the user opted out from notification category or category group. This settings are server-side stored and evaluated unlike SystemNotificationRestrictions field. + * `surfaceTypeString` (*type:* `String.t`, *default:* `nil`) - DEPRECATED. surface_identity field below already contains this information. The device's surface type. This is the string version of the assistant.api.core_types.SurfaceType enum. The server should not use this field, rather it should use the SurfaceType value derived from this string. + * `movement` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiMovementCapabilities.t`, *default:* `nil`) - These capabilities are scoped to abilities of the device to move around. + * `sodaCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSodaCapabilities.t`, *default:* `nil`) - Capabilities related to SODA (Speech On-Device API). + * `surfaceIdentity` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceIdentity.t`, *default:* `nil`) - The set of information that helps the server identify the surface. + * `deviceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t`, *default:* `nil`) - This is the same device id that is specified in the conversation protocol and should be unique to each device/user/model combination. For example, if a request is coming from a watch through AGSA the watch and AGSA should have different device_ids. Note: this field should only be used to determine which device the capabilities belong to and not to access the id of the device. Instead DeviceProperties should be used and accessed through ParamsAccessor. + * `callCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCallCapabilities.t`, *default:* `nil`) - The call capabilities of this device. go/call-capabilities + * `jwnCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiJwnCapabilities.t`, *default:* `nil`) - Indicates if the client supports Javascript Whatsnext (go/jwn). Also contains the Jwn libraries present on the client along with their versions. + * `location` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiLocationCapabilities.t`, *default:* `nil`) - These capabilities are scoped to the location abilities of this device. + * `safetyRestrictions` (*type:* `String.t`, *default:* `nil`) - Indicates if the client has safety related restriction. + * `screen` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilities.t`, *default:* `nil`) - These capabilities are scoped to the ability to see and interact with the Assistant through a screen. If the device has no screen it should send an empty ScreenCapabilities. Sending no ScreenCapabilities will cause this to be overridden with the surface default. + * `communicationUiCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCommunicationUiCapabilities.t`, *default:* `nil`) - + * `deviceUxMode` (*type:* `String.t`, *default:* `nil`) - Capabilities related to Android tablet UX experience. + * `audioInput` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiAudioInput.t`, *default:* `nil`) - These capabilities are scoped to the ability to gather audio. It includes information like the type of audio that can be gathered (e.g. public, private). + * `carUxRestrictions` (*type:* `list(String.t)`, *default:* `nil`) - UX restrictions for Auto. + * `contactLookupCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiContactLookupCapabilities.t`, *default:* `nil`) - + * `androidIntentCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiAndroidIntentCapabilities.t`, *default:* `nil`) - Capabilites related to Android intent support. + * `speechCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSpeechCapabilities.t`, *default:* `nil`) - DEPRECATED Capabilities related to speech detection on devices. + * `popOnLockscreenCapability` (*type:* `String.t`, *default:* `nil`) - Capability to support Pop on lockscreen. + * `bluetoothCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiBluetoothCapabilities.t`, *default:* `nil`) - Bluetooth capabilities related to usage of a feature. + * `camera` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCameraCapabilities.t`, *default:* `nil`) - These capabilities are scoped to the camera abilities of this device. + * `hasVoiceTelephony` (*type:* `boolean()`, *default:* `nil`) - Indicates that the device has connection to cellular network that allows it to make voice calls. This is distinct from device just being capable of voice telephony, because the device can be capable yet miss the suitable SIM card (for example, it could miss SIM card altogether, or have data-only SIM card). + * `messageCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiMessageCapabilities.t`, *default:* `nil`) - + * `loggingOnlyData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiLoggingOnlyData.t`, *default:* `nil`) - Data which is produced for logging and debugging. Servers MUST NOT use this for any other purposes, such as branching on it. + * `assistantCapability` (*type:* `String.t`, *default:* `nil`) - Capabilities if surface supports Google Assistant. + * `audioOutput` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiAudioOutput.t`, *default:* `nil`) - These capabilities are scoped to the ability to play audio. It includes information like the type of audio that can be played (e.g. public, private). + * `systemNotificationRestrictions` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictions.t`, *default:* `nil`) - Restrictions related to system-level notifications. This field is superficially similar to ProactiveNotificationOutput, but unlike that field which tracks a per-user preference on the OPA side, this field captures system level notifications restrictions. This field is not stored and is merged to capabilities from conversation params. It exists mostly for logging purposes of android channel state and global app-level notification opt out. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :thirdPartyCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyCapabilities.t() | nil, + :dataValidateCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiDataValidateCapabilities.t() | nil, + :supportedLocale => list(String.t()) | nil, + :cast => GoogleApi.ContentWarehouse.V1.Model.AssistantApiCastCapabilities.t() | nil, + :notificationCapabilities => String.t() | nil, + :software => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSoftwareCapabilities.t() | nil, + :lensPerceptionCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilities.t() | nil, + :outputRestrictions => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiOutputRestrictions.t() | nil, + :notificationOutputRestrictions => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictions.t() + | nil, + :surfaceTypeString => String.t() | nil, + :movement => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiMovementCapabilities.t() | nil, + :sodaCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSodaCapabilities.t() | nil, + :surfaceIdentity => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceIdentity.t() | nil, + :deviceId => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t() | nil, + :callCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCallCapabilities.t() | nil, + :jwnCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiJwnCapabilities.t() | nil, + :location => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLocationCapabilities.t() | nil, + :safetyRestrictions => String.t() | nil, + :screen => GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilities.t() | nil, + :communicationUiCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCommunicationUiCapabilities.t() | nil, + :deviceUxMode => String.t() | nil, + :audioInput => GoogleApi.ContentWarehouse.V1.Model.AssistantApiAudioInput.t() | nil, + :carUxRestrictions => list(String.t()) | nil, + :contactLookupCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiContactLookupCapabilities.t() | nil, + :androidIntentCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAndroidIntentCapabilities.t() | nil, + :speechCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSpeechCapabilities.t() | nil, + :popOnLockscreenCapability => String.t() | nil, + :bluetoothCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiBluetoothCapabilities.t() | nil, + :camera => GoogleApi.ContentWarehouse.V1.Model.AssistantApiCameraCapabilities.t() | nil, + :hasVoiceTelephony => boolean() | nil, + :messageCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiMessageCapabilities.t() | nil, + :loggingOnlyData => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLoggingOnlyData.t() | nil, + :assistantCapability => String.t() | nil, + :audioOutput => GoogleApi.ContentWarehouse.V1.Model.AssistantApiAudioOutput.t() | nil, + :systemNotificationRestrictions => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictions.t() + | nil + } + + field(:thirdPartyCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyCapabilities + ) + + field(:dataValidateCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDataValidateCapabilities + ) + + field(:supportedLocale, type: :list) + field(:cast, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCastCapabilities) + field(:notificationCapabilities) + field(:software, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSoftwareCapabilities) + + field(:lensPerceptionCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilities + ) + + field(:outputRestrictions, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiOutputRestrictions + ) + + field(:notificationOutputRestrictions, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictions + ) + + field(:surfaceTypeString) + field(:movement, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiMovementCapabilities) + field(:sodaCapabilities, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSodaCapabilities) + + field(:surfaceIdentity, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceIdentity + ) + + field(:deviceId, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId) + field(:callCapabilities, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCallCapabilities) + field(:jwnCapabilities, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiJwnCapabilities) + field(:location, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLocationCapabilities) + field(:safetyRestrictions) + field(:screen, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilities) + + field(:communicationUiCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCommunicationUiCapabilities + ) + + field(:deviceUxMode) + field(:audioInput, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAudioInput) + field(:carUxRestrictions, type: :list) + + field(:contactLookupCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiContactLookupCapabilities + ) + + field(:androidIntentCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAndroidIntentCapabilities + ) + + field(:speechCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSpeechCapabilities + ) + + field(:popOnLockscreenCapability) + + field(:bluetoothCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiBluetoothCapabilities + ) + + field(:camera, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCameraCapabilities) + field(:hasVoiceTelephony) + + field(:messageCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiMessageCapabilities + ) + + field(:loggingOnlyData, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLoggingOnlyData) + field(:assistantCapability) + field(:audioOutput, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAudioOutput) + + field(:systemNotificationRestrictions, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictions + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDeviceCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiDeviceCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDeviceCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_duration.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_duration.ex new file mode 100644 index 0000000000..ac1e8a4826 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_duration.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiDuration do + @moduledoc """ + A Duration represents a signed, fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". It is related to Timestamp in that the difference between two Timestamp values is a Duration and it can be added or subtracted from a Timestamp. Range is approximately +-10,000 years. + + ## Attributes + + * `nanos` (*type:* `integer()`, *default:* `nil`) - Signed fractions of a second at nanosecond resolution of the span of time. Durations less than one second are represented with a 0 `seconds` field and a positive or negative `nanos` field. For durations of one second or more, a non-zero value for the `nanos` field must be of the same sign as the `seconds` field. Must be from -999,999,999 to +999,999,999 inclusive. + * `seconds` (*type:* `String.t`, *default:* `nil`) - Signed seconds of the span of time. Must be from -315,576,000,000 to +315,576,000,000 inclusive. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nanos => integer() | nil, + :seconds => String.t() | nil + } + + field(:nanos) + field(:seconds) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDuration do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiDuration.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDuration do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_feature_specific_action_support.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_feature_specific_action_support.ex new file mode 100644 index 0000000000..4072bfd49f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_feature_specific_action_support.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiFeatureSpecificActionSupport do + @moduledoc """ + + + ## Attributes + + * `clarificationDataSupported` (*type:* `boolean()`, *default:* `nil`) - Whether client supports clarification suggestion chip to be displayed see |assistant.suggestions.ClarificationData| + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clarificationDataSupported => boolean() | nil + } + + field(:clarificationDataSupported) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiFeatureSpecificActionSupport do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiFeatureSpecificActionSupport.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiFeatureSpecificActionSupport do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_fitness_feature_support.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_fitness_feature_support.ex new file mode 100644 index 0000000000..a27974d552 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_fitness_feature_support.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiFitnessFeatureSupport do + @moduledoc """ + + + ## Attributes + + * `supportedActivities` (*type:* `list(String.t)`, *default:* `nil`) - A list of fitness activity types supported by this client. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :supportedActivities => list(String.t()) | nil + } + + field(:supportedActivities, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiFitnessFeatureSupport do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiFitnessFeatureSupport.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiFitnessFeatureSupport do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_fluid_actions_support.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_fluid_actions_support.ex new file mode 100644 index 0000000000..c383fbed1d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_fluid_actions_support.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiFluidActionsSupport do + @moduledoc """ + + + ## Attributes + + * `stateSyncMethod` (*type:* `String.t`, *default:* `nil`) - Specifies the params proto that Fluid Actions uses to sync state with server. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :stateSyncMethod => String.t() | nil + } + + field(:stateSyncMethod) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiFluidActionsSupport do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiFluidActionsSupport.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiFluidActionsSupport do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_gacs_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_gacs_capabilities.ex new file mode 100644 index 0000000000..4248a281a3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_gacs_capabilities.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiGacsCapabilities do + @moduledoc """ + Capabilities of Google assistant conversation service(GACS) devices. These capabilites including supported GACS actions and response size limitations. + + ## Attributes + + * `deviceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t`, *default:* `nil`) - DeviceId of the accessory device (eg. watch) Commonly the go/dusi (eg. client_instance_id) is provided. + * `responseConfig` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ResponseConfig.t`, *default:* `nil`) - Configuration sent by device. + * `ttsEncoding` (*type:* `String.t`, *default:* `nil`) - DEPRECATED: Format of TTS audio requested by the device. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceId => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t() | nil, + :responseConfig => + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ResponseConfig.t() | nil, + :ttsEncoding => String.t() | nil + } + + field(:deviceId, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId) + + field(:responseConfig, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ResponseConfig + ) + + field(:ttsEncoding) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiGacsCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiGacsCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiGacsCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_gcm_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_gcm_capabilities.ex new file mode 100644 index 0000000000..9ae5cbf38c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_gcm_capabilities.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiGcmCapabilities do + @moduledoc """ + Capabilities related to GCM. + + ## Attributes + + * `gcmRegistrationId` (*type:* `String.t`, *default:* `nil`) - GCM registration id for the device. Used to pass messages to the device. + * `supportsAssistantGcm` (*type:* `boolean()`, *default:* `nil`) - Assistant supports GCM on the device. ClientOps can be sent to it over GCM and will be executed. + * `supportsClientInputOverGcm` (*type:* `boolean()`, *default:* `nil`) - If it is set to true, then it indicates to server that device is capable of receiving a GCM payload with serialized client input. The client input will be sent back to Assistant Server over conversation protocol. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gcmRegistrationId => String.t() | nil, + :supportsAssistantGcm => boolean() | nil, + :supportsClientInputOverGcm => boolean() | nil + } + + field(:gcmRegistrationId) + field(:supportsAssistantGcm) + field(:supportsClientInputOverGcm) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiGcmCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiGcmCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiGcmCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_gesture_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_gesture_capabilities.ex new file mode 100644 index 0000000000..577bc0ad68 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_gesture_capabilities.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiGestureCapabilities do + @moduledoc """ + The gesture capabilities related to Selina. Next ID: 4 + + ## Attributes + + * `gestureSensing` (*type:* `boolean()`, *default:* `nil`) - Whether Gesture is supported. When false, override the value for tap and omniswipe. + * `omniswipeGestureCapable` (*type:* `boolean()`, *default:* `nil`) - Whether omniswipe is supported + * `tapGestureCapable` (*type:* `boolean()`, *default:* `nil`) - Whether tap is supported + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gestureSensing => boolean() | nil, + :omniswipeGestureCapable => boolean() | nil, + :tapGestureCapable => boolean() | nil + } + + field(:gestureSensing) + field(:omniswipeGestureCapable) + field(:tapGestureCapable) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiGestureCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiGestureCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiGestureCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_guest_access_output.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_guest_access_output.ex new file mode 100644 index 0000000000..6447f3dff4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_guest_access_output.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiGuestAccessOutput do + @moduledoc """ + Access settings for guests. + + ## Attributes + + * `guestAccessOnYoutube` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :guestAccessOnYoutube => String.t() | nil + } + + field(:guestAccessOnYoutube) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiGuestAccessOutput do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiGuestAccessOutput.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiGuestAccessOutput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_immersive_canvas_support.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_immersive_canvas_support.ex new file mode 100644 index 0000000000..6a1540e9af --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_immersive_canvas_support.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiImmersiveCanvasSupport do + @moduledoc """ + + + ## Attributes + + * `confirmationMessageSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports confirmation messages in Immersive Canvas actions. + * `pauseSignalSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client support canvas pause signal. If true, the Assistant Server will send a signal when canvas transitioning to pause mode. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confirmationMessageSupported => boolean() | nil, + :pauseSignalSupported => boolean() | nil + } + + field(:confirmationMessageSupported) + field(:pauseSignalSupported) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiImmersiveCanvasSupport do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiImmersiveCanvasSupport.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiImmersiveCanvasSupport do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_jwn_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_jwn_capabilities.ex new file mode 100644 index 0000000000..37e3e9f6f8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_jwn_capabilities.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiJwnCapabilities do + @moduledoc """ + These capabilities are used to determine the jwn libraries and their versions that are present on the client. + + ## Attributes + + * `librariesVersionMap` (*type:* `map()`, *default:* `nil`) - The name and version of the jwn libraries currently stored on the client. These are the same that the server communicated when the library was first sent down. + * `supportedCompressionMode` (*type:* `list(String.t)`, *default:* `nil`) - Compression algorithms supported on the client. Server can choose one of these to compress WhatsNext Javascript programs and libraries. + * `supportsJwn` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports running jwn code. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :librariesVersionMap => map() | nil, + :supportedCompressionMode => list(String.t()) | nil, + :supportsJwn => boolean() | nil + } + + field(:librariesVersionMap, type: :map) + field(:supportedCompressionMode, type: :list) + field(:supportsJwn) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiJwnCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiJwnCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiJwnCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities.ex new file mode 100644 index 0000000000..4e98632823 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities.ex @@ -0,0 +1,68 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilities do + @moduledoc """ + Capabilities related to Lens Perception, i.e. image understanding. See go/loa-lens-device-capabilities. Next ID: 6 + + ## Attributes + + * `hasLensPerception` (*type:* `boolean()`, *default:* `nil`) - Whether the device supports Lens Perception. + * `isLensDirectIntentAvailable` (*type:* `boolean()`, *default:* `nil`) - Indicates whether Lens supports Lens Direct Intent (go/lensdirectintent). + * `isLensLiveViewfinderAvailable` (*type:* `boolean()`, *default:* `nil`) - Indicates whether Lens supports Live view-finder experience. + * `isLensPostCaptureAvailable` (*type:* `boolean()`, *default:* `nil`) - Indicates whether Lens supports Post-capture experience with an image payload. + * `lensCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilities.t`, *default:* `nil`) - Contains the capabilities that Lens can support. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :hasLensPerception => boolean() | nil, + :isLensDirectIntentAvailable => boolean() | nil, + :isLensLiveViewfinderAvailable => boolean() | nil, + :isLensPostCaptureAvailable => boolean() | nil, + :lensCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilities.t() + | nil + } + + field(:hasLensPerception) + field(:isLensDirectIntentAvailable) + field(:isLensLiveViewfinderAvailable) + field(:isLensPostCaptureAvailable) + + field(:lensCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilities + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities.ex new file mode 100644 index 0000000000..12f3253e26 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities.ex @@ -0,0 +1,101 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilities do + @moduledoc """ + The set of capabilities that Lens can support. This is the Assistant proto representation of Lens capabilities defined at j/c/g/android/apps/gsa/search/shared/service/proto/lens_service_event.proto Next ID: 7 + + ## Attributes + + * `dining` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesDining.t`, *default:* `nil`) - The presence of this message means that Dining is supported. + * `education` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesEducation.t`, *default:* `nil`) - The presence of this message means that Education is supported. + * `outdoor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesOutdoor.t`, *default:* `nil`) - The presence of this message means that Outdoor is supported. + * `shopping` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesShopping.t`, *default:* `nil`) - The presence of this message means that Shopping is supported. + * `text` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesText.t`, *default:* `nil`) - The presence of this message means that intenting directly into the text filter is supported. + * `translate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesTranslate.t`, *default:* `nil`) - The presence of this message means that Translation is supported. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dining => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesDining.t() + | nil, + :education => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesEducation.t() + | nil, + :outdoor => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesOutdoor.t() + | nil, + :shopping => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesShopping.t() + | nil, + :text => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesText.t() + | nil, + :translate => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesTranslate.t() + | nil + } + + field(:dining, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesDining + ) + + field(:education, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesEducation + ) + + field(:outdoor, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesOutdoor + ) + + field(:shopping, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesShopping + ) + + field(:text, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesText + ) + + field(:translate, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesTranslate + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_dining.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_dining.ex new file mode 100644 index 0000000000..8339486f6d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_dining.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesDining do + @moduledoc """ + Dining recognition capability. For example popular dishes on a given restaurant menu image. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesDining do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesDining.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesDining do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_education.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_education.ex new file mode 100644 index 0000000000..4d4637fcfd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_education.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesEducation do + @moduledoc """ + Education recognition capability. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesEducation do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesEducation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesEducation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_outdoor.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_outdoor.ex new file mode 100644 index 0000000000..05611e5c4c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_outdoor.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesOutdoor do + @moduledoc """ + Outdoor place recognition capability. For example recognizing storefronts. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesOutdoor do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesOutdoor.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesOutdoor do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_shopping.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_shopping.ex new file mode 100644 index 0000000000..dade6729fa --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_shopping.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesShopping do + @moduledoc """ + Shopping recognition capability. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesShopping do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesShopping.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesShopping do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_text.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_text.ex new file mode 100644 index 0000000000..7afb4ca2f4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_text.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesText do + @moduledoc """ + Text recognition capability. + + ## Attributes + + * `isTextToSpeechSupported` (*type:* `boolean()`, *default:* `nil`) - Indicates whether text-to-speech is supported. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isTextToSpeechSupported => boolean() | nil + } + + field(:isTextToSpeechSupported) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesText do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesText.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesText do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_translate.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_translate.ex new file mode 100644 index 0000000000..fbc9f2606e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_lens_perception_capabilities_lens_capabilities_translate.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesTranslate do + @moduledoc """ + Translation capability. + + ## Attributes + + * `supportedLanguageTags` (*type:* `list(String.t)`, *default:* `nil`) - The list of language IETF BCP 47 tags that are supported. See the full details in the comment on the equivalent field in: http://google3/java/com/google/android/apps/gsa/search/shared/service/proto/lens_service_event.proto;l=55;rcl=355512559 + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :supportedLanguageTags => list(String.t()) | nil + } + + field(:supportedLanguageTags, type: :list) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesTranslate do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesTranslate.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLensPerceptionCapabilitiesLensCapabilitiesTranslate do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_live_tv_channel_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_live_tv_channel_capabilities.ex new file mode 100644 index 0000000000..e4d9661a44 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_live_tv_channel_capabilities.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilities do + @moduledoc """ + + + ## Attributes + + * `channelsByProvider` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilitiesChannelsByProvider.t)`, *default:* `nil`) - A list of channel providers each of which provides a list of its channels. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :channelsByProvider => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilitiesChannelsByProvider.t() + ) + | nil + } + + field(:channelsByProvider, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilitiesChannelsByProvider, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_live_tv_channel_capabilities_channels_by_provider.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_live_tv_channel_capabilities_channels_by_provider.ex new file mode 100644 index 0000000000..80378ac27a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_live_tv_channel_capabilities_channels_by_provider.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilitiesChannelsByProvider do + @moduledoc """ + + + ## Attributes + + * `channels` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilitiesLiveTvChannel.t)`, *default:* `nil`) - A list of channels provided by this input. Keep the performance impact in mind when the number/size of the channels is large. When there are too many channels, consider stripping out some data. + * `inputId` (*type:* `String.t`, *default:* `nil`) - An identifier to identify the input source. For example for TIF based channels, this will be the TIF input ID to differentiate different tuner apps. See https://source.android.com/devices/tv + * `providerType` (*type:* `String.t`, *default:* `nil`) - Type of provider who provides this channel input. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :channels => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilitiesLiveTvChannel.t() + ) + | nil, + :inputId => String.t() | nil, + :providerType => String.t() | nil + } + + field(:channels, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilitiesLiveTvChannel, + type: :list + ) + + field(:inputId) + field(:providerType) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilitiesChannelsByProvider do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilitiesChannelsByProvider.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilitiesChannelsByProvider do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_live_tv_channel_capabilities_live_tv_channel.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_live_tv_channel_capabilities_live_tv_channel.ex new file mode 100644 index 0000000000..164b524d7c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_live_tv_channel_capabilities_live_tv_channel.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilitiesLiveTvChannel do + @moduledoc """ + + + ## Attributes + + * `channelId` (*type:* `String.t`, *default:* `nil`) - Unique channel identifier. + * `channelName` (*type:* `list(String.t)`, *default:* `nil`) - A list of channel names and synonyms. + * `channelNumber` (*type:* `String.t`, *default:* `nil`) - Channel number displayed to user. Optional. + * `deeplink` (*type:* `String.t`, *default:* `nil`) - A deep link into the Live player app that tunes to this channel. + * `mid` (*type:* `String.t`, *default:* `nil`) - KG mid of the channel if it exists in KG. + * `networkMid` (*type:* `String.t`, *default:* `nil`) - Network KG mid of the channel if it exists in KG + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :channelId => String.t() | nil, + :channelName => list(String.t()) | nil, + :channelNumber => String.t() | nil, + :deeplink => String.t() | nil, + :mid => String.t() | nil, + :networkMid => String.t() | nil + } + + field(:channelId) + field(:channelName, type: :list) + field(:channelNumber) + field(:deeplink) + field(:mid) + field(:networkMid) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilitiesLiveTvChannel do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilitiesLiveTvChannel.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilitiesLiveTvChannel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_live_tv_provider.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_live_tv_provider.ex new file mode 100644 index 0000000000..985103db0a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_live_tv_provider.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvProvider do + @moduledoc """ + + + ## Attributes + + * `providerInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider.t`, *default:* `nil`) - Contains detailed provider information such as android app package name. + * `providerKey` (*type:* `String.t`, *default:* `nil`) - A provider enum string for OTT providers. The available key can be found in go/ump-provider-enum For Tuner provider, the provider key would be an ID the tuner app uploaded from TIF. See https://source.android.com/devices/tv + * `providerType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :providerInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider.t() | nil, + :providerKey => String.t() | nil, + :providerType => String.t() | nil + } + + field(:providerInfo, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider) + field(:providerKey) + field(:providerType) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvProvider do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvProvider.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvProvider do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_location_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_location_capabilities.ex new file mode 100644 index 0000000000..29bc572fbc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_location_capabilities.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiLocationCapabilities do + @moduledoc """ + + + ## Attributes + + * `gpsAvailable` (*type:* `boolean()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gpsAvailable => boolean() | nil + } + + field(:gpsAvailable) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLocationCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLocationCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLocationCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_logging_only_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_logging_only_data.ex new file mode 100644 index 0000000000..7a9447f956 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_logging_only_data.ex @@ -0,0 +1,91 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiLoggingOnlyData do + @moduledoc """ + Data which is produced for logging and debugging. Servers MUST NOT use this for any other purposes, such as branching on it. Next ID: 16 + + ## Attributes + + * `acpVersion` (*type:* `String.t`, *default:* `nil`) - A user-readable string describing the ACP version (go/acp-version) of the client app used by the user to originate the conversation. + * `androidId` (*type:* `String.t`, *default:* `nil`) - Random identifier assigned to Android mobile devices. Older logs may have previously stored other kinds of android IDs in this field, but all current logs should use the GServices Id. See go/androidids. + * `appVersion` (*type:* `String.t`, *default:* `nil`) - A user-readable string describing the version of the client app used by the user to originate the conversation. + * `assistantSettingsSource` (*type:* `String.t`, *default:* `nil`) - An enum specifying when was this ATV AssistantSettings entry initially created. + * `boardName` (*type:* `String.t`, *default:* `nil`) - The type of board used by manufacturer for this device + * `boardRevision` (*type:* `String.t`, *default:* `nil`) - The revision of board used + * `castAssistantSettingLinkingResult` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCastAssistantSettingLinkingResult.t`, *default:* `nil`) - This field records the linking status between Assistant setting entry and Cast setting entry. Currently only ATV surface populates this field for profiling purpose. + * `deviceModel` (*type:* `String.t`, *default:* `nil`) - A user-readable string describing the device's hardware platform. + * `embedderBuildInfo` (*type:* `String.t`, *default:* `nil`) - Any relevant info concerning the build options of the embedder (that is the software which runs as the 'driver' of an Assistant library, such as libassistant. the embedder is typically built by a third party) + * `initialAppVersion` (*type:* `String.t`, *default:* `nil`) - A string recording the app version that is initially used to created this settings entry. + * `isPrimaryUser` (*type:* `boolean()`, *default:* `nil`) - Boolean field to indicate whether a certain user is the primary user of a device or not. This is useful for distinguishing the user0 from other users given user0 might have certain privileges (Eg: Hubmode on Tangor) + * `mdnsDisplayName` (*type:* `String.t`, *default:* `nil`) - default display name of device over mdns. This is specified at the factory, not specified by the user. + * `platformBuild` (*type:* `String.t`, *default:* `nil`) - A user-readable string describing the device's software platform. + * `virtualReleaseChannel` (*type:* `String.t`, *default:* `nil`) - A string describing device's release channel. For cast devices, the string will look like "qa-beta-channel", "eng-no-update", etc. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :acpVersion => String.t() | nil, + :androidId => String.t() | nil, + :appVersion => String.t() | nil, + :assistantSettingsSource => String.t() | nil, + :boardName => String.t() | nil, + :boardRevision => String.t() | nil, + :castAssistantSettingLinkingResult => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCastAssistantSettingLinkingResult.t() + | nil, + :deviceModel => String.t() | nil, + :embedderBuildInfo => String.t() | nil, + :initialAppVersion => String.t() | nil, + :isPrimaryUser => boolean() | nil, + :mdnsDisplayName => String.t() | nil, + :platformBuild => String.t() | nil, + :virtualReleaseChannel => String.t() | nil + } + + field(:acpVersion) + field(:androidId) + field(:appVersion) + field(:assistantSettingsSource) + field(:boardName) + field(:boardRevision) + + field(:castAssistantSettingLinkingResult, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCastAssistantSettingLinkingResult + ) + + field(:deviceModel) + field(:embedderBuildInfo) + field(:initialAppVersion) + field(:isPrimaryUser) + field(:mdnsDisplayName) + field(:platformBuild) + field(:virtualReleaseChannel) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLoggingOnlyData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLoggingOnlyData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLoggingOnlyData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_media_control_support.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_media_control_support.ex new file mode 100644 index 0000000000..a887c3bdd1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_media_control_support.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiMediaControlSupport do + @moduledoc """ + + + ## Attributes + + * `skipConfirmationsWhilePlaying` (*type:* `boolean()`, *default:* `nil`) - Whether to prevent confirmations (text, tts) for media control actions while media is playing so that the media session is not interrupted. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :skipConfirmationsWhilePlaying => boolean() | nil + } + + field(:skipConfirmationsWhilePlaying) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiMediaControlSupport do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiMediaControlSupport.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiMediaControlSupport do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_message_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_message_capabilities.ex new file mode 100644 index 0000000000..7e01c974f0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_message_capabilities.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiMessageCapabilities do + @moduledoc """ + + + ## Attributes + + * `fallbackToTetheredDeviceAppCapabilities` (*type:* `boolean()`, *default:* `nil`) - If true, APP_ID queries initiated by this device should fall back to execution on the tethered device if it's available and if the primary device cannot perform the action (e.g. due to the app not being installed). + * `preferTargetingPrimaryDevice` (*type:* `boolean()`, *default:* `nil`) - For chat_message.SEND targeting, when either the primary or secondary (tethered) device is capable of handling the chat_message.SEND action, prefer targeting it to the primary device. + * `supportedRecipientTypes` (*type:* `list(String.t)`, *default:* `nil`) - Should only be checked if nonempty. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fallbackToTetheredDeviceAppCapabilities => boolean() | nil, + :preferTargetingPrimaryDevice => boolean() | nil, + :supportedRecipientTypes => list(String.t()) | nil + } + + field(:fallbackToTetheredDeviceAppCapabilities) + field(:preferTargetingPrimaryDevice) + field(:supportedRecipientTypes, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiMessageCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiMessageCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiMessageCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_movement_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_movement_capabilities.ex new file mode 100644 index 0000000000..26aec88628 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_movement_capabilities.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiMovementCapabilities do + @moduledoc """ + + + ## Attributes + + * `mobility` (*type:* `String.t`, *default:* `nil`) - Indicates how much the device moves around. E.g., TV has a low mobility level, while Auto has a very high level. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :mobility => String.t() | nil + } + + field(:mobility) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiMovementCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiMovementCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiMovementCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_notification_output_restrictions.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_notification_output_restrictions.ex new file mode 100644 index 0000000000..5b00683442 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_notification_output_restrictions.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictions do + @moduledoc """ + + + ## Attributes + + * `optOutState` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutState.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :optOutState => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutState.t() + | nil + } + + field(:optOutState, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutState + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_notification_output_restrictions_opt_out_state.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_notification_output_restrictions_opt_out_state.ex new file mode 100644 index 0000000000..62fc71f5d6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_notification_output_restrictions_opt_out_state.ex @@ -0,0 +1,71 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutState do + @moduledoc """ + Per category/category group notification opt out settings. + + ## Attributes + + * `categoryGroupState` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutStateCategoryGroupState.t)`, *default:* `nil`) - + * `categoryState` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutStateCategoryState.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :categoryGroupState => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutStateCategoryGroupState.t() + ) + | nil, + :categoryState => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutStateCategoryState.t() + ) + | nil + } + + field(:categoryGroupState, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutStateCategoryGroupState, + type: :list + ) + + field(:categoryState, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutStateCategoryState, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutState do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutState.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutState do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_notification_output_restrictions_opt_out_state_category_group_state.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_notification_output_restrictions_opt_out_state_category_group_state.ex new file mode 100644 index 0000000000..3251d12475 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_notification_output_restrictions_opt_out_state_category_group_state.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutStateCategoryGroupState do + @moduledoc """ + + + ## Attributes + + * `categoryGroup` (*type:* `String.t`, *default:* `nil`) - + * `state` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :categoryGroup => String.t() | nil, + :state => String.t() | nil + } + + field(:categoryGroup) + field(:state) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutStateCategoryGroupState do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutStateCategoryGroupState.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutStateCategoryGroupState do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_notification_output_restrictions_opt_out_state_category_state.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_notification_output_restrictions_opt_out_state_category_state.ex new file mode 100644 index 0000000000..ea9f23fc1f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_notification_output_restrictions_opt_out_state_category_state.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutStateCategoryState do + @moduledoc """ + + + ## Attributes + + * `category` (*type:* `String.t`, *default:* `nil`) - + * `state` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :category => String.t() | nil, + :state => String.t() | nil + } + + field(:category) + field(:state) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutStateCategoryState do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutStateCategoryState.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiNotificationOutputRestrictionsOptOutStateCategoryState do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_oem_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_oem_capabilities.ex new file mode 100644 index 0000000000..bc9e06e8eb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_oem_capabilities.ex @@ -0,0 +1,78 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiOemCapabilities do + @moduledoc """ + Encapsulates the action capabilities of the OEM device. This data is merged from Device Model lookup, per-device registration, and per-request context. This data is sent to NLU layer for query understanding. + + ## Attributes + + * `cloudCapability` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudCapability.t`, *default:* `nil`) - The OEM Cloud execution capability of this device, containing routing details for cloud fulfillment. + * `cloudDeviceCapabilities` (*type:* `map()`, *default:* `nil`) - If fulfillment is done via 3P cloud and 3P supports device capabilities, this field will be set. + * `deviceModelId` (*type:* `String.t`, *default:* `nil`) - Device Model Id from DeviceModelPackage. + * `deviceModelRevisionId` (*type:* `String.t`, *default:* `nil`) - Device Model Revision Id from DeviceModelPackage. + * `deviceSpecificData` (*type:* `String.t`, *default:* `nil`) - Opaque supported action data related to a specific domain of devices, for example for car. go/car-talk-registration-model + * `internalCapability` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInternalCapability.t`, *default:* `nil`) - Internal-only config containing metadata about the Device Model, for example to control the ranking behavior. + * `thirdPartyActionConfig` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyActionConfig.t`, *default:* `nil`) - 3P Action Metadata, populated from the Device Model lookup and the client request parameters. For example, an Assistant SDK request would have the billed project id of the Assistant request added here in order to enable any Device Actions developed using the same Google Cloud project. This data is sent to Service Engine to mask triggering for Device Actions. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudCapability => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudCapability.t() + | nil, + :cloudDeviceCapabilities => map() | nil, + :deviceModelId => String.t() | nil, + :deviceModelRevisionId => String.t() | nil, + :deviceSpecificData => String.t() | nil, + :internalCapability => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInternalCapability.t() + | nil, + :thirdPartyActionConfig => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyActionConfig.t() | nil + } + + field(:cloudCapability, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudCapability + ) + + field(:cloudDeviceCapabilities, type: :map) + field(:deviceModelId) + field(:deviceModelRevisionId) + field(:deviceSpecificData) + + field(:internalCapability, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInternalCapability + ) + + field(:thirdPartyActionConfig, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyActionConfig + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiOemCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiOemCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiOemCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_on_device_assistant_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_on_device_assistant_capabilities.ex new file mode 100644 index 0000000000..429b34f7ef --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_on_device_assistant_capabilities.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceAssistantCapabilities do + @moduledoc """ + Definitions of on-device assistant capabilities. + + ## Attributes + + * `isLocalNetworkArbitrationSupported` (*type:* `boolean()`, *default:* `nil`) - Capabilities related to local network arbitration (go/local-network-arbitration). Indicates if the device is capable of being a host device in the LAN whiling doing local network arbitration. + * `isOnDeviceArbitrationSupported` (*type:* `boolean()`, *default:* `nil`) - Capabilities related to on-device arbitration(go/arbitration-on-device). + * `isOnDeviceAssistantSupported` (*type:* `boolean()`, *default:* `nil`) - Indicates if on-device assistant is enabled on this device. Example usecases: NGA (go/nga) or Marble (go/marble). + * `isOnDeviceUnderstandingSupported` (*type:* `boolean()`, *default:* `nil`) - This may be used by NGA. E.g. if understanding happens on device, we can have more aggressive logic when fulfilling some features on the server side, like teleport. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isLocalNetworkArbitrationSupported => boolean() | nil, + :isOnDeviceArbitrationSupported => boolean() | nil, + :isOnDeviceAssistantSupported => boolean() | nil, + :isOnDeviceUnderstandingSupported => boolean() | nil + } + + field(:isLocalNetworkArbitrationSupported) + field(:isOnDeviceArbitrationSupported) + field(:isOnDeviceAssistantSupported) + field(:isOnDeviceUnderstandingSupported) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceAssistantCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceAssistantCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceAssistantCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_on_device_smart_home_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_on_device_smart_home_capabilities.ex new file mode 100644 index 0000000000..774f0cec09 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_on_device_smart_home_capabilities.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceSmartHomeCapabilities do + @moduledoc """ + Definitions of on-device Smart Home capabilities. Next ID: 2 + + ## Attributes + + * `isOnDeviceSmartHomeSupported` (*type:* `boolean()`, *default:* `nil`) - Master bit for on-device Smart Home features. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isOnDeviceSmartHomeSupported => boolean() | nil + } + + field(:isOnDeviceSmartHomeSupported) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceSmartHomeCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceSmartHomeCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceSmartHomeCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_on_device_storage_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_on_device_storage_capabilities.ex new file mode 100644 index 0000000000..23a7c5a645 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_on_device_storage_capabilities.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceStorageCapabilities do + @moduledoc """ + The on-device storage capabilities found on the device. + + ## Attributes + + * `isSupported` (*type:* `boolean()`, *default:* `nil`) - Determines if an on-device storage is supported. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isSupported => boolean() | nil + } + + field(:isSupported) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceStorageCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceStorageCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceStorageCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_output_restrictions.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_output_restrictions.ex new file mode 100644 index 0000000000..6be02bdb31 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_output_restrictions.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiOutputRestrictions do + @moduledoc """ + These are user configurable permissions representing what the device is allowed to output. Next ID: 11 + + ## Attributes + + * `googlePhotoContent` (*type:* `String.t`, *default:* `nil`) - The type of Google Photo content which the device can output. + * `guestAccessOutput` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiGuestAccessOutput.t`, *default:* `nil`) - Access settings for guests. + * `personalData` (*type:* `String.t`, *default:* `nil`) - The level of personal data which the device can output. See go/personal-readout for detail. + * `proactiveNotificationOutput` (*type:* `String.t`, *default:* `nil`) - This controls if the server can proactively send notification to users, and it does not affect scenarios that users ask for information. The notification may include TTS and lights. It could be only lights for chirp. + * `proactiveOutput` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiProactiveOutput.t`, *default:* `nil`) - Restrictions on displaying and interacting with content on proactive surfaces (e.g. Dragonglass home screen). Note: NEVER access this field of OutputRestrictions directly, use the code in assistant/assistant_server/settings/device/device_settings_util.h instead. + * `youtubeAutoplayRestriction` (*type:* `String.t`, *default:* `nil`) - Whether YouTube autoplay is allowed for queries from the user to this device. See go/assistant-youtube-settings for details. + * `youtubeContent` (*type:* `String.t`, *default:* `nil`) - The type of YouTube content which the device can output. + * `youtubeTvContent` (*type:* `String.t`, *default:* `nil`) - The type of YouTube TV content which the device can output. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :googlePhotoContent => String.t() | nil, + :guestAccessOutput => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiGuestAccessOutput.t() | nil, + :personalData => String.t() | nil, + :proactiveNotificationOutput => String.t() | nil, + :proactiveOutput => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiProactiveOutput.t() | nil, + :youtubeAutoplayRestriction => String.t() | nil, + :youtubeContent => String.t() | nil, + :youtubeTvContent => String.t() | nil + } + + field(:googlePhotoContent) + field(:guestAccessOutput, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiGuestAccessOutput) + field(:personalData) + field(:proactiveNotificationOutput) + field(:proactiveOutput, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiProactiveOutput) + field(:youtubeAutoplayRestriction) + field(:youtubeContent) + field(:youtubeTvContent) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiOutputRestrictions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiOutputRestrictions.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiOutputRestrictions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_proactive_output.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_proactive_output.ex new file mode 100644 index 0000000000..ed35808847 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_proactive_output.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiProactiveOutput do + @moduledoc """ + Next ID: 7 + + ## Attributes + + * `allowAllPersonalData` (*type:* `boolean()`, *default:* `nil`) - Allows displaying all personal data on proactive surfaces with no face match capability. + * `androidTvAssistantSettingsSource` (*type:* `String.t`, *default:* `nil`) - For ANDROID_TV devices, the location that this setting was last changed from. Note: this structure allows to extend to more per-vertical bits in the future. + * `healthAndFitnessProactive` (*type:* `String.t`, *default:* `nil`) - Allows displaying Health and Fitness content on proactive surfaces. This is a sub bit of the device-wide PR bit - the device-wide PR bit must be enabled AND this vertical sub bit must be enabled for H&F content to be shown. This bit will be available on all surfaces that have the proactive-bit enabled. If the proactive-bit is not enabled, then we do not show health and fitness content at all (or even allow access to this setting). + * `photosProactive` (*type:* `String.t`, *default:* `nil`) - Allows displaying photos content on Dragonglass proactive surfaces. This is a sub bit of the device-wide PR bit - the device-wide PR bit must be enabled AND this vertical sub bit must be enabled for photos content to be shown on Dragonglass surfaces. This bit will be available on all Dragonglass surfaces that have the proactive-bit enabled. If the proactive-bit is not enabled or it's not a Dragonglass surface, then we do not show proactive photos content at all, nor allow access to this setting. See go/opa-photos-sg-settings for more details. + * `userMatchProactive` (*type:* `String.t`, *default:* `nil`) - Settings for displaying personal data on proactive surfaces with face match capability. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowAllPersonalData => boolean() | nil, + :androidTvAssistantSettingsSource => String.t() | nil, + :healthAndFitnessProactive => String.t() | nil, + :photosProactive => String.t() | nil, + :userMatchProactive => String.t() | nil + } + + field(:allowAllPersonalData) + field(:androidTvAssistantSettingsSource) + field(:healthAndFitnessProactive) + field(:photosProactive) + field(:userMatchProactive) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiProactiveOutput do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiProactiveOutput.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiProactiveOutput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_protobuf.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_protobuf.ex new file mode 100644 index 0000000000..d068e4e6b1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_protobuf.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiProtobuf do + @moduledoc """ + Also known as "Extensions Without Extensions" or "The Poor Man's Any", this simple proto is used to transmit arbitrary protocol buffers over the wire. Unlike extensions: - It does not require the proto type to be compiled into the binary. (Useful so that the proto declaration can be inside the conversation package) - It is compatible with all versions of proto, including proto3 and the wack-tastic version used on ChromecastOS. Server libraries for dealing with it live in google3/assistant/protocol/protobuf_lib.h. + + ## Attributes + + * `protobufData` (*type:* `String.t`, *default:* `nil`) - The serialized protocol buffer. + * `protobufType` (*type:* `String.t`, *default:* `nil`) - The type of the protocol buffer to use. This must be a resolvable name (Namespace.ProtoName) and refer to a proto which is either compiled in to both client and server (e.g. a base proto type) or to one which is part of the conversation package. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :protobufData => String.t() | nil, + :protobufType => String.t() | nil + } + + field(:protobufData) + field(:protobufType) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiProtobuf do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiProtobuf.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiProtobuf do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_recurrence.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_recurrence.ex new file mode 100644 index 0000000000..fbb1fbcf28 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_recurrence.ex @@ -0,0 +1,76 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiRecurrence do + @moduledoc """ + Date-based recurrences specify repeating events. Conceptually, a recurrence is a (possibly unbounded) sequence of dates on which an event falls, described by a list of constraints. A date is in a recurrence if and only if it satisfies all of the constraints. Note that devices may support some constraints, but not all. + + ## Attributes + + * `begin` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiDate.t`, *default:* `nil`) - The first day of the recurrence. If begin is not set, then the reminder will start infinitely in the past. + * `blacklistedRanges` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTimeRange.t)`, *default:* `nil`) - A list of blacklisted dates to skip the alarm on. + * `dayOfMonth` (*type:* `list(integer())`, *default:* `nil`) - Specifies the date in a month. For example, if day_of_month is 15, then it represent the 15th day of the specified month. + * `dayOfWeek` (*type:* `list(integer())`, *default:* `nil`) - Specifies a weekly or daily recurrence. Constraint: The date falls on one of these days of the week, in 0...6 (Sunday...Saturday). + * `end` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiDate.t`, *default:* `nil`) - The last day of the recurrence. + * `every` (*type:* `integer()`, *default:* `nil`) - Multiplier on the frequency of the recurrence. Use this to specify patterns that recur every X days, months, years, etc. Example: [remind me to call mom every 2nd week]. Default is 1 (every day, every month, every year). + * `monthOfYear` (*type:* `list(integer())`, *default:* `nil`) - Specifies the month in a year. Constrain: the month falls on one of these months, in 1, 2, ... 12 (January...December). + * `numOccurrences` (*type:* `integer()`, *default:* `nil`) - The number of occurrences after which the recurrence should end. + * `weekOfMonth` (*type:* `list(integer())`, *default:* `nil`) - Specifies the index of week in a month. For example, the second Tuesday every month, in this case, week_of_month should be 2. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :begin => GoogleApi.ContentWarehouse.V1.Model.AssistantApiDate.t() | nil, + :blacklistedRanges => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTimeRange.t()) | nil, + :dayOfMonth => list(integer()) | nil, + :dayOfWeek => list(integer()) | nil, + :end => GoogleApi.ContentWarehouse.V1.Model.AssistantApiDate.t() | nil, + :every => integer() | nil, + :monthOfYear => list(integer()) | nil, + :numOccurrences => integer() | nil, + :weekOfMonth => list(integer()) | nil + } + + field(:begin, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDate) + + field(:blacklistedRanges, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDateTimeRange, + type: :list + ) + + field(:dayOfMonth, type: :list) + field(:dayOfWeek, type: :list) + field(:end, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDate) + field(:every) + field(:monthOfYear, type: :list) + field(:numOccurrences) + field(:weekOfMonth, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiRecurrence do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiRecurrence.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiRecurrence do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_screen_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_screen_capabilities.ex new file mode 100644 index 0000000000..af785b82d7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_screen_capabilities.ex @@ -0,0 +1,84 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilities do + @moduledoc """ + These capabilities represent the tactile features associated with the device. This includes, for example, whether the device has a screen, how big the screen is, and privacy of the screen. Next ID: 11 + + ## Attributes + + * `fontScaleFactor` (*type:* `number()`, *default:* `nil`) - The scale factor used to convert Scalable Pixel (SP) units to Density-independent Pixel (DP) units (DP = SP * scale factor). Fonts are measured in units of SP, and on some platforms such as Android the SP to DP scale factor can be affected by the font size a user selects in accessibility settings. + * `inputType` (*type:* `list(String.t)`, *default:* `nil`) - The types of input that this screen supports. Note that this can be empty in which case the screen's input type is unknown. + * `mask` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesMask.t`, *default:* `nil`) - Mask defined for this device, if any. + * `protoLayoutTargetedSchema` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesProtoLayoutVersion.t`, *default:* `nil`) - The targeted schema version for ProtoLayout requests. + * `resolution` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesResolution.t`, *default:* `nil`) - If this field is absent, the resolution of the screen is unknown. + * `screenOff` (*type:* `boolean()`, *default:* `nil`) - If screen is turned off. + * `screenStateDetection` (*type:* `String.t`, *default:* `nil`) - The ability of the client to correctly report screen state. + * `supportedRenderingFormat` (*type:* `String.t`, *default:* `nil`) - The primary supported rendering format for display on the device's screen. This may be used to determine what format of card to be returned when rendering cards. + * `supportedScreenStates` (*type:* `list(String.t)`, *default:* `nil`) - The screen states that the client supports. The current screen state is specified in DeviceProperties.screen. + * `visionHelpEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether the device enabled vision help features in accessibility settings. The settings is config in Assistant App and on-device settings, and stored in footprints. When enabled, font, color and TTS will be adjusted. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fontScaleFactor => number() | nil, + :inputType => list(String.t()) | nil, + :mask => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesMask.t() | nil, + :protoLayoutTargetedSchema => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesProtoLayoutVersion.t() + | nil, + :resolution => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesResolution.t() | nil, + :screenOff => boolean() | nil, + :screenStateDetection => String.t() | nil, + :supportedRenderingFormat => String.t() | nil, + :supportedScreenStates => list(String.t()) | nil, + :visionHelpEnabled => boolean() | nil + } + + field(:fontScaleFactor) + field(:inputType, type: :list) + field(:mask, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesMask) + + field(:protoLayoutTargetedSchema, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesProtoLayoutVersion + ) + + field(:resolution, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesResolution + ) + + field(:screenOff) + field(:screenStateDetection) + field(:supportedRenderingFormat) + field(:supportedScreenStates, type: :list) + field(:visionHelpEnabled) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_screen_capabilities_mask.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_screen_capabilities_mask.ex new file mode 100644 index 0000000000..804dba5e18 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_screen_capabilities_mask.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesMask do + @moduledoc """ + A mask applied to the screen's pixel space to determine regions not visible on the physical device. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesMask do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesMask.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesMask do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_screen_capabilities_proto_layout_version.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_screen_capabilities_proto_layout_version.ex new file mode 100644 index 0000000000..782552b63d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_screen_capabilities_proto_layout_version.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesProtoLayoutVersion do + @moduledoc """ + Version info for ProtoLayout requests. + + ## Attributes + + * `major` (*type:* `integer()`, *default:* `nil`) - + * `minor` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :major => integer() | nil, + :minor => integer() | nil + } + + field(:major) + field(:minor) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesProtoLayoutVersion do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesProtoLayoutVersion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesProtoLayoutVersion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_screen_capabilities_resolution.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_screen_capabilities_resolution.ex new file mode 100644 index 0000000000..9d6ebcecf5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_screen_capabilities_resolution.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesResolution do + @moduledoc """ + A Resolution proto indicates the size of the application window. All fields are required. + + ## Attributes + + * `dpi` (*type:* `integer()`, *default:* `nil`) - Dots (pixels) per inch of the screen. + * `heightPx` (*type:* `integer()`, *default:* `nil`) - + * `mSize` (*type:* `integer()`, *default:* `nil`) - m_size is the smallest square box size to display a capital letter M so that the user can still easily understand it. + * `nengSize` (*type:* `integer()`, *default:* `nil`) - neng_size is the smallest square box size to display a letter 螚 (Neng, U+879A) so that the user can easily understand it. (Neng is a visually dense Chinese letter, and so may require a larger box than an M.) + * `widthPx` (*type:* `integer()`, *default:* `nil`) - The dimensions of the application window, in pixels. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dpi => integer() | nil, + :heightPx => integer() | nil, + :mSize => integer() | nil, + :nengSize => integer() | nil, + :widthPx => integer() | nil + } + + field(:dpi) + field(:heightPx) + field(:mSize) + field(:nengSize) + field(:widthPx) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesResolution do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesResolution.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiScreenCapabilitiesResolution do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_selina_capabilites.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_selina_capabilites.ex new file mode 100644 index 0000000000..ebe742d5bf --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_selina_capabilites.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSelinaCapabilites do + @moduledoc """ + The Soli capabilities on Elaine, including gestures and sleep sensing. go/dingo-dc-software Next ID: 4 + + ## Attributes + + * `gestureCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiGestureCapabilities.t`, *default:* `nil`) - A list of gestures that selina supports + * `selinaSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports selina. + * `sleepSensingSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client can monitor sleep. This allows us to show sleep CUJ related information: go/TwilightDesign + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gestureCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiGestureCapabilities.t() | nil, + :selinaSupported => boolean() | nil, + :sleepSensingSupported => boolean() | nil + } + + field(:gestureCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiGestureCapabilities + ) + + field(:selinaSupported) + field(:sleepSensingSupported) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSelinaCapabilites do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSelinaCapabilites.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSelinaCapabilites do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_ambient_settings.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_ambient_settings.ex new file mode 100644 index 0000000000..5c4d0cb53a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_ambient_settings.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAmbientSettings do + @moduledoc """ + + + ## Attributes + + * `anyUserHasSetPersonalPhotos` (*type:* `boolean()`, *default:* `nil`) - Whether any user sets personal photos on this device. See go/ambient-setting-in-assistant-design. + * `recentHighlightsEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether or not the user's current selection for their ambient photo frame includes the auto-generated "Recent Highlights" album. This is used to determine which users to display the go/opa-photos-memories-tile. See go/opa-photo-memories-imax-optin for more discussion on why this bit was created. + * `showPersonalPhotoData` (*type:* `boolean()`, *default:* `nil`) - Whether to enable the personal photo data in the ambient settings: https://screenshot.googleplex.com/Wd4OFkQfOyF See go/opa-photos-ambient-location-date-dd#heading=h.5x4iaouuiett for explanation. + * `showPersonalPhotos` (*type:* `boolean()`, *default:* `nil`) - Whether current user sets personal photos on this device. See go/ambient-setting-in-assistant-design. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :anyUserHasSetPersonalPhotos => boolean() | nil, + :recentHighlightsEnabled => boolean() | nil, + :showPersonalPhotoData => boolean() | nil, + :showPersonalPhotos => boolean() | nil + } + + field(:anyUserHasSetPersonalPhotos) + field(:recentHighlightsEnabled) + field(:showPersonalPhotoData) + field(:showPersonalPhotos) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAmbientSettings do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAmbientSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAmbientSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_app_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_app_capabilities.ex new file mode 100644 index 0000000000..69accc42c5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_app_capabilities.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAppCapabilities do + @moduledoc """ + These capabilities are associated with Assistant Settings on devices. + + ## Attributes + + * `carSettingsCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCarSettingsCapabilities.t`, *default:* `nil`) - Capabilities that are associated with Assistant Settings on auto surfaces. + * `reissueQueryAfterMusicSetup` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports reissuing query after setting up in Music Settings. + * `supportsPaymentsSettingsUpdate` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports updating payments setting. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :carSettingsCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCarSettingsCapabilities.t() | nil, + :reissueQueryAfterMusicSetup => boolean() | nil, + :supportsPaymentsSettingsUpdate => boolean() | nil + } + + field(:carSettingsCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCarSettingsCapabilities + ) + + field(:reissueQueryAfterMusicSetup) + field(:supportsPaymentsSettingsUpdate) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAppCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAppCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAppCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_auto_framing_settings.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_auto_framing_settings.ex new file mode 100644 index 0000000000..d38688aba9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_auto_framing_settings.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAutoFramingSettings do + @moduledoc """ + Settings pertaining to auto framing. See go/auto-framing-presentation. + + ## Attributes + + * `isAutoFramingEnabled` (*type:* `boolean()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isAutoFramingEnabled => boolean() | nil + } + + field(:isAutoFramingEnabled) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAutoFramingSettings do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAutoFramingSettings.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAutoFramingSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_carrier_call_device_settings.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_carrier_call_device_settings.ex new file mode 100644 index 0000000000..b8c932b902 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_carrier_call_device_settings.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsCarrierCallDeviceSettings do + @moduledoc """ + Carrier related call settings on the device. + + ## Attributes + + * `allowIncomingCalls` (*type:* `boolean()`, *default:* `nil`) - Whether this device is allowed to receive incoming PSTN calls. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowIncomingCalls => boolean() | nil + } + + field(:allowIncomingCalls) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsCarrierCallDeviceSettings do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsCarrierCallDeviceSettings.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsCarrierCallDeviceSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_communications_filter.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_communications_filter.ex new file mode 100644 index 0000000000..8c25a5cb0d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_communications_filter.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsCommunicationsFilter do + @moduledoc """ + Specification of which communication features can be used. + + ## Attributes + + * `state` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :state => String.t() | nil + } + + field(:state) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsCommunicationsFilter do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsCommunicationsFilter.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsCommunicationsFilter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_downtime_settings.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_downtime_settings.ex new file mode 100644 index 0000000000..a47eefdd3c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_downtime_settings.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceDowntimeSettings do + @moduledoc """ + Specification of times when most features on a device are disabled for certain users. During these periods, the device will respond to most interactions with something like "sorry, I'm sleeping right now". Design: go/home-ft-settings-storage PRD: go/home-family-tools-prd + + ## Attributes + + * `schedules` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsLabeledDowntimeSchedule.t)`, *default:* `nil`) - + * `targets` (*type:* `list(String.t)`, *default:* `nil`) - The set of users of this device that will have these downtime settings applied. Must have at least one element. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :schedules => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsLabeledDowntimeSchedule.t() + ) + | nil, + :targets => list(String.t()) | nil + } + + field(:schedules, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsLabeledDowntimeSchedule, + type: :list + ) + + field(:targets, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceDowntimeSettings do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceDowntimeSettings.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceDowntimeSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_feature_filters.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_feature_filters.ex new file mode 100644 index 0000000000..fd8a674215 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_feature_filters.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceFeatureFilters do + @moduledoc """ + Defines a set of restrictions on particular device features for a certain set of users. Design: go/home-ft-settings-storage PRD: go/home-family-tools-prd + + ## Attributes + + * `enabled` (*type:* `boolean()`, *default:* `nil`) - Enables/disables all the filters at the same time. For new devices or non-Cast devices this is always false. + * `featureFilters` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsFeatureFilters.t`, *default:* `nil`) - The filters (feature restrictions) to apply when `enabled` is true. + * `targets` (*type:* `list(String.t)`, *default:* `nil`) - The set of users of this device that will have these settings applied. Must have at least one element. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enabled => boolean() | nil, + :featureFilters => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsFeatureFilters.t() | nil, + :targets => list(String.t()) | nil + } + + field(:enabled) + + field(:featureFilters, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsFeatureFilters + ) + + field(:targets, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceFeatureFilters do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceFeatureFilters.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceFeatureFilters do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_logs_opt_in.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_logs_opt_in.ex new file mode 100644 index 0000000000..7368603310 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_logs_opt_in.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceLogsOptIn do + @moduledoc """ + + + ## Attributes + + * `optInEnabled` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the crash logs can be uploaded and the device logs can be enabled + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :optInEnabled => boolean() | nil + } + + field(:optInEnabled) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceLogsOptIn do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceLogsOptIn.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceLogsOptIn do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_settings.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_settings.ex new file mode 100644 index 0000000000..47e4550b4c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_settings.ex @@ -0,0 +1,358 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSettings do + @moduledoc """ + Next ID: 73 + + ## Attributes + + * `gcmSettings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsGcmSettings.t`, *default:* `nil`) - Stores GCM info associated with a device. See go/quartz-design-doc for more info. + * `deviceModelRevision` (*type:* `integer()`, *default:* `nil`) - The Device Platform Service lookup revision. (go/device-model-revision) For 1p devices, and most 3p devices with no custom feature, this should be always 0, which means no lookup needed. For 3p devices with custom assistant feature, this is provided directly by OEM as incremental (e.g. 1, 2, 3, ...) + * `surfaceType` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceType.t`, *default:* `nil`) - The type of assistant surface. Only use this field when device type is ASSISTANT. + * `autoFramingSettings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAutoFramingSettings.t`, *default:* `nil`) - Auto framing settings associated with a device. See go/auto-framing-presentation. + * `homeGraphId` (*type:* `String.t`, *default:* `nil`) - The home graph ID that can be used to lookup the corresponding entry in HomeGraph. go/home-graph. Note: when this field is empty, it doesn't necessarily mean that the device is not in home graph. It just means that Assistant doesn't know about the mapping. + * `hotwordThresholdAdjustmentFactor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHotwordThresholdAdjustmentFactor.t`, *default:* `nil`) - HotwordThresholdAdjustmentFactor contains threshold_adjustment_factor, and it's validity. TAF is a measure of adjustment applied to the hotword threshold as a result of go/autotune. Currently, this is updated from query_settings_frame, but if we move to updating it from the client, this could also contain TAFs as a result of Hotword Sensitivity, in addition to Autotune. + * `ancillaryDeviceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsInternalAncillaryDeviceId.t`, *default:* `nil`) - The additional device ids. Currently used only for ATV. go/project-yellowstone Note: This field is for internal (Within settings) use only. + * `linkedUsers` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsLinkedUser.t)`, *default:* `nil`) - Please do NOT use this field without prior approval from PWG. Users who have signed in onto this device, go/linked-users-in-pkg. + * `faceEnrollmentStatus` (*type:* `String.t`, *default:* `nil`) - Indicates whether the user's face has been successfully enrolled on this device. See go/face-match-server-design for more info. + * `humanFriendlyName` (*type:* `String.t`, *default:* `nil`) - The human-friendly name of the cast device, e.g., my living room tv. This field is set by the user and already localized. + * `lastCastRegistrationTimestamp` (*type:* `DateTime.t`, *default:* `nil`) - Device's latest registration timestamp provided by Cast side. This field is not necessarily up to date. The update frequency is defined in last_registration_update_frequency_in_days field of AssistantConfig in java/com/google/chrome/dongle/common/proto/home_assistant_config.proto. go/cast-last-registration-time + * `colocationStatus` (*type:* `String.t`, *default:* `nil`) - Status of colocation. go/co-location-work-v2 Note: this is a cache at the Assistant level. The source of truth is inside CastAuthenticationServer, which is only used for Home devices. + * `locationCoordinates` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesLocationCoordinates.t`, *default:* `nil`) - Coordinate information of the device location. + * `homeGraphData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHomeGraphData.t`, *default:* `nil`) - Holds the data that should be written to HomeGraph. Note: this field is not persisted in Assistant Settings storage. It is simply used for transporting data when client calls UpdateSettings. + * `deviceBrand` (*type:* `String.t`, *default:* `nil`) - The brand of the device, populated from DeviceOemParams. Examples: "google", "samsung". + * `truncatedLocalNetworkId` (*type:* `String.t`, *default:* `nil`) - Local network ID of the device (truncated to obfuscate devices and households globally). This is a temporary signal to determine proximity of Assistant devices in a house (HGS place). + * `capabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiDeviceCapabilities.t`, *default:* `nil`) - Describes roughly what a device is capable of doing and metadata around those capabilities. Note: this includes device limitations as well as user configurable settings. + * `speechOutputSettings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSpeechOutputSettings.t`, *default:* `nil`) - Settings related to TTS output. + * `timeZone` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeZone.t`, *default:* `nil`) - Device time zone. It's mainly used for a one-time notification for new users when they just bought and activated their devices. They may not have used Search or Assistant before, so their timezone info may not available elsewhere when we want to send a notification. This should be used as a fallback only when other timezone sources such as assistant_settings:user_attribute#inferred_user_timezone are not available. Also, when both |time_zone| and |location| are set, the |location| should be preferred to derive the most up to date timezone. This info directly comes from the device through early device setting recording mechanism. See more details at go/early-device-setting-recording. + * `deviceModelId` (*type:* `String.t`, *default:* `nil`) - The model ID of the device. This should be globally unique across manufactures/OEMs. Examples: "nest_cam_iq_2017", "comcast_voice_box_2017". + * `defaultVideoDeviceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t`, *default:* `nil`) - The identification of the default device which user want to output video. Note that, we don't fallback to this for audio playback when default_audio_device_id is not set. See go/default-media-output-design for more info. + * `city` (*type:* `String.t`, *default:* `nil`) - city and postal_code are sent to third party AoG Apps as location when permission is granted for precise or coarse location. https://developers.google.com/actions/reference/rest/Shared.Types/Permission city and postal_code have the same description as in Proto Postal Address: https://cs.corp.google.com/piper///depot/google3/location/country/postaladdress.proto city corresponds to locality_name, postal_code corresponds to postal_code_number. These two fields are set in assistant_settings_service by AddressConverter. https://cs.corp.google.com/piper///depot/google3/location/addressformatter/public/addressconverter.h See go/aog-i18n-address-parse for more information + * `verboseTtsForChromecastEnabled` (*type:* `boolean()`, *default:* `nil`) - Indicates whether to play verbose tts for Elementary on chirp. See: go/opa-cast-a11y-impl-design fore more info on this project. Note: this should probably be in SpeechOutputSetting below. + * `politeMode` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPoliteMode.t`, *default:* `nil`) - Specify whether polite mode is enabled for this device. See go/pretty-please-dd. + * `locale` (*type:* `String.t`, *default:* `nil`) - The locale for the device: language + region, i.e., en-US, ja-JP. + * `personalizationMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPersonalizationMetadata.t`, *default:* `nil`) - Metadata about how personalization settings were configured. + * `crossSurfaceAvailability` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSettingsCrossSurfaceAvailability.t`, *default:* `nil`) - Availability of this device for Assistant Cross-surface handoffs. (go/assistant-cross-surface) + * `hotwordSensitivity` (*type:* `String.t`, *default:* `nil`) - The level of hotword sensitivity. go/hotword-sensitivity-prd + * `notificationProfile` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNotificationProfile.t`, *default:* `nil`) - Information about how to send the user a notification. This won't be populated for fb-conv users (allo group chat users). + * `onDeviceAppSettings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsOnDeviceAppSettings.t`, *default:* `nil`) - Device specific app related settings. + * `creationTimestampMs` (*type:* `String.t`, *default:* `nil`) - The timestamp that the device is linked with the user in milliseconds. + * `deviceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t`, *default:* `nil`) - The identification of the device. + * `postalCode` (*type:* `String.t`, *default:* `nil`) - + * `speechSettings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSpeechSettings.t`, *default:* `nil`) - Speech/hotword detection related settings. + * `ambientSettings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAmbientSettings.t`, *default:* `nil`) - Ambient settings contains the configuration of Photo Frame on DG device. This field relies on IMAX service to do the update, sync happenes after user updates IMAX device settings or a device registers in CloudCastDevice. So it's more like a cached version instead of definitive source-of-truth. More details at go/ambient-setting-in-assistant-design. + * `shortenedAddress` (*type:* `String.t`, *default:* `nil`) - A human-readable shortened address. This is usually the street address. Note: client does not need to populate this. It will be auto-populated based on "address" field on server side. Developers can use this field to avoid reading out the full address everytime. + * `locationFeature` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureProto.t`, *default:* `nil`) - The feature proto of the location of the device. Note: client does not need to populate this. It will be auto-populated based on "address" field on server side. Currently, only "bound" and "type" are persisted, since the entire FeatureProto is too big. + * `oauthClientId` (*type:* `String.t`, *default:* `nil`) - OAuth client id for the device. This field is available for Assistant SDK devices. It is written when the device is registered to the user (AssistantSettingsUiService.LinkAssistantDeviceUi). When user revokes grant on the Assistant device, Assistant Devices Platform Service will receive Pubsub notification with OAuth client id for the revoked device, and we will compare that with this stored id to identity device to remove. + * `speakerIdEnabled` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the user has enabled speaker-id for this device. See go/google-assistant-multi-user for more info on this project. + * `kidsMode` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsKidsMode.t`, *default:* `nil`) - Specifies if kids-mode is enabled for the device. See go/aff-parentalsupervision-dd. + * `lastUsedCoarseTimestamp` (*type:* `DateTime.t`, *default:* `nil`) - Coarsened hourly timestamp of when the device was last used. + * `optInStatus` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceLogsOptIn.t`, *default:* `nil`) - Specifies if device logs and crashes can be captured during SendFeedback + * `isCloudSyncDevice` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the device is also managed through HA cloud sync. go/ha-dev-guide + * `address` (*type:* `String.t`, *default:* `nil`) - A human-readable address string for the location; generally a one-line address such as "34 Masonic Ave, San Francisco CA 94117, United States". Set this field to empty string for deletion, in which case the rest of the location related fields below will be cleared as well. + * `faceMatchEnabled` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the user has enabled Face Match for this device. See go/face-match-server-design for more info on this project. + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the device. Note: this should only be used for grouping devices for UI presentation purpose. Use |capabilities| to decide what the device can do. + * `faceEnrollmentErrors` (*type:* `list(String.t)`, *default:* `nil`) - List of errors that happened during the face enrollment process if it failed. See go/face-match-enrollment-error for more info. + * `hospitalityModeStatus` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityMode.t`, *default:* `nil`) - Indicates whether the device is currently in Hospitality mode. go/hospitality-mode-design. This is moved to a per user setting in assistant settings. ref. go/hospitality-settings-v2 + * `isDeviceActivationCacheEnabled` (*type:* `boolean()`, *default:* `nil`) - When true, the user has explicitly allowed audio and visual data collection on this device + * `internalVersion` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsInternalVersion.t`, *default:* `nil`) - Internal version of the DeviceSettings for measurement of the DeviceSettings mutation race conditions. See go/consistent-assistant-settings-update. + * `voiceEnrollmentStatus` (*type:* `String.t`, *default:* `nil`) - Indicates whether the user's voice has been successfully enrolled on this device. + * `voiceInputEnabled` (*type:* `boolean()`, *default:* `nil`) - A boolean indicates whether voice input (mic-button, hotword, etc) is enabled. + * `dusi` (*type:* `String.t`, *default:* `nil`) - Only valid for ATV. Stores the android DUSI for the corresponding user. More details: go/auto-logout-on-unlink. + * `paymentsEnabled` (*type:* `boolean()`, *default:* `nil`) - DEPRECATED: Use DeviceCapabilities.OutputRestrictions.personal_data instead. Whether the user has enabled payments for this device. + * `marketplaceDisclosure` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMarketplaceDisclosure.t`, *default:* `nil`) - See go/marketplace-disclosure for more info. + * `vmLastUsedCoarseTimestamp` (*type:* `DateTime.t`, *default:* `nil`) - Coarsened hourly timestamp of when the user was last verified by VoiceMatch on this device. This is used for enforcing VoiceMatch model TTL. go/voicematch-pdd-ttl + * `reauthTrustedDeviceSettings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsReauthTrustedDeviceSettings.t`, *default:* `nil`) - Trusted device preferences Assistant reauth. go/assistant-reauth-verify-skip. + * `ackStatus` (*type:* `String.t`, *default:* `nil`) - LINT.ThenChange(//depot/google3/assistant/ui/assistant_device_settings_ui.proto) + * `masqueradeMode` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMasqueradeMode.t`, *default:* `nil`) - + * `defaultAudioDeviceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t`, *default:* `nil`) - The identification of the default device which user want to output audio. See go/default-media-output-design for more info. + * `supervisionSettings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSupervisionSettings.t`, *default:* `nil`) - Restrictions on how and when certain users can use a device. See go/home-ft-prd. + * `blueSteelEnabled` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the user has enabled Blue Steel. See go/blue-steel for more info on this project. + * `tetheredInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsTetheredInfo.t`, *default:* `nil`) - Presence indicates a tethered wearable. go/wearable-device-ids. + * `aliasName` (*type:* `list(String.t)`, *default:* `nil`) - The alias names of the device, e.g. my living room tv, tv, living room and etc., which user will usually use to refer to the device in addition to human_friendly_name. It can help speech biasing and query understanding. This field is set by the user and already localized. + * `allowIncomingCalls` (*type:* `boolean()`, *default:* `nil`) - Whether this device is allowed to receive incoming calls. + * `linkedDeviceId` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t)`, *default:* `nil`) - Stores pairing between different devices. See go/quartz-design-doc for more info. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gcmSettings => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsGcmSettings.t() | nil, + :deviceModelRevision => integer() | nil, + :surfaceType => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceType.t() | nil, + :autoFramingSettings => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAutoFramingSettings.t() | nil, + :homeGraphId => String.t() | nil, + :hotwordThresholdAdjustmentFactor => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHotwordThresholdAdjustmentFactor.t() + | nil, + :ancillaryDeviceId => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsInternalAncillaryDeviceId.t() + | nil, + :linkedUsers => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsLinkedUser.t()) | nil, + :faceEnrollmentStatus => String.t() | nil, + :humanFriendlyName => String.t() | nil, + :lastCastRegistrationTimestamp => DateTime.t() | nil, + :colocationStatus => String.t() | nil, + :locationCoordinates => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesLocationCoordinates.t() | nil, + :homeGraphData => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHomeGraphData.t() | nil, + :deviceBrand => String.t() | nil, + :truncatedLocalNetworkId => String.t() | nil, + :capabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiDeviceCapabilities.t() | nil, + :speechOutputSettings => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSpeechOutputSettings.t() | nil, + :timeZone => GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeZone.t() | nil, + :deviceModelId => String.t() | nil, + :defaultVideoDeviceId => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t() | nil, + :city => String.t() | nil, + :verboseTtsForChromecastEnabled => boolean() | nil, + :politeMode => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPoliteMode.t() | nil, + :locale => String.t() | nil, + :personalizationMetadata => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPersonalizationMetadata.t() + | nil, + :crossSurfaceAvailability => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSettingsCrossSurfaceAvailability.t() + | nil, + :hotwordSensitivity => String.t() | nil, + :notificationProfile => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNotificationProfile.t() | nil, + :onDeviceAppSettings => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsOnDeviceAppSettings.t() | nil, + :creationTimestampMs => String.t() | nil, + :deviceId => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t() | nil, + :postalCode => String.t() | nil, + :speechSettings => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSpeechSettings.t() | nil, + :ambientSettings => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAmbientSettings.t() | nil, + :shortenedAddress => String.t() | nil, + :locationFeature => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureProto.t() | nil, + :oauthClientId => String.t() | nil, + :speakerIdEnabled => boolean() | nil, + :kidsMode => GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsKidsMode.t() | nil, + :lastUsedCoarseTimestamp => DateTime.t() | nil, + :optInStatus => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceLogsOptIn.t() | nil, + :isCloudSyncDevice => boolean() | nil, + :address => String.t() | nil, + :faceMatchEnabled => boolean() | nil, + :type => String.t() | nil, + :faceEnrollmentErrors => list(String.t()) | nil, + :hospitalityModeStatus => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityMode.t() | nil, + :isDeviceActivationCacheEnabled => boolean() | nil, + :internalVersion => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsInternalVersion.t() | nil, + :voiceEnrollmentStatus => String.t() | nil, + :voiceInputEnabled => boolean() | nil, + :dusi => String.t() | nil, + :paymentsEnabled => boolean() | nil, + :marketplaceDisclosure => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMarketplaceDisclosure.t() + | nil, + :vmLastUsedCoarseTimestamp => DateTime.t() | nil, + :reauthTrustedDeviceSettings => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsReauthTrustedDeviceSettings.t() + | nil, + :ackStatus => String.t() | nil, + :masqueradeMode => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMasqueradeMode.t() | nil, + :defaultAudioDeviceId => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t() | nil, + :supervisionSettings => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSupervisionSettings.t() + | nil, + :blueSteelEnabled => boolean() | nil, + :tetheredInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsTetheredInfo.t() | nil, + :aliasName => list(String.t()) | nil, + :allowIncomingCalls => boolean() | nil, + :linkedDeviceId => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t()) | nil + } + + field(:gcmSettings, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsGcmSettings) + field(:deviceModelRevision) + field(:surfaceType, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceType) + + field(:autoFramingSettings, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAutoFramingSettings + ) + + field(:homeGraphId) + + field(:hotwordThresholdAdjustmentFactor, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHotwordThresholdAdjustmentFactor + ) + + field(:ancillaryDeviceId, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsInternalAncillaryDeviceId + ) + + field(:linkedUsers, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsLinkedUser, + type: :list + ) + + field(:faceEnrollmentStatus) + field(:humanFriendlyName) + field(:lastCastRegistrationTimestamp, as: DateTime) + field(:colocationStatus) + + field(:locationCoordinates, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesLocationCoordinates + ) + + field(:homeGraphData, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHomeGraphData) + field(:deviceBrand) + field(:truncatedLocalNetworkId) + field(:capabilities, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDeviceCapabilities) + + field(:speechOutputSettings, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSpeechOutputSettings + ) + + field(:timeZone, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeZone) + field(:deviceModelId) + + field(:defaultVideoDeviceId, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId + ) + + field(:city) + field(:verboseTtsForChromecastEnabled) + field(:politeMode, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPoliteMode) + field(:locale) + + field(:personalizationMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPersonalizationMetadata + ) + + field(:crossSurfaceAvailability, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSettingsCrossSurfaceAvailability + ) + + field(:hotwordSensitivity) + + field(:notificationProfile, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNotificationProfile + ) + + field(:onDeviceAppSettings, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsOnDeviceAppSettings + ) + + field(:creationTimestampMs) + field(:deviceId, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId) + field(:postalCode) + + field(:speechSettings, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSpeechSettings + ) + + field(:ambientSettings, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAmbientSettings + ) + + field(:shortenedAddress) + field(:locationFeature, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureProto) + field(:oauthClientId) + field(:speakerIdEnabled) + field(:kidsMode, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsKidsMode) + field(:lastUsedCoarseTimestamp, as: DateTime) + field(:optInStatus, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceLogsOptIn) + field(:isCloudSyncDevice) + field(:address) + field(:faceMatchEnabled) + field(:type) + field(:faceEnrollmentErrors, type: :list) + + field(:hospitalityModeStatus, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityMode + ) + + field(:isDeviceActivationCacheEnabled) + + field(:internalVersion, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsInternalVersion + ) + + field(:voiceEnrollmentStatus) + field(:voiceInputEnabled) + field(:dusi) + field(:paymentsEnabled) + + field(:marketplaceDisclosure, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMarketplaceDisclosure + ) + + field(:vmLastUsedCoarseTimestamp, as: DateTime) + + field(:reauthTrustedDeviceSettings, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsReauthTrustedDeviceSettings + ) + + field(:ackStatus) + + field(:masqueradeMode, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMasqueradeMode + ) + + field(:defaultAudioDeviceId, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId + ) + + field(:supervisionSettings, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSupervisionSettings + ) + + field(:blueSteelEnabled) + field(:tetheredInfo, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsTetheredInfo) + field(:aliasName, type: :list) + field(:allowIncomingCalls) + + field(:linkedDeviceId, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSettings do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_settings_cross_surface_availability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_settings_cross_surface_availability.ex new file mode 100644 index 0000000000..4bc73ea15a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_settings_cross_surface_availability.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSettingsCrossSurfaceAvailability do + @moduledoc """ + + + ## Attributes + + * `lastKnownClientLocale` (*type:* `String.t`, *default:* `nil`) - Last known locale of the client. + * `lastParamsWriteTimestamp` (*type:* `DateTime.t`, *default:* `nil`) - This is the timestamp when the AssistantRequestParams (in ASSISTANT_SNAPSHOT corpus) were last written for this device. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lastKnownClientLocale => String.t() | nil, + :lastParamsWriteTimestamp => DateTime.t() | nil + } + + field(:lastKnownClientLocale) + field(:lastParamsWriteTimestamp, as: DateTime) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSettingsCrossSurfaceAvailability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSettingsCrossSurfaceAvailability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSettingsCrossSurfaceAvailability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_supervision_settings.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_supervision_settings.ex new file mode 100644 index 0000000000..bcf515b682 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_device_supervision_settings.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSupervisionSettings do + @moduledoc """ + + + ## Attributes + + * `downtimeSettings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceDowntimeSettings.t`, *default:* `nil`) - Specification of times that a device shouldn't respond to certain users. See go/home-ft-prd. + * `featureFilters` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceFeatureFilters.t`, *default:* `nil`) - Restrictions on features that certain users can access on a device. See go/home-ft-prd. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :downtimeSettings => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceDowntimeSettings.t() + | nil, + :featureFilters => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceFeatureFilters.t() | nil + } + + field(:downtimeSettings, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceDowntimeSettings + ) + + field(:featureFilters, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceFeatureFilters + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSupervisionSettings do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSupervisionSettings.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDeviceSupervisionSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_downtime_period.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_downtime_period.ex new file mode 100644 index 0000000000..f4b6e3022b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_downtime_period.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimePeriod do + @moduledoc """ + Specifies a period of up to 24 hours when downtime should be enabled, starting at certain time on a certain day of the week, and ending at a later time on either that day or the following day. + + ## Attributes + + * `enabled` (*type:* `boolean()`, *default:* `nil`) - True if downtime should be enabled during this period. + * `endTime` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeOfDay.t`, *default:* `nil`) - Time of day that this downtime period should end. Required. If end_time > start_time, end_time is relative to start_day. Otherwise, end_time is relative to the day after start_day. For example, start_day: MONDAY, start_time: 9 p.m., end_time: 6 a.m. means that the downtime period starts at 9 p.m. on Monday and ends at 6 a.m. on Tuesday. + * `startDay` (*type:* `String.t`, *default:* `nil`) - The day of the week when this downtime period starts. Required. + * `startTime` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeOfDay.t`, *default:* `nil`) - Time of day that this downtime period should start. Required. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enabled => boolean() | nil, + :endTime => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeOfDay.t() | nil, + :startDay => String.t() | nil, + :startTime => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeOfDay.t() | nil + } + + field(:enabled) + field(:endTime, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeOfDay) + field(:startDay) + field(:startTime, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeOfDay) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimePeriod do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimePeriod.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimePeriod do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_downtime_schedule.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_downtime_schedule.ex new file mode 100644 index 0000000000..97a4e6e6b0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_downtime_schedule.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimeSchedule do + @moduledoc """ + Specification of when downtime is enabled on different days of the week. Contains up to 7 DowntimePeriod messages, up to one per day of the week. + + ## Attributes + + * `enabled` (*type:* `boolean()`, *default:* `nil`) - True if this downtime schedule should be enabled. + * `periods` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimePeriod.t)`, *default:* `nil`) - Downtime entries for the days of the week, in no particular order. There can be at most one period defined for each day of the week. Days of the week with no explicit period defined are treated as disabled, so the device is available all day (modulo an end time that may spill over from the previous day). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enabled => boolean() | nil, + :periods => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimePeriod.t()) | nil + } + + field(:enabled) + + field(:periods, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimePeriod, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimeSchedule do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimeSchedule.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimeSchedule do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_duo_call_device_settings.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_duo_call_device_settings.ex new file mode 100644 index 0000000000..6e4659f74d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_duo_call_device_settings.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDuoCallDeviceSettings do + @moduledoc """ + Duo related call settings on the device. Next ID: 5 + + ## Attributes + + * `allowKnockKnock` (*type:* `boolean()`, *default:* `nil`) - True if Duo Knock Kncok feature is enabled on the device. + * `shouldBeLinked` (*type:* `boolean()`, *default:* `nil`) - Boolean indicating if user has explicitly marked this device to be linked or not. This bit is used in case where unexpected errors occur and we have to check for account/device status and mark the device linked after verification. + * `state` (*type:* `String.t`, *default:* `nil`) - The call state of the device (i.e. whether a Duo call account has been setup on the device). + * `talkbackEnabled` (*type:* `boolean()`, *default:* `nil`) - Client device settings: settings which are populated by client to give to duocore. TalkBack is an accessibility service that helps blind and vision-impaired users interact with their devices. Indicates whether talkback is enabled for the device. Note: this is per device settings currently filled by client for all users. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowKnockKnock => boolean() | nil, + :shouldBeLinked => boolean() | nil, + :state => String.t() | nil, + :talkbackEnabled => boolean() | nil + } + + field(:allowKnockKnock) + field(:shouldBeLinked) + field(:state) + field(:talkbackEnabled) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDuoCallDeviceSettings do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDuoCallDeviceSettings.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDuoCallDeviceSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_feature_filters.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_feature_filters.ex new file mode 100644 index 0000000000..7244188346 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_feature_filters.ex @@ -0,0 +1,84 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsFeatureFilters do + @moduledoc """ + Specification of which assistant features are allowed for a particular device or user account. + + ## Attributes + + * `communicationsFilter` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsCommunicationsFilter.t`, *default:* `nil`) - + * `musicFilter` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMusicFilter.t`, *default:* `nil`) - + * `newsFilter` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNewsFilter.t`, *default:* `nil`) - + * `podcastFilter` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPodcastFilter.t`, *default:* `nil`) - + * `searchFilter` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSearchFilter.t`, *default:* `nil`) - + * `thirdPartyAppsFilter` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsThirdPartyAppsFilter.t`, *default:* `nil`) - + * `videoFilter` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsVideoFilter.t`, *default:* `nil`) - + * `webviewFilter` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsWebviewFilter.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :communicationsFilter => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsCommunicationsFilter.t() | nil, + :musicFilter => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMusicFilter.t() | nil, + :newsFilter => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNewsFilter.t() | nil, + :podcastFilter => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPodcastFilter.t() | nil, + :searchFilter => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSearchFilter.t() | nil, + :thirdPartyAppsFilter => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsThirdPartyAppsFilter.t() | nil, + :videoFilter => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsVideoFilter.t() | nil, + :webviewFilter => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsWebviewFilter.t() | nil + } + + field(:communicationsFilter, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsCommunicationsFilter + ) + + field(:musicFilter, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMusicFilter) + field(:newsFilter, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNewsFilter) + field(:podcastFilter, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPodcastFilter) + field(:searchFilter, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSearchFilter) + + field(:thirdPartyAppsFilter, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsThirdPartyAppsFilter + ) + + field(:videoFilter, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsVideoFilter) + field(:webviewFilter, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsWebviewFilter) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsFeatureFilters do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsFeatureFilters.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsFeatureFilters do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_gcm_settings.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_gcm_settings.ex new file mode 100644 index 0000000000..06a4897ccd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_gcm_settings.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsGcmSettings do + @moduledoc """ + + + ## Attributes + + * `gcmId` (*type:* `String.t`, *default:* `nil`) - + * `gcmPackage` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gcmId => String.t() | nil, + :gcmPackage => String.t() | nil + } + + field(:gcmId) + field(:gcmPackage) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsGcmSettings do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsGcmSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsGcmSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_home_graph_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_home_graph_data.ex new file mode 100644 index 0000000000..505776fdee --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_home_graph_data.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHomeGraphData do + @moduledoc """ + Next ID: 8 + + ## Attributes + + * `agentId` (*type:* `String.t`, *default:* `nil`) - Agent ID, aka project ID. Used as the AgentDeviceId.agent_id of device when calling Home Graph Service. + * `attributes` (*type:* `map()`, *default:* `nil`) - See go/ha-dev-guide and HomeGraphItem.attribute in //assistant/verticals/homeautomation/proto/home_graph.proto + * `deviceId` (*type:* `String.t`, *default:* `nil`) - Device ID, used as AgentDeviceId.device_id of device when calling Home Graph Service. + * `deviceType` (*type:* `String.t`, *default:* `nil`) - HGS device type. See java/com/google/home/graph/service/config/protoconf.pi for the exhaustive list of type strings. + * `shouldWriteToHomeGraph` (*type:* `boolean()`, *default:* `nil`) - Whether device data should be written to Home Graph via Assistant device_settings. Assistant SDK and Google Home write their devices into Home Graph through AssistantSettingsService, while Home Automation Partner devices (e.g. SmartThings, Philips Hue, Nest, TP-Link, etc.) don't need to be written to Home Graph through AssistantSettingsService. This field decides whether AssistantSettingsService writes devices to Home Graph or not. + * `supportedTraits` (*type:* `list(String.t)`, *default:* `nil`) - Supported traits of the device. See java/com/google/home/graph/service/config/protoconf.pi for the exhaustive list of trait-strings. + * `supportsDirectResponse` (*type:* `boolean()`, *default:* `nil`) - Whether the device supports direct response. See HomeGraphItem.supports_direct_response in //assistant/verticals/homeautomation/proto/home_graph.proto + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentId => String.t() | nil, + :attributes => map() | nil, + :deviceId => String.t() | nil, + :deviceType => String.t() | nil, + :shouldWriteToHomeGraph => boolean() | nil, + :supportedTraits => list(String.t()) | nil, + :supportsDirectResponse => boolean() | nil + } + + field(:agentId) + field(:attributes, type: :map) + field(:deviceId) + field(:deviceType) + field(:shouldWriteToHomeGraph) + field(:supportedTraits, type: :list) + field(:supportsDirectResponse) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHomeGraphData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHomeGraphData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHomeGraphData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_card_settings.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_card_settings.ex new file mode 100644 index 0000000000..56d2064856 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_card_settings.ex @@ -0,0 +1,77 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettings do + @moduledoc """ + + + ## Attributes + + * `cardConfig` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsCardConfig.t)`, *default:* `nil`) - Config for Hospitality UI modules. + * `showMediaTapGestureTutorial` (*type:* `boolean()`, *default:* `nil`) - Toggle media tap gesture tutorial card. + * `showPhotoSwipeGestureTutorial` (*type:* `boolean()`, *default:* `nil`) - Toggle photo swipe gesture tutorial card. + * `youtubeCardConfig` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsYouTubeCardConfig.t)`, *default:* `nil`) - Config for YouTube video cards. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cardConfig => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsCardConfig.t() + ) + | nil, + :showMediaTapGestureTutorial => boolean() | nil, + :showPhotoSwipeGestureTutorial => boolean() | nil, + :youtubeCardConfig => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsYouTubeCardConfig.t() + ) + | nil + } + + field(:cardConfig, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsCardConfig, + type: :list + ) + + field(:showMediaTapGestureTutorial) + field(:showPhotoSwipeGestureTutorial) + + field(:youtubeCardConfig, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsYouTubeCardConfig, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettings do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettings.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_card_settings_card_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_card_settings_card_config.ex new file mode 100644 index 0000000000..d9b946150d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_card_settings_card_config.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsCardConfig do + @moduledoc """ + Configuration for hospitality card. + + ## Attributes + + * `activeActionRequired` (*type:* `boolean()`, *default:* `nil`) - Whether the UI module requires user action. If true, the UI module can peek on to the top of Ambient. See SmartDisplayModuleState::ACTIVE_ACTION_REQUIRED. + * `dismissable` (*type:* `boolean()`, *default:* `nil`) - Whether the UI module is dismissable. + * `effectiveTime` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t`, *default:* `nil`) - The time that the module is effective and visible to the user. If not set, the module is effective immediately. + * `expiryTime` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t`, *default:* `nil`) - The time that the module is expired and invisible to the user. If not set, the module never expires. + * `imageUrl` (*type:* `String.t`, *default:* `nil`) - The image URL for the UI module. + * `moduleId` (*type:* `String.t`, *default:* `nil`) - Module ID. + * `payloadQuery` (*type:* `String.t`, *default:* `nil`) - Payload query to the partner AoG action when user responds to UI Module, e.g. “Tell the hotel how my stay is going”. + * `title` (*type:* `String.t`, *default:* `nil`) - Title of the message to be shown to user at the top of the UI Module. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :activeActionRequired => boolean() | nil, + :dismissable => boolean() | nil, + :effectiveTime => GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t() | nil, + :expiryTime => GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t() | nil, + :imageUrl => String.t() | nil, + :moduleId => String.t() | nil, + :payloadQuery => String.t() | nil, + :title => String.t() | nil + } + + field(:activeActionRequired) + field(:dismissable) + field(:effectiveTime, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp) + field(:expiryTime, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp) + field(:imageUrl) + field(:moduleId) + field(:payloadQuery) + field(:title) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsCardConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsCardConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsCardConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_card_settings_you_tube_card_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_card_settings_you_tube_card_config.ex new file mode 100644 index 0000000000..c2ed555bba --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_card_settings_you_tube_card_config.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsYouTubeCardConfig do + @moduledoc """ + Configuration for YouTube video card (Stargazer tile). + + ## Attributes + + * `imageUrl` (*type:* `String.t`, *default:* `nil`) - URL of image to go on card. The URL must be a public link accessible from ZeroState. + * `playlistId` (*type:* `String.t`, *default:* `nil`) - ID of YouTube playlist to play on card tap. A playlist is used instead of a single video id to avoid autoplaying related videos. The playlist and the videos it contains must be public or unlisted to be accessible from ZeroState. + * `text` (*type:* `String.t`, *default:* `nil`) - Text on card (i.e., video title). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :imageUrl => String.t() | nil, + :playlistId => String.t() | nil, + :text => String.t() | nil + } + + field(:imageUrl) + field(:playlistId) + field(:text) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsYouTubeCardConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsYouTubeCardConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettingsYouTubeCardConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_mode.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_mode.ex new file mode 100644 index 0000000000..ac72dec863 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_mode.ex @@ -0,0 +1,106 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityMode do + @moduledoc """ + Hospitality mode config for the current device. go/hospitality-mode-design. Next ID: 17 + + ## Attributes + + * `aogContextId` (*type:* `list(String.t)`, *default:* `nil`) - List of AOG app context ids that are linked to this device. These apps will have access to the structure information for the device. + * `aogInvocationPhrase` (*type:* `String.t`, *default:* `nil`) - Invocation phrase for hotel's AoG action. Used for ZS promotion card and "talk to my hotel" rewrites. Setting this to an empty value will mark it unset. + * `branding` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityModeBranding.t`, *default:* `nil`) - + * `cardSettings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettings.t`, *default:* `nil`) - + * `deviceClearRequest` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t`, *default:* `nil`) - The time when we received a request to reset the device. + * `dialogTtlOverrideMicros` (*type:* `String.t`, *default:* `nil`) - Should the dialog have a shorter ttl. See go/ipp-consumer-prd#heading=h.ibu9b1ysdl4t and go/interpreter-device-clear#bookmark=id.hw8ey1bzjadn for context. + * `enterpriseId` (*type:* `String.t`, *default:* `nil`) - Identifier for the enterprise which owns the device. Setting this to an empty value will mark it unset. + * `hospitalityModeEnabled` (*type:* `boolean()`, *default:* `nil`) - Indicates whether this device is in the hospitality mode. + * `lastDeviceClear` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t`, *default:* `nil`) - Last time the device was cleared and placed in hospitality mode. Will be set when the switch is toggled on and reset when a guest checks out. On the device this triggers removing alarms, timers, etc. + * `lastModifiedTimestamp` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t`, *default:* `nil`) - Indicates when hospitality settings were last updated. + * `lastWelcomed` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t`, *default:* `nil`) - Last time the welcome message was played for the guest. If last_welcomed < welcome_request, the message should be replayed and this time set. + * `manualResetRequired` (*type:* `boolean()`, *default:* `nil`) - Indicates whether or not the device must be reset manually (by voice or touch), as opposed to being automatically reset. go/hospitality-manual-reset + * `promotedLanguages` (*type:* `list(String.t)`, *default:* `nil`) - In order promoted languages for interpreter devices. This represents languages by BCP-47 language strings, such as "en", "en-US", "fr", "fr-CA", "sr-Latn", "zh-Hans-CN", "zh-Hant-HK",etc. + * `type` (*type:* `String.t`, *default:* `nil`) - + * `verbalResetSupported` (*type:* `boolean()`, *default:* `nil`) - Whether we allow users to initiate clearing the device verbally. We generally allow this for private devices and not for public ones. + * `welcomeRequest` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t`, *default:* `nil`) - The time when we received a request to welcome the user. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :aogContextId => list(String.t()) | nil, + :aogInvocationPhrase => String.t() | nil, + :branding => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityModeBranding.t() + | nil, + :cardSettings => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettings.t() + | nil, + :deviceClearRequest => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t() | nil, + :dialogTtlOverrideMicros => String.t() | nil, + :enterpriseId => String.t() | nil, + :hospitalityModeEnabled => boolean() | nil, + :lastDeviceClear => GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t() | nil, + :lastModifiedTimestamp => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t() | nil, + :lastWelcomed => GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t() | nil, + :manualResetRequired => boolean() | nil, + :promotedLanguages => list(String.t()) | nil, + :type => String.t() | nil, + :verbalResetSupported => boolean() | nil, + :welcomeRequest => GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t() | nil + } + + field(:aogContextId, type: :list) + field(:aogInvocationPhrase) + + field(:branding, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityModeBranding + ) + + field(:cardSettings, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityCardSettings + ) + + field(:deviceClearRequest, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp) + field(:dialogTtlOverrideMicros) + field(:enterpriseId) + field(:hospitalityModeEnabled) + field(:lastDeviceClear, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp) + field(:lastModifiedTimestamp, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp) + field(:lastWelcomed, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp) + field(:manualResetRequired) + field(:promotedLanguages, type: :list) + field(:type) + field(:verbalResetSupported) + field(:welcomeRequest, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityMode do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityMode.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityMode do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_mode_branding.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_mode_branding.ex new file mode 100644 index 0000000000..a5457174dd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hospitality_mode_branding.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityModeBranding do + @moduledoc """ + TODO(b/169423976) Consider moving Branding out of user level settings into enterprise level settings. Partner branding fields used to customize the ui. Next ID: 7 + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - Brand display in the UI + * `displayNameForLanguage` (*type:* `map()`, *default:* `nil`) - Brand display in the UI for languages that the enterprise has a localized name that is different from its global branding name. For example, Hilton is 'ヒルトン' in Japanese and '希爾頓' in Chinese. The keys are hospitality supported display locales, e.g. en, ja-JP, etc, defined in experiment parameter Hospitality__hospitality_display_supported_locales. + * `largeLogoUrl` (*type:* `String.t`, *default:* `nil`) - + * `smallLogoUrl` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :displayNameForLanguage => map() | nil, + :largeLogoUrl => String.t() | nil, + :smallLogoUrl => String.t() | nil + } + + field(:displayName) + field(:displayNameForLanguage, type: :map) + field(:largeLogoUrl) + field(:smallLogoUrl) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityModeBranding do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityModeBranding.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHospitalityModeBranding do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hotword_threshold_adjustment_factor.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hotword_threshold_adjustment_factor.ex new file mode 100644 index 0000000000..1c6704a4e9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_hotword_threshold_adjustment_factor.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHotwordThresholdAdjustmentFactor do + @moduledoc """ + HotwordThresholdAdjustmentFactor contains threshold_adjustment_factor, and it's validity. value should only be considered when is_valid = true. + + ## Attributes + + * `isValid` (*type:* `boolean()`, *default:* `nil`) - Currently, is_valid is set to false whenever the TAF is not an Autotune aware value. This includes hotword sensitivity users, or devices not eligible for autotune. + * `value` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isValid => boolean() | nil, + :value => integer() | nil + } + + field(:isValid) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHotwordThresholdAdjustmentFactor do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHotwordThresholdAdjustmentFactor.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHotwordThresholdAdjustmentFactor do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_internal_ancillary_device_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_internal_ancillary_device_id.ex new file mode 100644 index 0000000000..f61a43be65 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_internal_ancillary_device_id.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsInternalAncillaryDeviceId do + @moduledoc """ + Represents supporting device ids. + + ## Attributes + + * `deviceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t`, *default:* `nil`) - Contains device ids known to devices. eg. For ATV, it contains client_instance_id and cast_id. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceId => GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t() | nil + } + + field(:deviceId, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsInternalAncillaryDeviceId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsInternalAncillaryDeviceId.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsInternalAncillaryDeviceId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_internal_version.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_internal_version.ex new file mode 100644 index 0000000000..5133202c4f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_internal_version.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsInternalVersion do + @moduledoc """ + Represents a version of a specifit setting, e.g. DeviceSettings. + + ## Attributes + + * `generationTime` (*type:* `DateTime.t`, *default:* `nil`) - Contains the timestamp when this version was generated. + * `id` (*type:* `String.t`, *default:* `nil`) - Integer value of the version, it is a monotonically increasing number and starts at 0. On every update it is incremented by 1. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :generationTime => DateTime.t() | nil, + :id => String.t() | nil + } + + field(:generationTime, as: DateTime) + field(:id) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsInternalVersion do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsInternalVersion.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsInternalVersion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_kids_mode.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_kids_mode.ex new file mode 100644 index 0000000000..9d39daf820 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_kids_mode.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsKidsMode do + @moduledoc """ + Kids mode config for the current device. go/aff-parentalsupervision-dd + + ## Attributes + + * `kidsModeEnabled` (*type:* `boolean()`, *default:* `nil`) - + * `obfuscatedGaiaId` (*type:* `String.t`, *default:* `nil`) - Identifier of the account currently specified to be used with kids mode. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :kidsModeEnabled => boolean() | nil, + :obfuscatedGaiaId => String.t() | nil + } + + field(:kidsModeEnabled) + field(:obfuscatedGaiaId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsKidsMode do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsKidsMode.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsKidsMode do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_labeled_downtime_schedule.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_labeled_downtime_schedule.ex new file mode 100644 index 0000000000..e8569ded0c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_labeled_downtime_schedule.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsLabeledDowntimeSchedule do + @moduledoc """ + + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - User-provided name for this schedule. + * `schedule` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimeSchedule.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :schedule => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimeSchedule.t() | nil + } + + field(:displayName) + field(:schedule, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDowntimeSchedule) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsLabeledDowntimeSchedule do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsLabeledDowntimeSchedule.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsLabeledDowntimeSchedule do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_linked_user.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_linked_user.ex new file mode 100644 index 0000000000..0f13e1d17f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_linked_user.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsLinkedUser do + @moduledoc """ + Represents the profile of the user who has signed in onto this device. Next id: 5 + + ## Attributes + + * `castLinkingTime` (*type:* `DateTime.t`, *default:* `nil`) - Time of linking of the device with the user provided by Cast. + * `email` (*type:* `String.t`, *default:* `nil`) - Primary email address of the user. + * `gaiaId` (*type:* `String.t`, *default:* `nil`) - + * `names` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiName.t)`, *default:* `nil`) - Supports features which depend on profile name, when no matching contact is found. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :castLinkingTime => DateTime.t() | nil, + :email => String.t() | nil, + :gaiaId => String.t() | nil, + :names => + list(GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiName.t()) + | nil + } + + field(:castLinkingTime, as: DateTime) + field(:email) + field(:gaiaId) + + field(:names, + as: GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiName, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsLinkedUser do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsLinkedUser.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsLinkedUser do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_marketplace_disclosure.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_marketplace_disclosure.ex new file mode 100644 index 0000000000..2e37d67ffa --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_marketplace_disclosure.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMarketplaceDisclosure do + @moduledoc """ + + + ## Attributes + + * `confirmed` (*type:* `boolean()`, *default:* `nil`) - True if the user has confirmed the marketplace disclosure. + * `timestampMs` (*type:* `String.t`, *default:* `nil`) - The time user confirmed the marketplace disclosure. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confirmed => boolean() | nil, + :timestampMs => String.t() | nil + } + + field(:confirmed) + field(:timestampMs) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMarketplaceDisclosure do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMarketplaceDisclosure.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMarketplaceDisclosure do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_masquerade_mode.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_masquerade_mode.ex new file mode 100644 index 0000000000..c0249cd69f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_masquerade_mode.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMasqueradeMode do + @moduledoc """ + Guest mode for the current device. go/assistant-guest-mode-summary + + ## Attributes + + * `lastEnterGuestModeTimestamp` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t`, *default:* `nil`) - + * `lastExitGuestModeTimestamp` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t`, *default:* `nil`) - + * `masqueradeModeEnabled` (*type:* `boolean()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lastEnterGuestModeTimestamp => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t() | nil, + :lastExitGuestModeTimestamp => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.t() | nil, + :masqueradeModeEnabled => boolean() | nil + } + + field(:lastEnterGuestModeTimestamp, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp + ) + + field(:lastExitGuestModeTimestamp, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp) + + field(:masqueradeModeEnabled) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMasqueradeMode do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMasqueradeMode.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMasqueradeMode do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_music_filter.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_music_filter.ex new file mode 100644 index 0000000000..a800b76bc8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_music_filter.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMusicFilter do + @moduledoc """ + Specification of which music features can be used. + + ## Attributes + + * `availableProviders` (*type:* `list(String.t)`, *default:* `nil`) - Providers available at the time user updated settings. + * `providerFilterState` (*type:* `String.t`, *default:* `nil`) - Represents the state for the music provider filter. + * `state` (*type:* `String.t`, *default:* `nil`) - + * `whitelistedProviders` (*type:* `list(String.t)`, *default:* `nil`) - Contains the list of whitelisted music providers. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :availableProviders => list(String.t()) | nil, + :providerFilterState => String.t() | nil, + :state => String.t() | nil, + :whitelistedProviders => list(String.t()) | nil + } + + field(:availableProviders, type: :list) + field(:providerFilterState) + field(:state) + field(:whitelistedProviders, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMusicFilter do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMusicFilter.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsMusicFilter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_news_filter.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_news_filter.ex new file mode 100644 index 0000000000..affceadfab --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_news_filter.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNewsFilter do + @moduledoc """ + Specification of which news features can be used. + + ## Attributes + + * `state` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :state => String.t() | nil + } + + field(:state) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNewsFilter do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNewsFilter.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNewsFilter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_notification_profile.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_notification_profile.ex new file mode 100644 index 0000000000..950eb5d2aa --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_notification_profile.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNotificationProfile do + @moduledoc """ + + + ## Attributes + + * `alloNotificationProfile` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNotificationProfileAlloNotificationProfile.t`, *default:* `nil`) - Each device can have only one type of notification profile. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alloNotificationProfile => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNotificationProfileAlloNotificationProfile.t() + | nil + } + + field(:alloNotificationProfile, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNotificationProfileAlloNotificationProfile + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNotificationProfile do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNotificationProfile.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNotificationProfile do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_notification_profile_allo_notification_profile.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_notification_profile_allo_notification_profile.ex new file mode 100644 index 0000000000..9735ee2550 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_notification_profile_allo_notification_profile.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNotificationProfileAlloNotificationProfile do + @moduledoc """ + + + ## Attributes + + * `botSendToken` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ChatBotPlatformBotSendToken.t`, *default:* `nil`) - The send token of the conversation with the user. + * `id` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ChatBotPlatformFireballId.t`, *default:* `nil`) - The fireball id of this user. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :botSendToken => + GoogleApi.ContentWarehouse.V1.Model.ChatBotPlatformBotSendToken.t() | nil, + :id => GoogleApi.ContentWarehouse.V1.Model.ChatBotPlatformFireballId.t() | nil + } + + field(:botSendToken, as: GoogleApi.ContentWarehouse.V1.Model.ChatBotPlatformBotSendToken) + field(:id, as: GoogleApi.ContentWarehouse.V1.Model.ChatBotPlatformFireballId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNotificationProfileAlloNotificationProfile do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNotificationProfileAlloNotificationProfile.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsNotificationProfileAlloNotificationProfile do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_on_device_app_settings.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_on_device_app_settings.ex new file mode 100644 index 0000000000..0d93dc7f68 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_on_device_app_settings.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsOnDeviceAppSettings do + @moduledoc """ + + + ## Attributes + + * `carrierCallDeviceSettings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsCarrierCallDeviceSettings.t`, *default:* `nil`) - On device carrier call related settings. + * `duoCallDeviceSettings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDuoCallDeviceSettings.t`, *default:* `nil`) - On device duo call related settings. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :carrierCallDeviceSettings => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsCarrierCallDeviceSettings.t() + | nil, + :duoCallDeviceSettings => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDuoCallDeviceSettings.t() + | nil + } + + field(:carrierCallDeviceSettings, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsCarrierCallDeviceSettings + ) + + field(:duoCallDeviceSettings, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsDuoCallDeviceSettings + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsOnDeviceAppSettings do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsOnDeviceAppSettings.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsOnDeviceAppSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_personalization_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_personalization_metadata.ex new file mode 100644 index 0000000000..ebe7714b87 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_personalization_metadata.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPersonalizationMetadata do + @moduledoc """ + + + ## Attributes + + * `faceMatch` (*type:* `String.t`, *default:* `nil`) - + * `personalResults` (*type:* `String.t`, *default:* `nil`) - + * `voiceMatch` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :faceMatch => String.t() | nil, + :personalResults => String.t() | nil, + :voiceMatch => String.t() | nil + } + + field(:faceMatch) + field(:personalResults) + field(:voiceMatch) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPersonalizationMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPersonalizationMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPersonalizationMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_podcast_filter.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_podcast_filter.ex new file mode 100644 index 0000000000..7bee466d56 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_podcast_filter.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPodcastFilter do + @moduledoc """ + Specification of which podcast features can be used. + + ## Attributes + + * `state` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :state => String.t() | nil + } + + field(:state) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPodcastFilter do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPodcastFilter.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPodcastFilter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_polite_mode.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_polite_mode.ex new file mode 100644 index 0000000000..e58ac9e01e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_polite_mode.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPoliteMode do + @moduledoc """ + Polite mode config for the current device. go/polite-mode-dd + + ## Attributes + + * `politeModeEnabled` (*type:* `boolean()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :politeModeEnabled => boolean() | nil + } + + field(:politeModeEnabled) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPoliteMode do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPoliteMode.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsPoliteMode do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_reauth_trusted_device_settings.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_reauth_trusted_device_settings.ex new file mode 100644 index 0000000000..f5e78eb1e5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_reauth_trusted_device_settings.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsReauthTrustedDeviceSettings do + @moduledoc """ + Settings related to Assistant reauth. go/assistant-reauth-verify-skip Next id: 2 + + ## Attributes + + * `trustSettingsForClient` (*type:* `%{optional(String.t) => GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsReauthTrustedDeviceSettingsTrustSettings.t}`, *default:* `nil`) - Mapping from integrator client id to device's trust settings. Id from assistant/agent_platform/transactions/reauth/reauth_client.proto. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :trustSettingsForClient => + %{ + optional(String.t()) => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsReauthTrustedDeviceSettingsTrustSettings.t() + } + | nil + } + + field(:trustSettingsForClient, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsReauthTrustedDeviceSettingsTrustSettings, + type: :map + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsReauthTrustedDeviceSettings do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsReauthTrustedDeviceSettings.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsReauthTrustedDeviceSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_reauth_trusted_device_settings_trust_settings.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_reauth_trusted_device_settings_trust_settings.ex new file mode 100644 index 0000000000..1f415e4477 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_reauth_trusted_device_settings_trust_settings.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsReauthTrustedDeviceSettingsTrustSettings do + @moduledoc """ + Next id: 6 + + ## Attributes + + * `neverAskAgain` (*type:* `boolean()`, *default:* `nil`) - If true, don't ask user to trust this device again. + * `neverAskExpirationTimestamp` (*type:* `DateTime.t`, *default:* `nil`) - DEPRECATED: Use never_ask_again instead. Expiration timestamp of "never ask again" status. If this field is set and is later than current timestamp, we should NOT ask the user whether they'd like to trust this device. + * `trustDeviceExpirationTimestamp` (*type:* `DateTime.t`, *default:* `nil`) - Expiration timestamp of "trusted" status. If this field is set and is later than current timestamp, we can consider this device to be trusted. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :neverAskAgain => boolean() | nil, + :neverAskExpirationTimestamp => DateTime.t() | nil, + :trustDeviceExpirationTimestamp => DateTime.t() | nil + } + + field(:neverAskAgain) + field(:neverAskExpirationTimestamp, as: DateTime) + field(:trustDeviceExpirationTimestamp, as: DateTime) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsReauthTrustedDeviceSettingsTrustSettings do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsReauthTrustedDeviceSettingsTrustSettings.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsReauthTrustedDeviceSettingsTrustSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_search_filter.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_search_filter.ex new file mode 100644 index 0000000000..8a7e88f19f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_search_filter.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSearchFilter do + @moduledoc """ + Specification of which search features can be used. + + ## Attributes + + * `state` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :state => String.t() | nil + } + + field(:state) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSearchFilter do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSearchFilter.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSearchFilter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_speech_output_settings.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_speech_output_settings.ex new file mode 100644 index 0000000000..4ae89840eb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_speech_output_settings.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSpeechOutputSettings do + @moduledoc """ + Settings related to TTS output. + + ## Attributes + + * `speechOutput` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :speechOutput => String.t() | nil + } + + field(:speechOutput) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSpeechOutputSettings do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSpeechOutputSettings.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSpeechOutputSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_speech_settings.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_speech_settings.ex new file mode 100644 index 0000000000..4f93bce1d1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_speech_settings.ex @@ -0,0 +1,90 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSpeechSettings do + @moduledoc """ + Settings related to speech detection. See go/hotword-settings-on-cloud for more info. Next ID: 16 + + ## Attributes + + * `continuedConversationEnabled` (*type:* `boolean()`, *default:* `nil`) - Indicates whether Continued Conversation is enabled for this device. + * `deviceModelType` (*type:* `String.t`, *default:* `nil`) - Stores the device model type e.g Pixel. + * `dspAvailable` (*type:* `boolean()`, *default:* `nil`) - Whether the device has DSP chip to enable always on hotword detection. + * `hotwordInNavigationEnabled` (*type:* `String.t`, *default:* `nil`) - Whether hotword has been enabled by the user during navigation. + * `hotwordSetting` (*type:* `String.t`, *default:* `nil`) - Stores hotword setting status for the locales which don't support voice match. + * `lockscreenEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether pin/pattern lockscreen has been enabled by the user. + * `opaEligibilityState` (*type:* `String.t`, *default:* `nil`) - Stores if Assistant is available for the user's device/locale, where Enabled means it is available and disabled means it is not. + * `opaEligible` (*type:* `boolean()`, *default:* `nil`) - Stores if Assistant is available for the user's device/locale. Deprecated as bools do not give accurate true/false ratios due to old clients reporting the default value. + * `sdkVersion` (*type:* `integer()`, *default:* `nil`) - Stores the Android SDK version. This comes from android.os.Build.VERSION.SDK_INT. + * `speakerIdModelPresent` (*type:* `boolean()`, *default:* `nil`) - Whether speaker ID model is present for the user. + * `speakerIdRecognitionEnabled` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the user has enabled speaker-id (fromAnyScreen/alwaysOn) for this device. Deprecated - use voice_match_setting instead + * `trustedVoiceEnabled` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the user has enabled trusted voice for this device. + * `unlockWithHotwordAvailable` (*type:* `boolean()`, *default:* `nil`) - A bool indicating whether device supports unlocking device with hotword. + * `userMigratedToDeclined` (*type:* `boolean()`, *default:* `nil`) - Stores if user was migrated from undecided to declined as apart of Mariko project. Used for potential growth targeting. + * `voiceMatchSetting` (*type:* `String.t`, *default:* `nil`) - Stores the hotword/voice match setting status for the locales which support voice match. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :continuedConversationEnabled => boolean() | nil, + :deviceModelType => String.t() | nil, + :dspAvailable => boolean() | nil, + :hotwordInNavigationEnabled => String.t() | nil, + :hotwordSetting => String.t() | nil, + :lockscreenEnabled => boolean() | nil, + :opaEligibilityState => String.t() | nil, + :opaEligible => boolean() | nil, + :sdkVersion => integer() | nil, + :speakerIdModelPresent => boolean() | nil, + :speakerIdRecognitionEnabled => boolean() | nil, + :trustedVoiceEnabled => boolean() | nil, + :unlockWithHotwordAvailable => boolean() | nil, + :userMigratedToDeclined => boolean() | nil, + :voiceMatchSetting => String.t() | nil + } + + field(:continuedConversationEnabled) + field(:deviceModelType) + field(:dspAvailable) + field(:hotwordInNavigationEnabled) + field(:hotwordSetting) + field(:lockscreenEnabled) + field(:opaEligibilityState) + field(:opaEligible) + field(:sdkVersion) + field(:speakerIdModelPresent) + field(:speakerIdRecognitionEnabled) + field(:trustedVoiceEnabled) + field(:unlockWithHotwordAvailable) + field(:userMigratedToDeclined) + field(:voiceMatchSetting) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSpeechSettings do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSpeechSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsSpeechSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_tethered_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_tethered_info.ex new file mode 100644 index 0000000000..ae387c9f50 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_tethered_info.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsTetheredInfo do + @moduledoc """ + + + ## Attributes + + * `primaryHostDeviceId` (*type:* `String.t`, *default:* `nil`) - The host this wearable is tethered to (e.g. phone). When host is AGSA then this is agsa_client_instance_id. When host is IOPA then this is opa_ios_device_id. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :primaryHostDeviceId => String.t() | nil + } + + field(:primaryHostDeviceId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsTetheredInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsTetheredInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsTetheredInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_third_party_apps_filter.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_third_party_apps_filter.ex new file mode 100644 index 0000000000..2463d6fdbc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_third_party_apps_filter.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsThirdPartyAppsFilter do + @moduledoc """ + Specification of which third party apps can be used. + + ## Attributes + + * `state` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :state => String.t() | nil + } + + field(:state) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsThirdPartyAppsFilter do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsThirdPartyAppsFilter.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsThirdPartyAppsFilter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_video_filter.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_video_filter.ex new file mode 100644 index 0000000000..446ec74ca6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_video_filter.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsVideoFilter do + @moduledoc """ + Specification of which video features can be used. + + ## Attributes + + * `autoplayToggleState` (*type:* `String.t`, *default:* `nil`) - State that indicates whether autoplay is enabled for youtube videos. + * `availableProviders` (*type:* `list(String.t)`, *default:* `nil`) - Providers available at the time user updated settings. + * `providerFilterState` (*type:* `String.t`, *default:* `nil`) - Represents the state for the video provider filter. + * `state` (*type:* `String.t`, *default:* `nil`) - + * `whitelistedProviders` (*type:* `list(String.t)`, *default:* `nil`) - Contains the list of whitelisted video providers. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :autoplayToggleState => String.t() | nil, + :availableProviders => list(String.t()) | nil, + :providerFilterState => String.t() | nil, + :state => String.t() | nil, + :whitelistedProviders => list(String.t()) | nil + } + + field(:autoplayToggleState) + field(:availableProviders, type: :list) + field(:providerFilterState) + field(:state) + field(:whitelistedProviders, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsVideoFilter do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsVideoFilter.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsVideoFilter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_webview_filter.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_webview_filter.ex new file mode 100644 index 0000000000..4e14307463 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_settings_webview_filter.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsWebviewFilter do + @moduledoc """ + Specification of which webview features can be used. + + ## Attributes + + * `jasperWebviewConsent` (*type:* `boolean()`, *default:* `nil`) - Indicates if user has consented Jasper warning message. + * `state` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :jasperWebviewConsent => boolean() | nil, + :state => String.t() | nil + } + + field(:jasperWebviewConsent) + field(:state) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsWebviewFilter do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsWebviewFilter.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsWebviewFilter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_sign_in_method.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_sign_in_method.ex new file mode 100644 index 0000000000..741563ce1a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_sign_in_method.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSignInMethod do + @moduledoc """ + The method of sign in which the client supports. + + ## Attributes + + * `method` (*type:* `String.t`, *default:* `nil`) - + * `signInRequired` (*type:* `boolean()`, *default:* `nil`) - Make Google sign-in mandatory for using Google Assistant on the device. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :method => String.t() | nil, + :signInRequired => boolean() | nil + } + + field(:method) + field(:signInRequired) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSignInMethod do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSignInMethod.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSignInMethod do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_soda_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_soda_capabilities.ex new file mode 100644 index 0000000000..3b205fa65b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_soda_capabilities.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSodaCapabilities do + @moduledoc """ + Capabilities related to SODA (Speech On-Device API). Next ID: 5 + + ## Attributes + + * `supportsHotwordSensitivity` (*type:* `boolean()`, *default:* `nil`) - Whether the device supports different levels of hotword sensitivity. go/hotword-sensitivity-prd + * `supportsSimpleStop` (*type:* `boolean()`, *default:* `nil`) - Whether Simple Stop (go/simple-stop) is enabled on the device. Simple stop allows users to stop firing alarms and timers by just saying "stop" without first saying the hotword. + * `supportsSpeakerId` (*type:* `boolean()`, *default:* `nil`) - Whether the device supports speaker-id (speaker identification based on hotword and/or spoken query - go/speaker-id). Note: there are existing devices that support speaker-id but does not have this capability set. Not having this field populated doesn't necessarily mean the device doesn't support speaker-id. + * `supportsWarmWords` (*type:* `boolean()`, *default:* `nil`) - Whether the device supports WarmWords (go/warm-words-framework). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :supportsHotwordSensitivity => boolean() | nil, + :supportsSimpleStop => boolean() | nil, + :supportsSpeakerId => boolean() | nil, + :supportsWarmWords => boolean() | nil + } + + field(:supportsHotwordSensitivity) + field(:supportsSimpleStop) + field(:supportsSpeakerId) + field(:supportsWarmWords) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSodaCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSodaCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSodaCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_software_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_software_capabilities.ex new file mode 100644 index 0000000000..58b8404958 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_software_capabilities.ex @@ -0,0 +1,197 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSoftwareCapabilities do + @moduledoc """ + These capabilities represent what software features the client supports. This should be determined based on the client's various software versions (OS, GSA version, etc). Next ID: 27 + + ## Attributes + + * `appCapabilities` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppCapabilities.t)`, *default:* `nil`) - IMPORTANT: Only one of AppCapabilities and AppCapabilitiesDelta should be in the SoftwareCapabilities. In the edge case if the client sends up both AppCapabilities and AppCapabilitiesDelta, AppCapabilitiesDelta is ignored. Complete list of app capabilities. + * `appCapabilitiesDelta` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppCapabilitiesDelta.t)`, *default:* `nil`) - Incremental update for app capabilities. + * `appIntegrationsSettings` (*type:* `%{optional(String.t) => GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppIntegrationsSettings.t}`, *default:* `nil`) - App integrations settings for each packge name. + * `carAssistantCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCarAssistantCapabilities.t`, *default:* `nil`) - Capabilities related to Assistant on Auto surfaces. + * `clockCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiClockCapabilities.t`, *default:* `nil`) - Capabilities related to clock functionality, like alarms, timers, etc. + * `conversationVersion` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedConversationVersion.t`, *default:* `nil`) - A top-level version of Conversation protocol where the versions are explicitly defined at go/conversation-versions. + * `crossDeviceExecutionCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCrossDeviceExecutionCapability.t`, *default:* `nil`) - For torus x-device execution support + * `gacsCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiGacsCapabilities.t`, *default:* `nil`) - + * `gcmCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiGcmCapabilities.t`, *default:* `nil`) - + * `liveTvChannelCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilities.t`, *default:* `nil`) - Capabilities related to live TV channels. + * `oemCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiOemCapabilities.t`, *default:* `nil`) - List of actions OEM supports. This includes built-in actions and custom actions. + * `onDeviceAssistantCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceAssistantCapabilities.t`, *default:* `nil`) - on-device Assistant capabilities + * `onDeviceSmartHomeCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceSmartHomeCapabilities.t`, *default:* `nil`) - Capability bits for on-device Smart Home. go/framework-for-local-semex + * `onDeviceStorageCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceStorageCapabilities.t`, *default:* `nil`) - Reflects the storage capabilities on the device. + * `operatingSystem` (*type:* `String.t`, *default:* `nil`) - The operating system of the device. + * `orderedLiveTvProviders` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvProvider.t)`, *default:* `nil`) - An ordered list containing the live tv providers available in the client. The order of the providers reflects the ranking in the client and will be respected by server as well. + * `selinaCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSelinaCapabilites.t`, *default:* `nil`) - The Soli capabilities on Elaine. go/dingo-dc-software + * `settingsAppCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAppCapabilities.t`, *default:* `nil`) - + * `supportedClientOp` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedClientOp.t)`, *default:* `nil`) - + * `supportedFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedFeatures.t`, *default:* `nil`) - + * `supportedMsgVersion` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProtocolVersion.t`, *default:* `nil`) - + * `supportedProviderTypes` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProviderTypes.t`, *default:* `nil`) - + * `surfaceProperties` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSurfaceProperties.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appCapabilities => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppCapabilities.t()) | nil, + :appCapabilitiesDelta => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppCapabilitiesDelta.t()) | nil, + :appIntegrationsSettings => + %{ + optional(String.t()) => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppIntegrationsSettings.t() + } + | nil, + :carAssistantCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCarAssistantCapabilities.t() | nil, + :clockCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiClockCapabilities.t() | nil, + :conversationVersion => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedConversationVersion.t() | nil, + :crossDeviceExecutionCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCrossDeviceExecutionCapability.t() + | nil, + :gacsCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiGacsCapabilities.t() | nil, + :gcmCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiGcmCapabilities.t() | nil, + :liveTvChannelCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilities.t() | nil, + :oemCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiOemCapabilities.t() | nil, + :onDeviceAssistantCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceAssistantCapabilities.t() + | nil, + :onDeviceSmartHomeCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceSmartHomeCapabilities.t() + | nil, + :onDeviceStorageCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceStorageCapabilities.t() | nil, + :operatingSystem => String.t() | nil, + :orderedLiveTvProviders => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvProvider.t()) | nil, + :selinaCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSelinaCapabilites.t() | nil, + :settingsAppCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAppCapabilities.t() | nil, + :supportedClientOp => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedClientOp.t()) | nil, + :supportedFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedFeatures.t() | nil, + :supportedMsgVersion => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProtocolVersion.t() | nil, + :supportedProviderTypes => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProviderTypes.t() | nil, + :surfaceProperties => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSurfaceProperties.t() | nil + } + + field(:appCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppCapabilities, + type: :list + ) + + field(:appCapabilitiesDelta, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppCapabilitiesDelta, + type: :list + ) + + field(:appIntegrationsSettings, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppIntegrationsSettings, + type: :map + ) + + field(:carAssistantCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCarAssistantCapabilities + ) + + field(:clockCapabilities, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiClockCapabilities) + + field(:conversationVersion, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedConversationVersion + ) + + field(:crossDeviceExecutionCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCrossDeviceExecutionCapability + ) + + field(:gacsCapabilities, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiGacsCapabilities) + field(:gcmCapabilities, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiGcmCapabilities) + + field(:liveTvChannelCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvChannelCapabilities + ) + + field(:oemCapabilities, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiOemCapabilities) + + field(:onDeviceAssistantCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceAssistantCapabilities + ) + + field(:onDeviceSmartHomeCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceSmartHomeCapabilities + ) + + field(:onDeviceStorageCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiOnDeviceStorageCapabilities + ) + + field(:operatingSystem) + + field(:orderedLiveTvProviders, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiLiveTvProvider, + type: :list + ) + + field(:selinaCapabilities, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSelinaCapabilites) + + field(:settingsAppCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsAppCapabilities + ) + + field(:supportedClientOp, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedClientOp, + type: :list + ) + + field(:supportedFeatures, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedFeatures) + + field(:supportedMsgVersion, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProtocolVersion + ) + + field(:supportedProviderTypes, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProviderTypes + ) + + field(:surfaceProperties, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSurfaceProperties) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSoftwareCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSoftwareCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSoftwareCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_speech_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_speech_capabilities.ex new file mode 100644 index 0000000000..32682208cb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_speech_capabilities.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSpeechCapabilities do + @moduledoc """ + DEPRECATED These capabilities are associated with speech detection on devices. + + ## Attributes + + * `dspAvailable` (*type:* `boolean()`, *default:* `nil`) - A bool indicating whether device supports dsp based hotword detection. + * `unlockWithHotwordAvailable` (*type:* `boolean()`, *default:* `nil`) - A bool indicating whether device supports unlocking device with hotword. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dspAvailable => boolean() | nil, + :unlockWithHotwordAvailable => boolean() | nil + } + + field(:dspAvailable) + field(:unlockWithHotwordAvailable) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSpeechCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSpeechCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSpeechCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_suggestions_support.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_suggestions_support.ex new file mode 100644 index 0000000000..4a309f4d6b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_suggestions_support.ex @@ -0,0 +1,99 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSuggestionsSupport do + @moduledoc """ + Next ID: 18 + + ## Attributes + + * `clickImpersonationSupported` (*type:* `boolean()`, *default:* `nil`) - Whether client supports user impersonation on suggestion chip click. go/suggestion-click-impersonation + * `debugDataSupported` (*type:* `boolean()`, *default:* `nil`) - Whether client supports suggestions debug data to be displayed. + * `drlHistoryChipSupported` (*type:* `boolean()`, *default:* `nil`) - Whether DRL history chip is supported. Related bug: http://b/241837879, http://b/171854732 Design doc: http://go/panthera-history-chip-dd DRL history chip was originally rolled out to Panthera in http://google3/googledata/experiments/mobile/agsa/studies/agsa_nga/opa_panthera_one_input_ui_launch.gcl?l=55&rcl=384682900. We plan to roll it out to NGA and TNG. drl_history_chip_supported bit specifies whether the client support (and should have) DRL history chip. + * `escapeHatchSupported` (*type:* `String.t`, *default:* `nil`) - Whether client supports escape hatches aka post execution suggestions go/nga-escape-hatch-prd + * `executedTextSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client can rewrite suggestion query text into executed text, if the latter is present. If this feature is disabled, the rewrite happens in Assistant Server. + * `executionContextSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports passing back `execution_context` from |assistant.api.client_op.SuggestionProcessingParams| when the suggestion is clicked or spoken. + * `featureSpecificActionSupport` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiFeatureSpecificActionSupport.t`, *default:* `nil`) - Whether the client supports features in |SuggestionFeatureSpecificAction|. + * `featureSpecificAppActionsNotificationSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports handling App Actions' notification when the suggestion is clicked. This will allow the server to populate the `app_actions_notification_data` extension field from |SuggestionFeatureSpecificAction| proto message. + * `multiStepTrySayingSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the multi-step try saying suggestion feature is supported. dd: go/tng-multi-step-simplified + * `ruleIdInExecutionContextSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the rule_id field in the execution_context is supported. This is a temporary workaround to be able to identify clicks on Person entity suggestions on Sabrina and is expected to be eventually deprecated. TODO(b/185517153) : Deprecate (but do not delete) once click tracking is correctly sent up from the Katniss client. + * `showExecutedTextSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client can show executed_text after the click on the suggestion chip. Must be set to false on TNG. TNG disregards |SuggestionProcessingParams.show_executed_text| field and always treats it as if |show_executed_text=true|. + * `showTranslationSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client can show chip as (text | translation). go/lang-partner-doc + * `supportedDisplayTargets` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiSuggestionsSupportDisplayTargetSupport.t)`, *default:* `nil`) - A list of suggestions display targets supported by this client. If unset only DEFAULT SuggestionDisplayTarget is supported. + * `widgetDataSupported` (*type:* `boolean()`, *default:* `nil`) - Whether client supports widget suggestion chip to be displayed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clickImpersonationSupported => boolean() | nil, + :debugDataSupported => boolean() | nil, + :drlHistoryChipSupported => boolean() | nil, + :escapeHatchSupported => String.t() | nil, + :executedTextSupported => boolean() | nil, + :executionContextSupported => boolean() | nil, + :featureSpecificActionSupport => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiFeatureSpecificActionSupport.t() | nil, + :featureSpecificAppActionsNotificationSupported => boolean() | nil, + :multiStepTrySayingSupported => boolean() | nil, + :ruleIdInExecutionContextSupported => boolean() | nil, + :showExecutedTextSupported => boolean() | nil, + :showTranslationSupported => boolean() | nil, + :supportedDisplayTargets => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSuggestionsSupportDisplayTargetSupport.t() + ) + | nil, + :widgetDataSupported => boolean() | nil + } + + field(:clickImpersonationSupported) + field(:debugDataSupported) + field(:drlHistoryChipSupported) + field(:escapeHatchSupported) + field(:executedTextSupported) + field(:executionContextSupported) + + field(:featureSpecificActionSupport, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiFeatureSpecificActionSupport + ) + + field(:featureSpecificAppActionsNotificationSupported) + field(:multiStepTrySayingSupported) + field(:ruleIdInExecutionContextSupported) + field(:showExecutedTextSupported) + field(:showTranslationSupported) + + field(:supportedDisplayTargets, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSuggestionsSupportDisplayTargetSupport, + type: :list + ) + + field(:widgetDataSupported) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSuggestionsSupport do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSuggestionsSupport.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSuggestionsSupport do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_suggestions_support_display_target_support.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_suggestions_support_display_target_support.ex new file mode 100644 index 0000000000..2cbc0e6867 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_suggestions_support_display_target_support.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSuggestionsSupportDisplayTargetSupport do + @moduledoc """ + + + ## Attributes + + * `executedTextSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client can rewrite suggestion query text into executed text, if the latter is present for the display target. + * `headerTextSupported` (*type:* `boolean()`, *default:* `nil`) - Whether PresentationParams.header_text is supported for the display target. + * `repressImpressionSupported` (*type:* `boolean()`, *default:* `nil`) - Whether Suggestion.repress_impression is supported. If not repressed suggestions are not returned. + * `target` (*type:* `String.t`, *default:* `nil`) - Display target that is supported. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :executedTextSupported => boolean() | nil, + :headerTextSupported => boolean() | nil, + :repressImpressionSupported => boolean() | nil, + :target => String.t() | nil + } + + field(:executedTextSupported) + field(:headerTextSupported) + field(:repressImpressionSupported) + field(:target) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSuggestionsSupportDisplayTargetSupport do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSuggestionsSupportDisplayTargetSupport.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSuggestionsSupportDisplayTargetSupport do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_sunrise_features_support.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_sunrise_features_support.ex new file mode 100644 index 0000000000..4b3d9ca63f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_sunrise_features_support.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSunriseFeaturesSupport do + @moduledoc """ + + + ## Attributes + + * `sunriseSimulationSupported` (*type:* `boolean()`, *default:* `nil`) - If true, the device can slowly brighten the screen and simulate sunrise experience. Alarms with sunrise field enabled can be set on this device. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :sunriseSimulationSupported => boolean() | nil + } + + field(:sunriseSimulationSupported) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSunriseFeaturesSupport do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSunriseFeaturesSupport.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSunriseFeaturesSupport do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_client_op.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_client_op.ex new file mode 100644 index 0000000000..a854868de6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_client_op.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedClientOp do + @moduledoc """ + These are the set of ClientOps that are supported by the device. + + ## Attributes + + * `clientOpName` (*type:* `String.t`, *default:* `nil`) - This should be the same as the name of the SemanticClientOp that is supported. + * `clientOpProperties` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiProtobuf.t`, *default:* `nil`) - The properties associated with the ClientOp. This proto should be associated with the client_op_name. + * `supportedExecution` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedClientOpSupportedExecution.t`, *default:* `nil`) - + * `version` (*type:* `integer()`, *default:* `nil`) - A version of 0 is the equivalent to not having support for that client_op type. Note that a client_op is also unsupported if it is not included at all in the list of supported client_ops. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clientOpName => String.t() | nil, + :clientOpProperties => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiProtobuf.t() | nil, + :supportedExecution => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedClientOpSupportedExecution.t() + | nil, + :version => integer() | nil + } + + field(:clientOpName) + field(:clientOpProperties, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiProtobuf) + + field(:supportedExecution, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedClientOpSupportedExecution + ) + + field(:version) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedClientOp do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedClientOp.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedClientOp do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_client_op_supported_execution.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_client_op_supported_execution.ex new file mode 100644 index 0000000000..f9ce36081c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_client_op_supported_execution.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedClientOpSupportedExecution do + @moduledoc """ + Additional properties that client can support for executing the client op. They are surface-specific execution properties and are unrelated to the execution model. + + ## Attributes + + * `supportsPartialFulfillment` (*type:* `boolean()`, *default:* `nil`) - ClientOp execution supports special rendering behavior while the user is in the middle of expressing their query. This behavior includes: 1) New partial output always over-writes prior partial output. 2) Canceling the interaction removes partial fulfilment from any user visible interaction history. If this is true, whether to apply the special rendering behavior will be determined by PartialFulfillmentRenderingParams. More details can be found at go/ma-natcon-pf-api. + * `supportsSynchronousExecution` (*type:* `boolean()`, *default:* `nil`) - Client can support synchronous execution of the client op. For tts.OUTPUT client op it means that client would honor |synchronous_playback_args| argument. Please see more at go/synchronous-sounds-design. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :supportsPartialFulfillment => boolean() | nil, + :supportsSynchronousExecution => boolean() | nil + } + + field(:supportsPartialFulfillment) + field(:supportsSynchronousExecution) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedClientOpSupportedExecution do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedClientOpSupportedExecution.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedClientOpSupportedExecution do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_conversation_version.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_conversation_version.ex new file mode 100644 index 0000000000..626fa31cf6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_conversation_version.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedConversationVersion do + @moduledoc """ + The overall Conversation Protocol version. As we make fundamental changes to Conversation protocol that are non-backwards compatible, we will increment the protocol version. By default, all clients will support version 0. All versions are documented at go/conversation-versions. + + ## Attributes + + * `supportsConversationProtocol` (*type:* `boolean()`, *default:* `nil`) - Whether conversation protocol is supported explicitly. If true, SingleDeviceCapabilityChecker::SupportsConversationProtocol will always return true. + * `version` (*type:* `integer()`, *default:* `nil`) - The supported version number. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :supportsConversationProtocol => boolean() | nil, + :version => integer() | nil + } + + field(:supportsConversationProtocol) + field(:version) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedConversationVersion do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedConversationVersion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedConversationVersion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_features.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_features.ex new file mode 100644 index 0000000000..844b445f0d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_features.ex @@ -0,0 +1,284 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedFeatures do + @moduledoc """ + These are the set of features that are supported by the device. It's a part of the SoftwareCapabilities of the device. Next ID: 68 + + ## Attributes + + * `isPairedPhoneNeededForComms` (*type:* `boolean()`, *default:* `nil`) - Whether a Bluetooth-paired phone is a core component of communications flows on the client. + * `actionV2SupportedFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiActionV2SupportedFeatures.t`, *default:* `nil`) - + * `mediaControlSupport` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiMediaControlSupport.t`, *default:* `nil`) - Information about how client handles media controls (play, pause, skip ...) + * `privacyAwareLockscreenSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports the privacy-aware lockscreen protocol (go/assistant-lockscreen-spec). + * `immersiveCanvasConfirmationMessageSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports confirmation messages in Immersive Canvas actions. Deprecated: use the filed in immersive_canvas_support. + * `whatsNextSupported` (*type:* `boolean()`, *default:* `nil`) - Whether or not the client supports WhatsNext in the protocol. + * `masqueradeModeSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the device supports masquerade mode (go/masquerade). + * `crossDeviceBroadcastSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports cross-device broadcast (i.e. on Torus). + * `duoGroupCallingSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports Duo group calling. + * `sleepSensingSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client can monitor sleep. This allows us to show sleep CUJ related information: go/TwilightDesign Use for development only, see the same field in DeviceCapabilities.SoftwareCapabilities.SelinaCapabilities. + * `duoClientApiFeatures` (*type:* `String.t`, *default:* `nil`) - The features set which duo client on the device supports. This should be serialized from proto {@code duo_client_api.DuoClientApiFeatures}. + * `fitnessFeatureSupport` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiFitnessFeatureSupport.t`, *default:* `nil`) - Information about what support this device has for fitness. + * `funtimeSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the surface client op performer supports Funtime alarms and timers. go/funtime-engdesign + * `shLockScreenSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports SmartHome lock screen logic (i.e. on Tangor). + * `assistantExploreSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports the assistant explore section. This field will be active only when the Explore section is available to the user. This means that the user is (a) signed-in, (b) a IOPA / AGSA user, and (c) in a locale where explore is available. + * `assistantForKidsSupported` (*type:* `boolean()`, *default:* `nil`) - Whether Assistant for Kids (a.k.a. Designed for Family) features are supported. + * `transactionFeaturesSupport` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiTransactionFeaturesSupport.t`, *default:* `nil`) - Transactions features, supported by the client. Transactions feature may includes how Transactions team want to populate additional information from the device to the server. + * `noInputResponseSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client can render no input response or just ignore it. No input response is returned when client has a no speech input interaction, eg. user tapped mic but didn't say anything. + * `hasPhysicalRadio` (*type:* `boolean()`, *default:* `nil`) - Whether the client has a physical radio installed. + * `opaOnSearchSupported` (*type:* `boolean()`, *default:* `nil`) - When the entry source is search, whether the client supports rendering a similar response as OPA one does. Entry source is defined at http://cs/symbol:assistant.api.params.DeviceProperties.EntrySource + * `sunriseFeaturesSupport` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSunriseFeaturesSupport.t`, *default:* `nil`) - Whether the client supports the sunrise screen brightening feature before the alarm fires. This is used to indicate whether sunrise alarms can be set on the device. http://cs/symbol:assistant.api.core_types.governed.RingtoneTaskMetadata.GentleWakeInfo + * `mediaSessionDetection` (*type:* `String.t`, *default:* `nil`) - The ability of the client to detect media sessions on the device. + * `gdiSupported` (*type:* `boolean()`, *default:* `nil`) - Whether account linking via Google Deep Integrations (GDI) is supported. go/opa-gdi-design + * `thirdPartyGuiSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the device supports the 3p GUI framework, which allows third parties to enter the conversation with the user, showing their logo next to their chat bubbles, etc. go/3p-phone + * `gearheadNotificationSourceSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports the Gearhead message notification source, in which case notification-related operations can access it. + * `fluidActionsSupport` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiFluidActionsSupport.t`, *default:* `nil`) - Fluid Actions features supported by the client. If this field is not set in the incoming request, it could mean that the client does not support Fluid Actions. Alternatively, it could mean that the client supports Fluid Actions, but syncs state with server using the old protocol, namely ConversationStateParams. When b/140733618 is resolved, Surface Adaptation Layer will add this field for old clients that support Fluid Actions framework. + * `meetSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports joining a Google Meet meeting. + * `transactionsVersion` (*type:* `String.t`, *default:* `nil`) - The version of transactions which the client supports. + * `readNotificationSummarizationSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports message summarization. + * `confirmationBeforeReadingMultipleMessagesSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports confirmation flow before announcement of multiple messages. If set to true the user will be prompted once and confirmation will be taken before all the messages are announced. + * `conversationalCareSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client can render conversational care responses. go/conversational-care + * `warmWelcomeTutorialSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports the programmatic warm welcome tutorial. Design doc: go/opal-pww-design. + * `appControlSupport` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppControlSupport.t`, *default:* `nil`) - The client information for app control support. More details in: go/acaia. + * `csatVisualOverlaySupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports csat visual overlay. (go/sd-od-csat) + * `usesSeparateFullViewer` (*type:* `boolean()`, *default:* `nil`) - If set, it indicates that the client can open a separate HTML browser/webviewer (full viewer) to display certain visual results. These visual results usually require more memory to render (e.g. high resolution photos). Compared to the regular viewer that display all other Assistant result, the full viewer does not have memory limit. The field is copied from the device model. See http://google3/assistant/devices_platform/proto/device_model_capabilities.proto?l=225&rcl=312576471 Also see go/webassistant-full-card-viewer. + * `suggestionsSupport` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSuggestionsSupport.t`, *default:* `nil`) - Suggestion chips features, supported by the client. + * `crossDeviceBroadcastVersion` (*type:* `String.t`, *default:* `nil`) - The version of cross device broadcast (ie; broadcast on torus) which the client supports. + * `readMessagesTtsTaperingSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports tts tapering for the read messages flow. If set to true the tapered tts variant would be used during the read messages flow. + * `remoteCloudCastingEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether the client has remote casting enabled. For ex: we want to disable this for clients like Auto. + * `clientOpResultBatchingSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client can batch client op results before sending them to the server. + * `launchKeyboardSupported` (*type:* `String.t`, *default:* `nil`) - Which way of launching the keyboard the client supports. + * `serverGeneratedFeedbackChipsEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether the Assistant Server should generate feedback suggestion chips. + * `lottieAnimationSupport` (*type:* `String.t`, *default:* `nil`) - Whether the client supports the Lottie animation library for the broadcast feature. + * `signInMethod` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSignInMethod.t`, *default:* `nil`) - Which kind of sign in the client supports. + * `soliGestureDetectionSupported` (*type:* `boolean()`, *default:* `nil`) - Whether or not the client supports gesture detection via soli chips. The reason to prepend the name with soli is to distinguish it from computer vision based methods, e.g. Newman devices. + * `webBrowserSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the supports opening a URL in a web browser. For example, we want to disable this for clients like Chirp. + * `zoomSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports joining a Zoom meeting. + * `smartspaceCrossDeviceTimerSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports smart space cross-device timers. (go/ss-x-device-timer) + * `lensSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client has Google Lens (Assistant Eyes). + * `tapToReadOptimizationSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports faster optimization for tap_to_read feature. + * `inDialogAccountLinkingSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports account linking in-dialog (askForSignIn). This is used before this feature is moved to conversation protocol. To support this, the client needs to: - Integrate with Google Deep Integrations. - Have logic to send the result of account linking back to AS. + * `mapsDialogsSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports Assistant dialogs within Maps. This field will be set only when the Maps on the surface supports Assistant dialogs embedded within Maps. go/gsa-gmm. + * `parentalControlsSupported` (*type:* `boolean()`, *default:* `nil`) - Whether or not the client supports enabling parental controls. When a device to supports parental controls, it has the software necessary to store the relevant information required for parental controls to work. This information includes a boolean "enabled bit" as well as the obfuscated gaia ID of the kid account selected for use with parental controls. Devices supportings kids mode send this information to S3 via S3ClientInfo in every request. See go/aff-kidsproduct for details. + * `bypassDiDcCheckForComms` (*type:* `boolean()`, *default:* `nil`) - Whether communications flows for the client can bypass the DI/DC check. The client will enforce some other equivalent permission as necessary concerning access to device contacts and apps. + * `aaeNotificationSourceSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports the alternative message notification sources on AAE, in which case notification-related operations can access it. + * `liveCardsSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the surface supports LiveCards. In cases where the user intent flow cannot be completed within the Assistant, LiveCards are used to take the user to an external app or website. These cards will be pushed to the Google Home app via the PushMessage ClientOp. + * `viewReminderHubPageNotSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports viewing of reminder hub page or not. Default is supported. Set to true to disable returning reminder hub page url in reminder responses. + * `persistentDisplaySupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports persistent display. The new feature allows Assistant devices with screen to display a continuously updating permanent display, such as ambient weather, without the need for a user to ask the Assistant. Design doc: go/assistant-persistent-display. + * `acpSupport` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiAssistantContinuedPresenceSupport.t`, *default:* `nil`) - In what way is assistant continued presence supported. (go/opa-acp-prd) + * `bypassMsgNotificationDismissal` (*type:* `boolean()`, *default:* `nil`) - Whether or not Assistant should enforce the dismissal of communication notifications associated with messages. + * `alarmTimerManagerApiSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports AlarmTimerManager API (go/alarm-timer-manager-api). + * `client1mProvidersSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports 1m providers (go/1m-partner-expansion). + * `justInTimeSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports confirmation flow when a permission is missing. If set to true, the user will be prompted and on confirmation the original flow will continue. + * `immersiveCanvasSupport` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiImmersiveCanvasSupport.t`, *default:* `nil`) - + * `isPairedPhoneContactUploadNeededForComms` (*type:* `boolean()`, *default:* `nil`) - Whether paired-phone contact upload is needed for communications queries to work (e.g. on AAE). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isPairedPhoneNeededForComms => boolean() | nil, + :actionV2SupportedFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiActionV2SupportedFeatures.t() | nil, + :mediaControlSupport => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiMediaControlSupport.t() | nil, + :privacyAwareLockscreenSupported => boolean() | nil, + :immersiveCanvasConfirmationMessageSupported => boolean() | nil, + :whatsNextSupported => boolean() | nil, + :masqueradeModeSupported => boolean() | nil, + :crossDeviceBroadcastSupported => boolean() | nil, + :duoGroupCallingSupported => boolean() | nil, + :sleepSensingSupported => boolean() | nil, + :duoClientApiFeatures => String.t() | nil, + :fitnessFeatureSupport => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiFitnessFeatureSupport.t() | nil, + :funtimeSupported => boolean() | nil, + :shLockScreenSupported => boolean() | nil, + :assistantExploreSupported => boolean() | nil, + :assistantForKidsSupported => boolean() | nil, + :transactionFeaturesSupport => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiTransactionFeaturesSupport.t() | nil, + :noInputResponseSupported => boolean() | nil, + :hasPhysicalRadio => boolean() | nil, + :opaOnSearchSupported => boolean() | nil, + :sunriseFeaturesSupport => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSunriseFeaturesSupport.t() | nil, + :mediaSessionDetection => String.t() | nil, + :gdiSupported => boolean() | nil, + :thirdPartyGuiSupported => boolean() | nil, + :gearheadNotificationSourceSupported => boolean() | nil, + :fluidActionsSupport => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiFluidActionsSupport.t() | nil, + :meetSupported => boolean() | nil, + :transactionsVersion => String.t() | nil, + :readNotificationSummarizationSupported => boolean() | nil, + :confirmationBeforeReadingMultipleMessagesSupported => boolean() | nil, + :conversationalCareSupported => boolean() | nil, + :warmWelcomeTutorialSupported => boolean() | nil, + :appControlSupport => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppControlSupport.t() | nil, + :csatVisualOverlaySupported => boolean() | nil, + :usesSeparateFullViewer => boolean() | nil, + :suggestionsSupport => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSuggestionsSupport.t() | nil, + :crossDeviceBroadcastVersion => String.t() | nil, + :readMessagesTtsTaperingSupported => boolean() | nil, + :remoteCloudCastingEnabled => boolean() | nil, + :clientOpResultBatchingSupported => boolean() | nil, + :launchKeyboardSupported => String.t() | nil, + :serverGeneratedFeedbackChipsEnabled => boolean() | nil, + :lottieAnimationSupport => String.t() | nil, + :signInMethod => GoogleApi.ContentWarehouse.V1.Model.AssistantApiSignInMethod.t() | nil, + :soliGestureDetectionSupported => boolean() | nil, + :webBrowserSupported => boolean() | nil, + :zoomSupported => boolean() | nil, + :smartspaceCrossDeviceTimerSupported => boolean() | nil, + :lensSupported => boolean() | nil, + :tapToReadOptimizationSupported => boolean() | nil, + :inDialogAccountLinkingSupported => boolean() | nil, + :mapsDialogsSupported => boolean() | nil, + :parentalControlsSupported => boolean() | nil, + :bypassDiDcCheckForComms => boolean() | nil, + :aaeNotificationSourceSupported => boolean() | nil, + :liveCardsSupported => boolean() | nil, + :viewReminderHubPageNotSupported => boolean() | nil, + :persistentDisplaySupported => boolean() | nil, + :acpSupport => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiAssistantContinuedPresenceSupport.t() + | nil, + :bypassMsgNotificationDismissal => boolean() | nil, + :alarmTimerManagerApiSupported => boolean() | nil, + :client1mProvidersSupported => boolean() | nil, + :justInTimeSupported => boolean() | nil, + :immersiveCanvasSupport => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiImmersiveCanvasSupport.t() | nil, + :isPairedPhoneContactUploadNeededForComms => boolean() | nil + } + + field(:isPairedPhoneNeededForComms) + + field(:actionV2SupportedFeatures, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiActionV2SupportedFeatures + ) + + field(:mediaControlSupport, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiMediaControlSupport + ) + + field(:privacyAwareLockscreenSupported) + field(:immersiveCanvasConfirmationMessageSupported) + field(:whatsNextSupported) + field(:masqueradeModeSupported) + field(:crossDeviceBroadcastSupported) + field(:duoGroupCallingSupported) + field(:sleepSensingSupported) + field(:duoClientApiFeatures) + + field(:fitnessFeatureSupport, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiFitnessFeatureSupport + ) + + field(:funtimeSupported) + field(:shLockScreenSupported) + field(:assistantExploreSupported) + field(:assistantForKidsSupported) + + field(:transactionFeaturesSupport, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTransactionFeaturesSupport + ) + + field(:noInputResponseSupported) + field(:hasPhysicalRadio) + field(:opaOnSearchSupported) + + field(:sunriseFeaturesSupport, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSunriseFeaturesSupport + ) + + field(:mediaSessionDetection) + field(:gdiSupported) + field(:thirdPartyGuiSupported) + field(:gearheadNotificationSourceSupported) + + field(:fluidActionsSupport, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiFluidActionsSupport + ) + + field(:meetSupported) + field(:transactionsVersion) + field(:readNotificationSummarizationSupported) + field(:confirmationBeforeReadingMultipleMessagesSupported) + field(:conversationalCareSupported) + field(:warmWelcomeTutorialSupported) + field(:appControlSupport, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAppControlSupport) + field(:csatVisualOverlaySupported) + field(:usesSeparateFullViewer) + + field(:suggestionsSupport, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSuggestionsSupport + ) + + field(:crossDeviceBroadcastVersion) + field(:readMessagesTtsTaperingSupported) + field(:remoteCloudCastingEnabled) + field(:clientOpResultBatchingSupported) + field(:launchKeyboardSupported) + field(:serverGeneratedFeedbackChipsEnabled) + field(:lottieAnimationSupport) + field(:signInMethod, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSignInMethod) + field(:soliGestureDetectionSupported) + field(:webBrowserSupported) + field(:zoomSupported) + field(:smartspaceCrossDeviceTimerSupported) + field(:lensSupported) + field(:tapToReadOptimizationSupported) + field(:inDialogAccountLinkingSupported) + field(:mapsDialogsSupported) + field(:parentalControlsSupported) + field(:bypassDiDcCheckForComms) + field(:aaeNotificationSourceSupported) + field(:liveCardsSupported) + field(:viewReminderHubPageNotSupported) + field(:persistentDisplaySupported) + + field(:acpSupport, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiAssistantContinuedPresenceSupport + ) + + field(:bypassMsgNotificationDismissal) + field(:alarmTimerManagerApiSupported) + field(:client1mProvidersSupported) + field(:justInTimeSupported) + + field(:immersiveCanvasSupport, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiImmersiveCanvasSupport + ) + + field(:isPairedPhoneContactUploadNeededForComms) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedFeatures do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedFeatures.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_protocol_version.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_protocol_version.ex new file mode 100644 index 0000000000..2d72fa6a51 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_protocol_version.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProtocolVersion do + @moduledoc """ + Contains versions of protocol buffer messages. This is the equivalence of a proto3 map, keyed by a protocol buffer message’s name, and the value is the version of this message. e.g. {"assistant.api.core_types.Timer": 2, "assistant.api.core_types.Alarm": 1} See go/assistant-protocol-versioning for more details. + + ## Attributes + + * `messageVersion` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProtocolVersionMessageVersionPair.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :messageVersion => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProtocolVersionMessageVersionPair.t() + ) + | nil + } + + field(:messageVersion, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProtocolVersionMessageVersionPair, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProtocolVersion do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProtocolVersion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProtocolVersion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_protocol_version_message_version_pair.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_protocol_version_message_version_pair.ex new file mode 100644 index 0000000000..e306c13a92 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_protocol_version_message_version_pair.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProtocolVersionMessageVersionPair do + @moduledoc """ + + + ## Attributes + + * `messageName` (*type:* `String.t`, *default:* `nil`) - The full path of a message which should start from the package name. e.g. "assistant.api.core_types.Timer". + * `version` (*type:* `integer()`, *default:* `nil`) - The supported version number. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :messageName => String.t() | nil, + :version => integer() | nil + } + + field(:messageName) + field(:version) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProtocolVersionMessageVersionPair do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProtocolVersionMessageVersionPair.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProtocolVersionMessageVersionPair do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_provider_types.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_provider_types.ex new file mode 100644 index 0000000000..5ce133b697 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_supported_provider_types.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProviderTypes do + @moduledoc """ + Types of providers that are supported by the client. For example, ChromeOS support both web app and Android app (for eligible devices). + + ## Attributes + + * `supportedTypes` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :supportedTypes => list(String.t()) | nil + } + + field(:supportedTypes, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProviderTypes do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProviderTypes.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSupportedProviderTypes do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_surface_properties.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_surface_properties.ex new file mode 100644 index 0000000000..564fa61670 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_surface_properties.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSurfaceProperties do + @moduledoc """ + Properties of the surface that are not hardware related or feature specific. + + ## Attributes + + * `executionCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiSurfacePropertiesExecutionCapabilities.t`, *default:* `nil`) - + * `prefersGlanceableUi` (*type:* `boolean()`, *default:* `nil`) - Indicates if the surface prefers glanceable UI when rendering Assistant response. (see go/mobile-dr-hbird-glanceable-comms-cuj for more context). + * `responseDisplayFormat` (*type:* `String.t`, *default:* `nil`) - If this field is unset, the response format is unknown + * `supportsMultiResponse` (*type:* `boolean()`, *default:* `nil`) - If true, the client supports receiving multiple responses. See go/multiple-response-in-media-use-cases for more details. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :executionCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSurfacePropertiesExecutionCapabilities.t() + | nil, + :prefersGlanceableUi => boolean() | nil, + :responseDisplayFormat => String.t() | nil, + :supportsMultiResponse => boolean() | nil + } + + field(:executionCapabilities, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSurfacePropertiesExecutionCapabilities + ) + + field(:prefersGlanceableUi) + field(:responseDisplayFormat) + field(:supportsMultiResponse) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSurfaceProperties do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSurfaceProperties.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSurfaceProperties do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_surface_properties_execution_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_surface_properties_execution_capabilities.ex new file mode 100644 index 0000000000..539abdfe72 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_surface_properties_execution_capabilities.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSurfacePropertiesExecutionCapabilities do + @moduledoc """ + Describes the capabilities that are related to the execution of client ops on the device. + + ## Attributes + + * `supportsClientOpPreloading` (*type:* `boolean()`, *default:* `nil`) - Completes the preloading ie., sets up the stage for the execution of client ops on the device while the previous conv delta is being executed. Refer to go/preload-convdelta for more information. + * `supportsNonFinalizedResponses` (*type:* `boolean()`, *default:* `nil`) - A value of true indicates that the client supports streaming of non-finalized responses by use of ClientExecutionParams.response_stream_id. and ClientExecutionParams.to_be_finalized. + * `supportsNonMaterializedInteractions` (*type:* `boolean()`, *default:* `nil`) - If true, the client supports receiving non-materialized interactions (go/as-streaming-protocol-nm). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :supportsClientOpPreloading => boolean() | nil, + :supportsNonFinalizedResponses => boolean() | nil, + :supportsNonMaterializedInteractions => boolean() | nil + } + + field(:supportsClientOpPreloading) + field(:supportsNonFinalizedResponses) + field(:supportsNonMaterializedInteractions) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSurfacePropertiesExecutionCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSurfacePropertiesExecutionCapabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSurfacePropertiesExecutionCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_system_notification_restrictions.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_system_notification_restrictions.ex new file mode 100644 index 0000000000..d4144671ec --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_system_notification_restrictions.ex @@ -0,0 +1,75 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictions do + @moduledoc """ + Restrictions related to system-level notifications. + + ## Attributes + + * `categoryState` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictionsNotificationCategoryState.t)`, *default:* `nil`) - + * `channelState` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictionsNotificationChannelState.t)`, *default:* `nil`) - + * `notificationCapabilities` (*type:* `String.t`, *default:* `nil`) - Specifies whether the surface is able to display notifications. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :categoryState => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictionsNotificationCategoryState.t() + ) + | nil, + :channelState => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictionsNotificationChannelState.t() + ) + | nil, + :notificationCapabilities => String.t() | nil + } + + field(:categoryState, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictionsNotificationCategoryState, + type: :list + ) + + field(:channelState, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictionsNotificationChannelState, + type: :list + ) + + field(:notificationCapabilities) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_system_notification_restrictions_notification_category_state.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_system_notification_restrictions_notification_category_state.ex new file mode 100644 index 0000000000..53136a08fe --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_system_notification_restrictions_notification_category_state.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictionsNotificationCategoryState do + @moduledoc """ + Notification channels state for the new server driven channels. + + ## Attributes + + * `categoryId` (*type:* `integer()`, *default:* `nil`) - Notification channel type. + * `disabled` (*type:* `boolean()`, *default:* `nil`) - Weather the notifications on this channel are disabled. + * `disabledReason` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :categoryId => integer() | nil, + :disabled => boolean() | nil, + :disabledReason => String.t() | nil + } + + field(:categoryId) + field(:disabled) + field(:disabledReason) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictionsNotificationCategoryState do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictionsNotificationCategoryState.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictionsNotificationCategoryState do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_system_notification_restrictions_notification_channel_state.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_system_notification_restrictions_notification_channel_state.ex new file mode 100644 index 0000000000..f733670376 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_system_notification_restrictions_notification_channel_state.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictionsNotificationChannelState do + @moduledoc """ + Notification channels state. + + ## Attributes + + * `channelType` (*type:* `String.t`, *default:* `nil`) - Notification channel type. + * `enabled` (*type:* `boolean()`, *default:* `nil`) - Whether the notifications on this channel are enabled. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :channelType => String.t() | nil, + :enabled => boolean() | nil + } + + field(:channelType) + field(:enabled) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictionsNotificationChannelState do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictionsNotificationChannelState.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiSystemNotificationRestrictionsNotificationChannelState do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_third_party_action_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_third_party_action_config.ex new file mode 100644 index 0000000000..d5c9f22406 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_third_party_action_config.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyActionConfig do + @moduledoc """ + 3P Action Metadata. Next ID: 3 + + ## Attributes + + * `deviceActionCapability` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceActionCapability.t`, *default:* `nil`) - DeviceActionCapability from DeviceModelPackage. + * `projectConfigs` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyActionConfigProjectConfig.t)`, *default:* `nil`) - List of Action project capabilities. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceActionCapability => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceActionCapability.t() + | nil, + :projectConfigs => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyActionConfigProjectConfig.t() + ) + | nil + } + + field(:deviceActionCapability, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceActionCapability + ) + + field(:projectConfigs, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyActionConfigProjectConfig, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyActionConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyActionConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyActionConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_third_party_action_config_project_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_third_party_action_config_project_config.ex new file mode 100644 index 0000000000..b63c950b46 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_third_party_action_config_project_config.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyActionConfigProjectConfig do + @moduledoc """ + Metadata for ActionPackage. Device Actions are disabled by default unless explicitly enabled for the device here, see go/3p-device-actions-v2-design. + + ## Attributes + + * `projectId` (*type:* `String.t`, *default:* `nil`) - Google cloud project id for which the Action Package or Device Model is registered. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :projectId => String.t() | nil + } + + field(:projectId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyActionConfigProjectConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyActionConfigProjectConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyActionConfigProjectConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_third_party_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_third_party_capabilities.ex new file mode 100644 index 0000000000..0ad398ce98 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_third_party_capabilities.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyCapabilities do + @moduledoc """ + + + ## Attributes + + * `dataSharingRestrictions` (*type:* `String.t`, *default:* `nil`) - Restrictions for the device to share any data with third party apps. See details in go/atv-dsc. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataSharingRestrictions => String.t() | nil + } + + field(:dataSharingRestrictions) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiThirdPartyCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_time_of_day.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_time_of_day.ex new file mode 100644 index 0000000000..38d2dd6c6b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_time_of_day.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeOfDay do + @moduledoc """ + A civil time relative to a timezone. + + ## Attributes + + * `hour` (*type:* `integer()`, *default:* `nil`) - The hour, in 0...23. + * `minute` (*type:* `integer()`, *default:* `nil`) - The minute, in 0...59. + * `nanosecond` (*type:* `integer()`, *default:* `nil`) - The fraction of seconds in nanoseconds, in 0..999999999. + * `second` (*type:* `integer()`, *default:* `nil`) - The second, in 0...59. Leap seconds are not supported. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :hour => integer() | nil, + :minute => integer() | nil, + :nanosecond => integer() | nil, + :second => integer() | nil + } + + field(:hour) + field(:minute) + field(:nanosecond) + field(:second) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeOfDay do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeOfDay.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeOfDay do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_time_zone.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_time_zone.ex new file mode 100644 index 0000000000..0a87f9e6ca --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_time_zone.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeZone do + @moduledoc """ + A time zone. Conceptually, a time zone is a set of rules associated with a location that describes a UTC offset and how it changes over time (e.g. Daylight Saving Time). The offset is used to compute the local date and time. + + ## Attributes + + * `ianaId` (*type:* `String.t`, *default:* `nil`) - Time zone in IANA format, e.g. America/Los_Angeles for USA Pacific Time. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ianaId => String.t() | nil + } + + field(:ianaId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeZone do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeZone.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimeZone do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_timestamp.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_timestamp.ex new file mode 100644 index 0000000000..84c7ba87d6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_timestamp.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp do + @moduledoc """ + An absolute point in time independent of timezone or calendar, based on the proto3 Timestamp (//google/protobuf/timestamp.proto). NOTE: THIS IS NO LONGER RECOMMENDED TO BE USED. It was originally defined separately from google.protobuf.Timestamp due to incompatibility with proto2 syntax. The incompatibility issues have since been resolved and so the Google-wide standard representation of google.protobuf.Timestamp should be preferred. In fact, google.protobuf.* protos in general are now recommended to be used in new APIs. + + ## Attributes + + * `nanos` (*type:* `integer()`, *default:* `nil`) - Non-negative fractions of a second at nanosecond resolution. + * `seconds` (*type:* `String.t`, *default:* `nil`) - Seconds of UTC time since the Unix epoch. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nanos => integer() | nil, + :seconds => String.t() | nil + } + + field(:nanos) + field(:seconds) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTimestamp do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_transaction_features_support.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_transaction_features_support.ex new file mode 100644 index 0000000000..521d07f866 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_transaction_features_support.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiTransactionFeaturesSupport do + @moduledoc """ + + + ## Attributes + + * `voicePinSuppressed` (*type:* `boolean()`, *default:* `nil`) - If true, setting this boolean means the device should not support voice PIN. For example, although the phone supports both voice and PIN pad, but we don't want users using voice. https://docs.google.com/document/d/1M8iJQX3GuxGZGeidS8Gl4KJt3LuBWAIlolPlW10DkxU/edit#heading=h.8ovvdd3i2thv + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :voicePinSuppressed => boolean() | nil + } + + field(:voicePinSuppressed) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTransactionFeaturesSupport do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiTransactionFeaturesSupport.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiTransactionFeaturesSupport do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_volume_properties.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_volume_properties.ex new file mode 100644 index 0000000000..a4c0d65470 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_api_volume_properties.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantApiVolumeProperties do + @moduledoc """ + + + ## Attributes + + * `defaultVolumePercentage` (*type:* `integer()`, *default:* `nil`) - The volume percentages for spelled out values. + * `highVolumePercentage` (*type:* `integer()`, *default:* `nil`) - + * `levelStepSize` (*type:* `float()`, *default:* `nil`) - The number of levels to move for a step. + * `lowVolumePercentage` (*type:* `integer()`, *default:* `nil`) - + * `maximumVolumeLevel` (*type:* `integer()`, *default:* `nil`) - The max number of volume levels the client supports. + * `mediumVolumePercentage` (*type:* `integer()`, *default:* `nil`) - + * `veryHighVolumePercentage` (*type:* `integer()`, *default:* `nil`) - + * `veryLowVolumePercentage` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :defaultVolumePercentage => integer() | nil, + :highVolumePercentage => integer() | nil, + :levelStepSize => float() | nil, + :lowVolumePercentage => integer() | nil, + :maximumVolumeLevel => integer() | nil, + :mediumVolumePercentage => integer() | nil, + :veryHighVolumePercentage => integer() | nil, + :veryLowVolumePercentage => integer() | nil + } + + field(:defaultVolumePercentage) + field(:highVolumePercentage) + field(:levelStepSize) + field(:lowVolumePercentage) + field(:maximumVolumeLevel) + field(:mediumVolumePercentage) + field(:veryHighVolumePercentage) + field(:veryLowVolumePercentage) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiVolumeProperties do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantApiVolumeProperties.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantApiVolumeProperties do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_app_provider_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_app_provider_id.ex new file mode 100644 index 0000000000..005dbf33f3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_app_provider_id.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantContextAppProviderId do + @moduledoc """ + LINT.IfChange Identifier for an application provider. NOTE: AppProviderId contains surface-specific info, such as the Android package name of the application. This was necessary for supporting current use cases that rely on surface-specific info in feature code. Eventually we want to deprecate AppProviderId and fetch surface-specific info in some other way (e.g. in a surface-translation layer). But until then, we may continue extending AppProviderId with other surface-specific info. + + ## Attributes + + * `activityClassName` (*type:* `String.t`, *default:* `nil`) - The activity class name. E.g. com.google.android.gm.ui.MailActivityGmail + * `androidPackageName` (*type:* `String.t`, *default:* `nil`) - Unique package name that identifies an Android app of the provider. + * `castAppId` (*type:* `String.t`, *default:* `nil`) - Unique cast app id that identifies a Cast app of the provider. + * `versionCode` (*type:* `integer()`, *default:* `nil`) - Version code of the application. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :activityClassName => String.t() | nil, + :androidPackageName => String.t() | nil, + :castAppId => String.t() | nil, + :versionCode => integer() | nil + } + + field(:activityClassName) + field(:androidPackageName) + field(:castAppId) + field(:versionCode) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantContextAppProviderId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantContextAppProviderId.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantContextAppProviderId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_media_provider_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_media_provider_id.ex new file mode 100644 index 0000000000..3b78d0334c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_media_provider_id.ex @@ -0,0 +1,74 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantContextMediaProviderId do + @moduledoc """ + IMPORTANT: This proto is being migrated to ProviderId. If you are adding new field, please add to ProviderId as well. + + ## Attributes + + * `androidPackageName` (*type:* `String.t`, *default:* `nil`) - Unique package name that identifies a Android app of the provider. + * `castAppId` (*type:* `String.t`, *default:* `nil`) - Unique app id that identifies a Cast app of the provider. + * `chromeOsPackageName` (*type:* `String.t`, *default:* `nil`) - Unique package name that identifies a ChromeOS app of the provider. + * `homeAppPackageName` (*type:* `String.t`, *default:* `nil`) - Unique package name that identifies a Home app of the provider. + * `iosBundleIdentifier` (*type:* `String.t`, *default:* `nil`) - Bundle identifier that identifies an iOS app of the provider. + * `kaiOsPackageName` (*type:* `String.t`, *default:* `nil`) - Unique package name that identifies a KaiOS app of the provider. + * `kgProviderKey` (*type:* `String.t`, *default:* `nil`) - Each onboarded provider has a unique provider key. KG provider keys are string identifiers used to identify a provider in some Media backends since mids, names, etc can change. + * `mid` (*type:* `String.t`, *default:* `nil`) - The MID of the provider. A MID is a unique identifier issued by Knowledge Graph for all entities contained in its graph. + * `providerVariant` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderVariant.t`, *default:* `nil`) - Provider variant corresponding to the current MediaProviderId. + * `sipProviderId` (*type:* `String.t`, *default:* `nil`) - Bundle id that identifies an Session Initiation Protocol (SIP) provider. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :androidPackageName => String.t() | nil, + :castAppId => String.t() | nil, + :chromeOsPackageName => String.t() | nil, + :homeAppPackageName => String.t() | nil, + :iosBundleIdentifier => String.t() | nil, + :kaiOsPackageName => String.t() | nil, + :kgProviderKey => String.t() | nil, + :mid => String.t() | nil, + :providerVariant => + GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderVariant.t() | nil, + :sipProviderId => String.t() | nil + } + + field(:androidPackageName) + field(:castAppId) + field(:chromeOsPackageName) + field(:homeAppPackageName) + field(:iosBundleIdentifier) + field(:kaiOsPackageName) + field(:kgProviderKey) + field(:mid) + field(:providerVariant, as: GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderVariant) + field(:sipProviderId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantContextMediaProviderId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantContextMediaProviderId.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantContextMediaProviderId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_provider_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_provider_id.ex new file mode 100644 index 0000000000..021d115101 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_provider_id.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderId do + @moduledoc """ + Identifier used to represent a single application (a.k.a. provider). This model represents the surface-agnostic counterpart for assistant.api.core_types.Provider. E.g. it should avoid directly using package names for Android, bundle identifiers for iOS, etc. We require the transformation between assistant.context.ProviderId and assistant.api.core_types.Provider to either be lossless, or "lossy yet retrievable" (e.g. if package name is not available in ProviderId, it can still be retrieved using the ProviderMappingsModule). NOTE: 1. As of May 2021, verticals are highly fragmented in terms of how they represent/identify a provider, and so we may need to accommodate some vertical-specific representations. However, these should be generalized as much as possible so that they can be used by other verticals if needed. 2. If we need to differentiate between whether a provider is a media provider, app actions provider, timer provider, etc. we should capture this information in the context proto that contains a ProviderId field, rather than in the ProviderId message itself. 3. Any common fields across different provider identifier representations (e.g. ecosystem type) should be part of assistant.context.ProviderId directly. + + ## Attributes + + * `appProviderId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantContextAppProviderId.t`, *default:* `nil`) - TODO(b/241170835) Deprecate this field. + * `ecosystemType` (*type:* `String.t`, *default:* `nil`) - Ecosystem type for this provider. + * `mediaProviderId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantContextMediaProviderId.t`, *default:* `nil`) - DEPRECATED. Fields in MediaProviderId have been pulled out into separate fields in ProviderId and ProviderMetadata. TODO(b/243953766) Deprecate this field. + * `mid` (*type:* `String.t`, *default:* `nil`) - The MID of the provider. A MID is a unique identifier issued by Knowledge Graph for all entities contained in its graph. + * `providerCorpusId` (*type:* `String.t`, *default:* `nil`) - ID issued by the Provider Corpus to uniquely identify a provider entity e.g. an Android app, a Cast app or a Cloud provider. In practice, a single partner can have multiple providers entities. For more detail, see go/se-storage-provider-id. This is the preferred/ standardized ID to use for ProviderId that all use-cases should eventually migrate to. + * `providerVariant` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderVariant.t`, *default:* `nil`) - Provider variant corresponding to the current provider. It's used together with mid to uniquely identify provider. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appProviderId => + GoogleApi.ContentWarehouse.V1.Model.AssistantContextAppProviderId.t() | nil, + :ecosystemType => String.t() | nil, + :mediaProviderId => + GoogleApi.ContentWarehouse.V1.Model.AssistantContextMediaProviderId.t() | nil, + :mid => String.t() | nil, + :providerCorpusId => String.t() | nil, + :providerVariant => + GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderVariant.t() | nil + } + + field(:appProviderId, as: GoogleApi.ContentWarehouse.V1.Model.AssistantContextAppProviderId) + field(:ecosystemType) + field(:mediaProviderId, as: GoogleApi.ContentWarehouse.V1.Model.AssistantContextMediaProviderId) + field(:mid) + field(:providerCorpusId) + field(:providerVariant, as: GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderVariant) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderId.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_provider_selection_policy.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_provider_selection_policy.ex new file mode 100644 index 0000000000..205b45723a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_provider_selection_policy.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionPolicy do + @moduledoc """ + Identifies a business policy used for selecting a given content provider in the form of a name and a resulting scoring action. + + ## Attributes + + * `policyAction` (*type:* `String.t`, *default:* `nil`) - Result of applying the policy. + * `policyName` (*type:* `String.t`, *default:* `nil`) - Name of the policy. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :policyAction => String.t() | nil, + :policyName => String.t() | nil + } + + field(:policyAction) + field(:policyName) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionPolicy do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionPolicy.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionPolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_provider_selection_result.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_provider_selection_result.ex new file mode 100644 index 0000000000..5637366331 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_provider_selection_result.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionResult do + @moduledoc """ + Message that gets returned from the Provider Selection Library (PSL). It encodes the scores, applied policies, and pruning decisions for a given provider candidate. + + ## Attributes + + * `bucketedFinalScore` (*type:* `String.t`, *default:* `nil`) - Alternative bucketed score for use by downstream ranking providers. A raw numeric score is subject to semantic-drift, while a bucket is not. + * `finalScore` (*type:* `number()`, *default:* `nil`) - Final score in the range [0,1] that can be used for ranking providers. Incorporates both policy rules and quality considerations. + * `policyApplied` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionPolicy.t)`, *default:* `nil`) - List of business policies applied to the candidate. + * `shouldPrune` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the candidate should be pruned. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bucketedFinalScore => String.t() | nil, + :finalScore => number() | nil, + :policyApplied => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionPolicy.t()) + | nil, + :shouldPrune => boolean() | nil + } + + field(:bucketedFinalScore) + field(:finalScore) + + field(:policyApplied, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionPolicy, + type: :list + ) + + field(:shouldPrune) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionResult do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_provider_variant.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_provider_variant.ex new file mode 100644 index 0000000000..c02242b096 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_context_provider_variant.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderVariant do + @moduledoc """ + Note: As of May 2021, multiple providers use the same mids (e.g. YouTube Main, YouTube Go, and YouTube Music all have the same mids). However, quite often we end up using surface specific identifiers (e.g. Android package names, iOS bundle identifiers, etc.) to differentiate amongst them. This field allows us to move away from surface specific identifiers towards a surface-agnostic enum representing the same information. + + ## Attributes + + * `emptyMidVariant` (*type:* `String.t`, *default:* `nil`) - + * `spotifyVariant` (*type:* `String.t`, *default:* `nil`) - + * `youtubeVariant` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :emptyMidVariant => String.t() | nil, + :spotifyVariant => String.t() | nil, + :youtubeVariant => String.t() | nil + } + + field(:emptyMidVariant) + field(:spotifyVariant) + field(:youtubeVariant) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderVariant do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderVariant.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderVariant do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_device_targeting_device_targeting_error.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_device_targeting_device_targeting_error.ex new file mode 100644 index 0000000000..e269cdf94e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_device_targeting_device_targeting_error.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDeviceTargetingDeviceTargetingError do + @moduledoc """ + The information associated with an error while selecting the target device. Next ID: 2 + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDeviceTargetingDeviceTargetingError do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDeviceTargetingDeviceTargetingError.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDeviceTargetingDeviceTargetingError do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_alarm_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_alarm_capability.ex new file mode 100644 index 0000000000..969a0a1dbb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_alarm_capability.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoAlarmCapability do + @moduledoc """ + Capability with regard to support of alarms by the client. + + ## Attributes + + * `maxSupportedAlarms` (*type:* `integer()`, *default:* `nil`) - Maximum number of alarms that can be created on the client. Zero or unset indicates no maximum limit. + * `restrictAlarmsToNextDay` (*type:* `boolean()`, *default:* `nil`) - Whether the client restricts alarms to ring within the next 24 hours. + * `supportsGenericMutations` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports mutation of any alarm attribute such as time_pattern, recurrence_pattern, etc through the MUTATE action. If this is false, MUTATE may only be used to disable or dismiss an alarm. This field is true by default for backwards-compatibility; clients which don't support mutation outside of Disable/DismissAlarm should explicitly set this to false. + * `supportsStopAction` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports the STOP alarm action. If this is false, stop actions will be represented by the MUTATE action, and the device may need to check alarm state to determine if there's a firing alarm that needs to be dismissed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :maxSupportedAlarms => integer() | nil, + :restrictAlarmsToNextDay => boolean() | nil, + :supportsGenericMutations => boolean() | nil, + :supportsStopAction => boolean() | nil + } + + field(:maxSupportedAlarms) + field(:restrictAlarmsToNextDay) + field(:supportsGenericMutations) + field(:supportsStopAction) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoAlarmCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoAlarmCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoAlarmCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_arg_spec.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_arg_spec.ex new file mode 100644 index 0000000000..46d12290f7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_arg_spec.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoArgSpec do + @moduledoc """ + + + ## Attributes + + * `intValueSpec` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoIntValueSpec.t`, *default:* `nil`) - + * `optionValueSpec` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoOptionValueSpec.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :intValueSpec => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoIntValueSpec.t() + | nil, + :optionValueSpec => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoOptionValueSpec.t() + | nil, + :type => String.t() | nil + } + + field(:intValueSpec, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoIntValueSpec + ) + + field(:optionValueSpec, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoOptionValueSpec + ) + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoArgSpec do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoArgSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoArgSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_call_call_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_call_call_capability.ex new file mode 100644 index 0000000000..5ee204eb63 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_call_call_capability.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCallCallCapability do + @moduledoc """ + + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCallCallCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCallCallCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCallCallCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_client_reconnect_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_client_reconnect_capability.ex new file mode 100644 index 0000000000..cb5e40a55f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_client_reconnect_capability.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoClientReconnectCapability do + @moduledoc """ + + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoClientReconnectCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoClientReconnectCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoClientReconnectCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_cloud_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_cloud_capability.ex new file mode 100644 index 0000000000..70d22ac09c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_cloud_capability.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudCapability do + @moduledoc """ + States the cloud capabilities of the device, i.e. the endpoint(s) to use for cloud execution of Actions or Registration. + + ## Attributes + + * `cloudEndpoints` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudEndpoint.t)`, *default:* `nil`) - The list of CloudEndpoints supported by this Device Model. Note that each should have a unique |name|. If any cloud endpoints are provided here, then the first one in the list will be used by default for all Cloud Execution. An Intent may override the default by providing an |execution_config|. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudEndpoints => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudEndpoint.t() + ) + | nil + } + + field(:cloudEndpoints, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudEndpoint, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_cloud_endpoint.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_cloud_endpoint.ex new file mode 100644 index 0000000000..ec676b7a35 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_cloud_endpoint.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudEndpoint do + @moduledoc """ + A cloud endpoints associates with this device, it can be used for query parsing, or cloud execution. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - The name for this cloud endpoint. It's unique per Locale. This is not an API resource name. Ex: sample-nlu-endpoint + * `scopes` (*type:* `list(String.t)`, *default:* `nil`) - The list of scopes to be provided in the OAuth2 token. They must be a subset of the scopes registered in the Account Linking flow, or the request will fail. If the client itself provides the token, then this field is ignored. + * `url` (*type:* `String.t`, *default:* `nil`) - The URL for this endpoint, it must start with https. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :scopes => list(String.t()) | nil, + :url => String.t() | nil + } + + field(:name) + field(:scopes, type: :list) + field(:url) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudEndpoint do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudEndpoint.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudEndpoint do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_core_dismiss_assistant_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_core_dismiss_assistant_capability.ex new file mode 100644 index 0000000000..439f463f51 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_core_dismiss_assistant_capability.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCoreDismissAssistantCapability do + @moduledoc """ + + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCoreDismissAssistantCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCoreDismissAssistantCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCoreDismissAssistantCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_device_action_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_device_action_capability.ex new file mode 100644 index 0000000000..df8e3c18b5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_device_action_capability.ex @@ -0,0 +1,105 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceActionCapability do + @moduledoc """ + This capability represents device action needed capability. Next ID: 10 + + ## Attributes + + * `assistantDeviceInRoomOptOut` (*type:* `boolean()`, *default:* `nil`) - Integrate your device with Google's Smart Home solution by putting your device into Google's Home Graph, a database that stores and provides contextual data about the home and its devices. For example, Home Graph can store the concept of a living room that contains multiple types of devices, when you say "turn on the light" to a device, if you have light in the living room, that light will be turned on. + * `builtInIntentMode` (*type:* `String.t`, *default:* `nil`) - Specifies behavior for built-in device actions for this device model. If not specified, defaults to ENABLE_CONFIGURED_INTENTS_ONLY. + * `customIntentMode` (*type:* `String.t`, *default:* `nil`) - Specifies which custom device actions should be enabled for this device model. This will only affect the behavior of intents corresponding to those from the Action Package of this project. If not specified, defaults to ENABLE_ALL. + * `defaultExecutionConfig` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionConfig.t`, *default:* `nil`) - Default instructions for routing of any Intent. The data here could be overridden for specific Intents if provided directly in the 'intents' field. + * `inlinedActionCapability` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInlinedActionCapability.t`, *default:* `nil`) - Specifies capabilities for device actions that are inlined in the google.assistant.embedded.v1.DeviceAction message. + * `intents` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoIntent.t)`, *default:* `nil`) - Intent configurations. Built-in and custom intents may be configured here. Note that built-in intents will always behave with IntentMode of ENABLE_CONFIGURED_INTENTS_ONLY. The IntentMode for custom intents can be changed using the custom_intent_mode. To configure an intent, list it here with its intent name, e.g. "MY_CUSTOM_INTENT", "google.assistant.car.model.capabilities.AC_TEMPERATURE". + * `providedData` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProvidedData.t)`, *default:* `nil`) - Provided data which augments the device action capabilities. Some built-in intents may require additional configuration to be provided. One example could be the list of channels available for the `action.intent.SelectChannel` intent. + * `traits` (*type:* `list(String.t)`, *default:* `nil`) - List of built-in traits such as "action.devices.traits.OnOff" See java/com/google/home/graph/service/config/protoconf.pi As of Nov. 2017, we also support custom traits for EAP users. We'll eventually disable custom traits once custom actions are in place. + * `understandingConfig` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoUnderstandingConfig.t`, *default:* `nil`) - Specifies the format how Google routes queries to 3P cloud. By default, this field is unset, all partners should get shallow NLU. This is needed *ONLY* for specific partners for strong business reasons. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :assistantDeviceInRoomOptOut => boolean() | nil, + :builtInIntentMode => String.t() | nil, + :customIntentMode => String.t() | nil, + :defaultExecutionConfig => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionConfig.t() + | nil, + :inlinedActionCapability => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInlinedActionCapability.t() + | nil, + :intents => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoIntent.t()) + | nil, + :providedData => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProvidedData.t() + ) + | nil, + :traits => list(String.t()) | nil, + :understandingConfig => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoUnderstandingConfig.t() + | nil + } + + field(:assistantDeviceInRoomOptOut) + field(:builtInIntentMode) + field(:customIntentMode) + + field(:defaultExecutionConfig, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionConfig + ) + + field(:inlinedActionCapability, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInlinedActionCapability + ) + + field(:intents, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoIntent, + type: :list + ) + + field(:providedData, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProvidedData, + type: :list + ) + + field(:traits, type: :list) + + field(:understandingConfig, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoUnderstandingConfig + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceActionCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceActionCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceActionCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_device_modify_setting_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_device_modify_setting_capability.ex new file mode 100644 index 0000000000..1fe4c0a367 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_device_modify_setting_capability.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceModifySettingCapability do + @moduledoc """ + + + ## Attributes + + * `clientOpProperty` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clientOpProperty => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty.t() + | nil + } + + field(:clientOpProperty, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceModifySettingCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceModifySettingCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceModifySettingCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_device_take_photo_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_device_take_photo_capability.ex new file mode 100644 index 0000000000..410dd01251 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_device_take_photo_capability.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceTakePhotoCapability do + @moduledoc """ + + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceTakePhotoCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceTakePhotoCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceTakePhotoCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_execution_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_execution_config.ex new file mode 100644 index 0000000000..77d486d453 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_execution_config.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionConfig do + @moduledoc """ + Specifies the routing capabilities of the Intent. It will apply only when the Intent is triggered. Next ID: 8 + + ## Attributes + + * `cloudEndpointName` (*type:* `String.t`, *default:* `nil`) - Instructions for performing a cloud execution request for the Intent when the execution_type is set to CLOUD. If non-empty, then the device execution would be routed to the CloudEndpoint specified by this name. The Account Linking exchange may be performed to fetch the OAuth access token, and the access token will be included in the HTTP header. + * `cloudIntentTranslationDisabled` (*type:* `boolean()`, *default:* `nil`) - If this field is set, then the Syndication cloud call will be disabled for this intent. Note this only applies if any Syndication cloud endpoint is associated with the Device Model, otherwise setting this field does nothing. By default, all Intents that are enabled and supported by the Syndication API will be routed through the Syndication cloud endpoint if it's provided. + * `intentCommandFormat` (*type:* `String.t`, *default:* `nil`) - Specifies the intent command format for this Action. For example, in order to launch an Android intent instead of receiving the device action payload on the client, then this field can be set with "intent:/#Intent;...;my_extra={$.params.channels[0].channelCode};end" The parameter "{$.params.channels[0].channelCode}" is in JSON path format, and will be replaced with the content from the original device action payload. Thus, with # JSON "execution": [ { "command": "action.devices.commands.SelectChannel", "params": { "channels": [{ "channelName": "exampleChannel", "channelCode": "1-1" }] } } ] as the original action result, then the final result would look like "intent:/#Intent;...;my_extra=\\"1-1\\";end" + * `localDisabled` (*type:* `boolean()`, *default:* `nil`) - If this field is set, then local execution capability is disabled for all matching intents. + * `localExecutionType` (*type:* `String.t`, *default:* `nil`) - Specifies how to execute this Action when it is invoked locally (from the same device.) + * `remoteDisabled` (*type:* `boolean()`, *default:* `nil`) - If this field is set, then remote execution capability is disabled for all matching intents. + * `remoteExecutionType` (*type:* `String.t`, *default:* `nil`) - Specifies how to execute this Action when it is invoked remotely (from a different device.) + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudEndpointName => String.t() | nil, + :cloudIntentTranslationDisabled => boolean() | nil, + :intentCommandFormat => String.t() | nil, + :localDisabled => boolean() | nil, + :localExecutionType => String.t() | nil, + :remoteDisabled => boolean() | nil, + :remoteExecutionType => String.t() | nil + } + + field(:cloudEndpointName) + field(:cloudIntentTranslationDisabled) + field(:intentCommandFormat) + field(:localDisabled) + field(:localExecutionType) + field(:remoteDisabled) + field(:remoteExecutionType) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_execution_wait_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_execution_wait_capability.ex new file mode 100644 index 0000000000..5dd6fc40fd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_execution_wait_capability.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionWaitCapability do + @moduledoc """ + + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionWaitCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionWaitCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionWaitCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_inlined_action_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_inlined_action_capability.ex new file mode 100644 index 0000000000..f99f7ee1ee --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_inlined_action_capability.ex @@ -0,0 +1,95 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInlinedActionCapability do + @moduledoc """ + + + ## Attributes + + * `alarm` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoAlarmCapability.t`, *default:* `nil`) - Specifies capabilities for handling on-device alarms. The presence of this field, even if empty, implies that the device supports alarms. + * `responseLimits` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoResponseLimits.t`, *default:* `nil`) - Specifies the size limits on responses. If message is not defined then no limits exist. + * `supportSdkExecute` (*type:* `boolean()`, *default:* `nil`) - Whether this device model package support sdk.EXECUTE client_op (a.k.a action.devices.EXECUTE intent), which will be filled into google.assistant.embedded.v1.DeviceAction.device_request_json. It is default to true (and not public), since all 3P will depends on the device_request_json. Only internal projects like Edoras will set this to false. + * `supportedDeviceOps` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSupportedDeviceOps.t`, *default:* `nil`) - Specifies capabilities for handling assistant.embedded.v1.DeviceOp. + * `supportsMultiResponse` (*type:* `boolean()`, *default:* `nil`) - Specifies whether server can send a series of responses for a single query. Example: Routines where multiple actions to be executed one after another. + * `timer` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTimerCapability.t`, *default:* `nil`) - Specifies capabilities for handling on-device timers. The presence of this field, even if empty, implies that the device supports timers. + * `ttsOutput` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTtsOutputCapability.t`, *default:* `nil`) - Specifies whether client supports receiving `DeviceAction.tts_output`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alarm => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoAlarmCapability.t() + | nil, + :responseLimits => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoResponseLimits.t() + | nil, + :supportSdkExecute => boolean() | nil, + :supportedDeviceOps => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSupportedDeviceOps.t() + | nil, + :supportsMultiResponse => boolean() | nil, + :timer => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTimerCapability.t() + | nil, + :ttsOutput => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTtsOutputCapability.t() + | nil + } + + field(:alarm, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoAlarmCapability + ) + + field(:responseLimits, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoResponseLimits + ) + + field(:supportSdkExecute) + + field(:supportedDeviceOps, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSupportedDeviceOps + ) + + field(:supportsMultiResponse) + + field(:timer, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTimerCapability + ) + + field(:ttsOutput, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTtsOutputCapability + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInlinedActionCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInlinedActionCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInlinedActionCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_int_value_spec.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_int_value_spec.ex new file mode 100644 index 0000000000..2643de03ac --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_int_value_spec.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoIntValueSpec do + @moduledoc """ + + + ## Attributes + + * `maxValue` (*type:* `String.t`, *default:* `nil`) - + * `minValue` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :maxValue => String.t() | nil, + :minValue => String.t() | nil + } + + field(:maxValue) + field(:minValue) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoIntValueSpec do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoIntValueSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoIntValueSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_intent.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_intent.ex new file mode 100644 index 0000000000..a15388825b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_intent.ex @@ -0,0 +1,90 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoIntent do + @moduledoc """ + An intent configures the behavior of a device action for this device. Next ID: 7 + + ## Attributes + + * `argSpecs` (*type:* `%{optional(String.t) => GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoArgSpec.t}`, *default:* `nil`) - List of arguments associated this intent. Each of which depends a template for the expected argument. + * `executionConfig` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionConfig.t`, *default:* `nil`) - Instructions for the routing of this Intent. + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the intent. + * `providedDataNames` (*type:* `list(String.t)`, *default:* `nil`) - List of provided data names used by this intent. Note that some built-in intents will not function properly without provided data, such as `action.intent.SwitchChannel` or `action.intent.AppSelector`. + * `securityConfig` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSecurityConfig.t`, *default:* `nil`) - Security configuration for this Intent. + * `triggerConditions` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTriggerCondition.t)`, *default:* `nil`) - The conditions which must be met by the device before executing this Intent. More than one can be provided, in which case the conditions operate with the "AND" operator, i.e. the first condition which is failed will be used to restrict the execution of this Intent. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :argSpecs => + %{ + optional(String.t()) => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoArgSpec.t() + } + | nil, + :executionConfig => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionConfig.t() + | nil, + :name => String.t() | nil, + :providedDataNames => list(String.t()) | nil, + :securityConfig => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSecurityConfig.t() + | nil, + :triggerConditions => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTriggerCondition.t() + ) + | nil + } + + field(:argSpecs, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoArgSpec, + type: :map + ) + + field(:executionConfig, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionConfig + ) + + field(:name) + field(:providedDataNames, type: :list) + + field(:securityConfig, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSecurityConfig + ) + + field(:triggerConditions, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTriggerCondition, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoIntent do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoIntent.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoIntent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_internal_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_internal_capability.ex new file mode 100644 index 0000000000..c5c96fd9ed --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_internal_capability.ex @@ -0,0 +1,94 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInternalCapability do + @moduledoc """ + Capabilities that may only be set internally. Only internal callers (i.e. Googlers or Google owned projects) will be able to set these, thanks to go/assistant-device-model-package-ownership. + + ## Attributes + + * `allowedAssistantSdkAuthProjectIds` (*type:* `list(String.t)`, *default:* `nil`) - When using the Assistant SDK (Embedded Assistant API), the project id used to authenticate the gRPC request is checked and must match against the project id of the Device Model. We will additionally allow the project ids listed in the device model here to be let through. See https://docs.google.com/document/d/1InAczpQJs6LCH1l--2yy67JM9hsBJbiL57fusnL3A8A + * `appCapabilitiesFromDeviceInstallApps` (*type:* `boolean()`, *default:* `nil`) - Load the assistant.api.AppCapabilities from DEVICE_INSTALLED_APP footprint corpus. See go/edoras-geller. + * `cloudDeviceActionEndpoint` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudEndpoint.t`, *default:* `nil`) - Uses this endpoint for device action fulfillment when there's no endpoint in syndication_metadata. 1p surfaces/devices such as telephone can enable this for its cloud action fulfillment without enabling the whole syndication experience. + * `deviceActionsEligibleForHighConfidence` (*type:* `boolean()`, *default:* `nil`) - Signals that the model will have updated ranking behavior as described in https://docs.google.com/document/d/1SN_AgadRr_cdIrFe-qgRbIX2J1sOE7lcRXAvM1GUPoU. + * `forceSignIn` (*type:* `boolean()`, *default:* `nil`) - Make Google sign-in mandatory for using Google Assistant on the device. (This bit is initially added for Samsung TV.) + * `forceThirdPartyDeviceIdForDeviceLookup` (*type:* `boolean()`, *default:* `nil`) - When looking up device (for example for disclosure consent check), then always use the third party device id for lookup instead of any other device id which would normally have higher precedence, such as cast_device_id. + * `forceTransactionsAuthentication` (*type:* `boolean()`, *default:* `nil`) - Adds "transactions.AUTHENTICATION" for car automation probers. Since the probers run as Assistant SDK requests, voice match always fails for car automation requests, so we add this client op as a hack to allow probers to appear as personal devices and bypass voice match. See b/137221645. + * `hasCustomSearchResultsRendering` (*type:* `boolean()`, *default:* `nil`) - Signals that this device can "render" raw search results even with no screen (e.g., using a text reader). If this is true, fallback search results can be returned as a custom device action in a SearchResults message. http://google3/assistant/embedded/proto_translation/utils/proto/search_results.proto + * `overrideProjectIdForDeviceLookup` (*type:* `String.t`, *default:* `nil`) - When looking up device (for example for disclosure consent check), use this project id as part of the primary key for the device lookup (i.e. instead of the device_config.agent_id.) The precedence is as follows: 1) this field, if set for the device's device model 2) device_config.agent_id 3) device_model.project_id + * `stadiaAssistantConfig` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInternalCapabilityStadiaAssistantConfig.t`, *default:* `nil`) - + * `telephoneAttribution` (*type:* `boolean()`, *default:* `nil`) - Telephone server is able to send attribution to user feature phone. See go/telephone-attribution. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowedAssistantSdkAuthProjectIds => list(String.t()) | nil, + :appCapabilitiesFromDeviceInstallApps => boolean() | nil, + :cloudDeviceActionEndpoint => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudEndpoint.t() + | nil, + :deviceActionsEligibleForHighConfidence => boolean() | nil, + :forceSignIn => boolean() | nil, + :forceThirdPartyDeviceIdForDeviceLookup => boolean() | nil, + :forceTransactionsAuthentication => boolean() | nil, + :hasCustomSearchResultsRendering => boolean() | nil, + :overrideProjectIdForDeviceLookup => String.t() | nil, + :stadiaAssistantConfig => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInternalCapabilityStadiaAssistantConfig.t() + | nil, + :telephoneAttribution => boolean() | nil + } + + field(:allowedAssistantSdkAuthProjectIds, type: :list) + field(:appCapabilitiesFromDeviceInstallApps) + + field(:cloudDeviceActionEndpoint, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCloudEndpoint + ) + + field(:deviceActionsEligibleForHighConfidence) + field(:forceSignIn) + field(:forceThirdPartyDeviceIdForDeviceLookup) + field(:forceTransactionsAuthentication) + field(:hasCustomSearchResultsRendering) + field(:overrideProjectIdForDeviceLookup) + + field(:stadiaAssistantConfig, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInternalCapabilityStadiaAssistantConfig + ) + + field(:telephoneAttribution) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInternalCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInternalCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInternalCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_internal_capability_stadia_assistant_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_internal_capability_stadia_assistant_config.ex new file mode 100644 index 0000000000..9bd6ee227d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_internal_capability_stadia_assistant_config.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInternalCapabilityStadiaAssistantConfig do + @moduledoc """ + The StadiaAssistantConfig. This field should only be set if the device model is a Stadia. + + ## Attributes + + * `stadiaPlatform` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :stadiaPlatform => String.t() | nil + } + + field(:stadiaPlatform) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInternalCapabilityStadiaAssistantConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInternalCapabilityStadiaAssistantConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoInternalCapabilityStadiaAssistantConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_next_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_next_capability.ex new file mode 100644 index 0000000000..c8d1a442be --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_next_capability.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaNextCapability do + @moduledoc """ + + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaNextCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaNextCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaNextCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_pause_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_pause_capability.ex new file mode 100644 index 0000000000..accecf143b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_pause_capability.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPauseCapability do + @moduledoc """ + + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPauseCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPauseCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPauseCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_play_media_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_play_media_capability.ex new file mode 100644 index 0000000000..d1f5ab4030 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_play_media_capability.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPlayMediaCapability do + @moduledoc """ + + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPlayMediaCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPlayMediaCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPlayMediaCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_previous_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_previous_capability.ex new file mode 100644 index 0000000000..18d8d5919c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_previous_capability.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPreviousCapability do + @moduledoc """ + + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPreviousCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPreviousCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPreviousCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_resume_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_resume_capability.ex new file mode 100644 index 0000000000..a58c78acd0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_resume_capability.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaResumeCapability do + @moduledoc """ + + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaResumeCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaResumeCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaResumeCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_show_controls_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_show_controls_capability.ex new file mode 100644 index 0000000000..5d326246ad --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_show_controls_capability.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaShowControlsCapability do + @moduledoc """ + + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaShowControlsCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaShowControlsCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaShowControlsCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_stop_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_stop_capability.ex new file mode 100644 index 0000000000..93a1538ce8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_media_stop_capability.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaStopCapability do + @moduledoc """ + + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaStopCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaStopCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaStopCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_option_value_spec.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_option_value_spec.ex new file mode 100644 index 0000000000..125464ae83 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_option_value_spec.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoOptionValueSpec do + @moduledoc """ + + + ## Attributes + + * `values` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :values => list(String.t()) | nil + } + + field(:values, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoOptionValueSpec do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoOptionValueSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoOptionValueSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_provided_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_provided_data.ex new file mode 100644 index 0000000000..66ea833450 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_provided_data.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProvidedData do + @moduledoc """ + Provided data which augments the device action capabilities. Some built-in intents may require additional configuration to be provided. One example could be the list of channels available for the `action.intent.SelectChannel` intent. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil + } + + field(:name) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProvidedData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProvidedData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProvidedData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_provider_fulfill_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_provider_fulfill_capability.ex new file mode 100644 index 0000000000..e707eea9f2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_provider_fulfill_capability.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProviderFulfillCapability do + @moduledoc """ + + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProviderFulfillCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProviderFulfillCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProviderFulfillCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_provider_open_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_provider_open_capability.ex new file mode 100644 index 0000000000..ba162c4505 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_provider_open_capability.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProviderOpenCapability do + @moduledoc """ + + + ## Attributes + + * `clientOpProperty` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiClientOpPropertiesProviderOpenClientOpProperty.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clientOpProperty => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiClientOpPropertiesProviderOpenClientOpProperty.t() + | nil + } + + field(:clientOpProperty, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantApiClientOpPropertiesProviderOpenClientOpProperty + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProviderOpenCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProviderOpenCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProviderOpenCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_response_limits.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_response_limits.ex new file mode 100644 index 0000000000..8985ebeaf4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_response_limits.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoResponseLimits do + @moduledoc """ + Specifies the size limits on responses receivable by the client. + + ## Attributes + + * `maxAssistResponseSizeBytes` (*type:* `integer()`, *default:* `nil`) - Max size in bytes of the total serialized AssistResponse receivable by the client. If response exceeds this max, response may be modified by the server. + * `maxDisplayLinesBytes` (*type:* `integer()`, *default:* `nil`) - Maximum size in bytes (not characters) of text the display can handle (which may be different from how much the display can show at a time due to scrolling). + * `maxSuggestionChipBytes` (*type:* `integer()`, *default:* `nil`) - Maximum size in bytes (not characters) for each suggestion chip. + * `maxSuggestionChips` (*type:* `integer()`, *default:* `nil`) - Maximum number of suggestion chips the device can handle to display. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :maxAssistResponseSizeBytes => integer() | nil, + :maxDisplayLinesBytes => integer() | nil, + :maxSuggestionChipBytes => integer() | nil, + :maxSuggestionChips => integer() | nil + } + + field(:maxAssistResponseSizeBytes) + field(:maxDisplayLinesBytes) + field(:maxSuggestionChipBytes) + field(:maxSuggestionChips) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoResponseLimits do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoResponseLimits.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoResponseLimits do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_security_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_security_config.ex new file mode 100644 index 0000000000..44180f7af5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_security_config.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSecurityConfig do + @moduledoc """ + Encapsulates security configuration for a single intent of a device model. + + ## Attributes + + * `authMechanismForRemoteRequests` (*type:* `String.t`, *default:* `nil`) - Specifies auth mechanism to be used upon remote request for device action. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :authMechanismForRemoteRequests => String.t() | nil + } + + field(:authMechanismForRemoteRequests) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSecurityConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSecurityConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSecurityConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_send_chat_message_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_send_chat_message_capability.ex new file mode 100644 index 0000000000..a866781b02 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_send_chat_message_capability.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSendChatMessageCapability do + @moduledoc """ + + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSendChatMessageCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSendChatMessageCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSendChatMessageCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_supported_device_ops.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_supported_device_ops.ex new file mode 100644 index 0000000000..df34cdc9b5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_supported_device_ops.ex @@ -0,0 +1,178 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSupportedDeviceOps do + @moduledoc """ + This message will specify supports for fields in |assistant.embedded.v1.DeviceOp|, for a device model package. See go/easi-client-op2 for more info. Next ID: 17 + + ## Attributes + + * `callCall` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCallCallCapability.t`, *default:* `nil`) - |call_call| specifies the support for the call.CALL clientop, and the corresponding call_call field in assistant.embedded.v1.DeviceOp. + * `clientReconnect` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoClientReconnectCapability.t`, *default:* `nil`) - |client_reconnect| indicates support for client.RECONNECT using assistant.embedded.v1.DeviceOp. There is an alternative API/capability for client.RECONNECT specified in RoutineCapability.supports_reconnect. Client should choose between this and RoutineCapability but not both. + * `coreDismissAssistant` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCoreDismissAssistantCapability.t`, *default:* `nil`) - [core_dismiss_assistant] specifies the support for core.DISMISS_ASSISTANT client_op and the corresponding core_dismiss_assistant field in assistant.embedded.v1.DeviceOp. + * `deviceModifySetting` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceModifySettingCapability.t`, *default:* `nil`) - |device_modify_setting| specifies the support for device.MODIFY_SETTING client_op, and the corresponding device_modify_setting field in assistant.embedded.v1.DeviceOp. + * `deviceTakePhoto` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceTakePhotoCapability.t`, *default:* `nil`) - [device_take_photo] specifies the support for the device.TAKE_PHOTO clientop, and the corresponding device_take_photo field in assistant.embedded.v1.DeviceOp. + * `executionWait` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionWaitCapability.t`, *default:* `nil`) - |execution_wait| specifies the support for execution.WAIT client_op, and the corresponding execution_wait field in assistant.embedded.v1.DeviceOp. + * `mediaNext` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaNextCapability.t`, *default:* `nil`) - + * `mediaPause` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPauseCapability.t`, *default:* `nil`) - + * `mediaPlayMedia` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPlayMediaCapability.t`, *default:* `nil`) - + * `mediaPrevious` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPreviousCapability.t`, *default:* `nil`) - + * `mediaResume` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaResumeCapability.t`, *default:* `nil`) - + * `mediaShowControls` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaShowControlsCapability.t`, *default:* `nil`) - + * `mediaStop` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaStopCapability.t`, *default:* `nil`) - + * `providerFulfill` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProviderFulfillCapability.t`, *default:* `nil`) - |provider_fulfill| specifies the support for provider.FULFILL client_op, and the corresponding provider_fulfill field in assistant.embedded.v1.DeviceOp. + * `providerOpen` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProviderOpenCapability.t`, *default:* `nil`) - |provider_open| specifies the support for provider.OPEN client_op, and the corresponding provider_open field in assistant.embedded.v1.DeviceOp. + * `sendChatMessage` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSendChatMessageCapability.t`, *default:* `nil`) - |send_chat_message| specifies the support for the chat_message.SEND clientop, and the corresponding send_chat_message field in assistant.embedded.v1.DeviceOp. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :callCall => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCallCallCapability.t() + | nil, + :clientReconnect => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoClientReconnectCapability.t() + | nil, + :coreDismissAssistant => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCoreDismissAssistantCapability.t() + | nil, + :deviceModifySetting => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceModifySettingCapability.t() + | nil, + :deviceTakePhoto => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceTakePhotoCapability.t() + | nil, + :executionWait => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionWaitCapability.t() + | nil, + :mediaNext => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaNextCapability.t() + | nil, + :mediaPause => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPauseCapability.t() + | nil, + :mediaPlayMedia => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPlayMediaCapability.t() + | nil, + :mediaPrevious => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPreviousCapability.t() + | nil, + :mediaResume => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaResumeCapability.t() + | nil, + :mediaShowControls => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaShowControlsCapability.t() + | nil, + :mediaStop => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaStopCapability.t() + | nil, + :providerFulfill => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProviderFulfillCapability.t() + | nil, + :providerOpen => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProviderOpenCapability.t() + | nil, + :sendChatMessage => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSendChatMessageCapability.t() + | nil + } + + field(:callCall, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCallCallCapability + ) + + field(:clientReconnect, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoClientReconnectCapability + ) + + field(:coreDismissAssistant, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoCoreDismissAssistantCapability + ) + + field(:deviceModifySetting, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceModifySettingCapability + ) + + field(:deviceTakePhoto, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoDeviceTakePhotoCapability + ) + + field(:executionWait, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoExecutionWaitCapability + ) + + field(:mediaNext, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaNextCapability + ) + + field(:mediaPause, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPauseCapability + ) + + field(:mediaPlayMedia, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPlayMediaCapability + ) + + field(:mediaPrevious, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaPreviousCapability + ) + + field(:mediaResume, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaResumeCapability + ) + + field(:mediaShowControls, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaShowControlsCapability + ) + + field(:mediaStop, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoMediaStopCapability + ) + + field(:providerFulfill, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProviderFulfillCapability + ) + + field(:providerOpen, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoProviderOpenCapability + ) + + field(:sendChatMessage, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSendChatMessageCapability + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSupportedDeviceOps do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSupportedDeviceOps.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoSupportedDeviceOps do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_timer_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_timer_capability.ex new file mode 100644 index 0000000000..b4816a53d5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_timer_capability.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTimerCapability do + @moduledoc """ + Capability with regard to support of timers by the client. + + ## Attributes + + * `maxSupportedExtendedTimerDuration` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiDuration.t`, *default:* `nil`) - Maximum extended timer duration supported by the client. The extended timer duration is the total start-to-finish duration after an AddTimeToTimer operation. E.g. if a user sets a timer for 30 minutes, and later adds 10 minutes, the extended duration is 40 minutes. Zero or unset indicates no maximum limit. + * `maxSupportedTimerDuration` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiDuration.t`, *default:* `nil`) - Maximum timer duration supported by the client. Zero or unset indicates no maximum limit. + * `maxSupportedTimers` (*type:* `integer()`, *default:* `nil`) - Maximum number of timers that can be created on the client. Zero or unset indicates no maximum limit. + * `supportsMutateAction` (*type:* `boolean()`, *default:* `nil`) - Whether the client supports the MUTATE timer action. If this is false, mutate operations may be handled by sending a pair of REMOVE and CREATE timer actions to replace the existing timer instead of mutating it. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :maxSupportedExtendedTimerDuration => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiDuration.t() | nil, + :maxSupportedTimerDuration => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiDuration.t() | nil, + :maxSupportedTimers => integer() | nil, + :supportsMutateAction => boolean() | nil + } + + field(:maxSupportedExtendedTimerDuration, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDuration + ) + + field(:maxSupportedTimerDuration, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiDuration) + field(:maxSupportedTimers) + field(:supportsMutateAction) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTimerCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTimerCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTimerCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_trigger_condition.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_trigger_condition.ex new file mode 100644 index 0000000000..f43a7e986e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_trigger_condition.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTriggerCondition do + @moduledoc """ + A TriggerCondition is described as a set of states which must be met by the device. It also includes instructions to the Assistant on what kind of response to execute when the condition is not met. + + ## Attributes + + * `requiredStateValues` (*type:* `%{optional(String.t) => GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoArgSpec.t}`, *default:* `nil`) - The map of state keys along with their values which must be returned by the device, for example to start the dishwasher you may require states: {"door": "CLOSED", "detergent_status": "READY"}. + * `simpleTts` (*type:* `String.t`, *default:* `nil`) - A simple TTS to play. + * `status` (*type:* `String.t`, *default:* `nil`) - Refers to a defined ConditionalResult keyed by its status. It could be a built-in or custom ConditionalResult for this Intent. Note: the states provided by the device MUST contain all of the states required by the ConditionalResult. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requiredStateValues => + %{ + optional(String.t()) => + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoArgSpec.t() + } + | nil, + :simpleTts => String.t() | nil, + :status => String.t() | nil + } + + field(:requiredStateValues, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoArgSpec, + type: :map + ) + + field(:simpleTts) + field(:status) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTriggerCondition do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTriggerCondition.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTriggerCondition do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_tts_output_capability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_tts_output_capability.ex new file mode 100644 index 0000000000..c2f0b61d70 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_tts_output_capability.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTtsOutputCapability do + @moduledoc """ + Capabilities with regard to support of outputting TTS. + + ## Attributes + + * `supportsStructuredTts` (*type:* `boolean()`, *default:* `nil`) - Specifies whether client supports out-of-band TTS synthesis. When this is enabled, client could receive TTS request message in `SpeechOutputArgs.structured_tts` which it can then use to make request to S3 for synthesizing TTS audio. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :supportsStructuredTts => boolean() | nil + } + + field(:supportsStructuredTts) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTtsOutputCapability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTtsOutputCapability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTtsOutputCapability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_understanding_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_understanding_config.ex new file mode 100644 index 0000000000..1f9949194d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_devices_platform_proto_understanding_config.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoUnderstandingConfig do + @moduledoc """ + Specifies the NLU level that Google performs, which determines the request format sent to the 3P cloud. + + ## Attributes + + * `nluLevel` (*type:* `String.t`, *default:* `nil`) - Specifies the NLU level for the intent. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nluLevel => String.t() | nil + } + + field(:nluLevel) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoUnderstandingConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoUnderstandingConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoUnderstandingConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_provider_provider_signal_result.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_provider_provider_signal_result.ex new file mode 100644 index 0000000000..62fdb850d2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_provider_provider_signal_result.ex @@ -0,0 +1,77 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingProviderProviderSignalResult do + @moduledoc """ + Message containing the processed provider signals. This message is consumed by systems outside of the Provider GP, such as the HGR. For use of provider signals within the Provider GP, please refer to the CTF-governed PackedProviderSignals defined in: cs/google3/assistant/context/proto/packed_provider_signals.proto;rcl=486224300;l=68 + + ## Attributes + + * `isDefaultProvider` (*type:* `boolean()`, *default:* `nil`) - Whether the provider is the default provider for the BII and entity type. Also known as the 'preferred_provider'. + * `isForegroundProvider` (*type:* `boolean()`, *default:* `nil`) - Whether the provider is currently open in the foreground on the device. + * `isInAppProvider` (*type:* `boolean()`, *default:* `nil`) - Indicates that fulfillment on this provider will happen within the provider app + * `isInstalled` (*type:* `boolean()`, *default:* `nil`) - Whether the provider is installed, or otherwise reachable, from the device. + * `isLastUsedProvider` (*type:* `boolean()`, *default:* `nil`) - Whether the provider was the last-used provider for this intent on the device. Also known as the 'sticky_provider'. + * `isQueryRestrictedProvider` (*type:* `boolean()`, *default:* `nil`) - Whether the provider was specified by the query. + * `providerSelectionResult` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionResult.t`, *default:* `nil`) - The result of running provider-selection on the provider candidate. This is populated by the Signal Extractor after the PSL has been run. + * `providerTypeSignal` (*type:* `String.t`, *default:* `nil`) - Contains the "fulfillment type" of provider eg whether it's 0p or System API provider. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isDefaultProvider => boolean() | nil, + :isForegroundProvider => boolean() | nil, + :isInAppProvider => boolean() | nil, + :isInstalled => boolean() | nil, + :isLastUsedProvider => boolean() | nil, + :isQueryRestrictedProvider => boolean() | nil, + :providerSelectionResult => + GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionResult.t() | nil, + :providerTypeSignal => String.t() | nil + } + + field(:isDefaultProvider) + field(:isForegroundProvider) + field(:isInAppProvider) + field(:isInstalled) + field(:isLastUsedProvider) + field(:isQueryRestrictedProvider) + + field(:providerSelectionResult, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderSelectionResult + ) + + field(:providerTypeSignal) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingProviderProviderSignalResult do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingProviderProviderSignalResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingProviderProviderSignalResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_assistant_interaction_features.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_assistant_interaction_features.ex new file mode 100644 index 0000000000..f20cf54e4e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_assistant_interaction_features.ex @@ -0,0 +1,87 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerAssistantInteractionFeatures do + @moduledoc """ + + + ## Attributes + + * `timeDecayed14dHalfLife` (*type:* `number()`, *default:* `nil`) - + * `timeDecayed1dHalfLife` (*type:* `number()`, *default:* `nil`) - Frequency features. + * `timeDecayed7dHalfLife` (*type:* `number()`, *default:* `nil`) - + * `timeDecayedAccepted14dHalfLife` (*type:* `number()`, *default:* `nil`) - + * `timeDecayedAuis14dHalfLife` (*type:* `number()`, *default:* `nil`) - + * `timeDecayedCanceled14dHalfLife` (*type:* `number()`, *default:* `nil`) - + * `timeDecayedDeclined14dHalfLife` (*type:* `number()`, *default:* `nil`) - + * `timeSinceLastButOneCanceledActionSecs` (*type:* `number()`, *default:* `nil`) - + * `timeSinceLastButOneCompletedActionSecs` (*type:* `number()`, *default:* `nil`) - + * `timeSinceLastButTwoCanceledActionSecs` (*type:* `number()`, *default:* `nil`) - + * `timeSinceLastButTwoCompletedActionSecs` (*type:* `number()`, *default:* `nil`) - + * `timeSinceLastCanceledActionSecs` (*type:* `number()`, *default:* `nil`) - + * `timeSinceLastCompletedActionSecs` (*type:* `number()`, *default:* `nil`) - Recency features. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :timeDecayed14dHalfLife => number() | nil, + :timeDecayed1dHalfLife => number() | nil, + :timeDecayed7dHalfLife => number() | nil, + :timeDecayedAccepted14dHalfLife => number() | nil, + :timeDecayedAuis14dHalfLife => number() | nil, + :timeDecayedCanceled14dHalfLife => number() | nil, + :timeDecayedDeclined14dHalfLife => number() | nil, + :timeSinceLastButOneCanceledActionSecs => number() | nil, + :timeSinceLastButOneCompletedActionSecs => number() | nil, + :timeSinceLastButTwoCanceledActionSecs => number() | nil, + :timeSinceLastButTwoCompletedActionSecs => number() | nil, + :timeSinceLastCanceledActionSecs => number() | nil, + :timeSinceLastCompletedActionSecs => number() | nil + } + + field(:timeDecayed14dHalfLife) + field(:timeDecayed1dHalfLife) + field(:timeDecayed7dHalfLife) + field(:timeDecayedAccepted14dHalfLife) + field(:timeDecayedAuis14dHalfLife) + field(:timeDecayedCanceled14dHalfLife) + field(:timeDecayedDeclined14dHalfLife) + field(:timeSinceLastButOneCanceledActionSecs) + field(:timeSinceLastButOneCompletedActionSecs) + field(:timeSinceLastButTwoCanceledActionSecs) + field(:timeSinceLastButTwoCompletedActionSecs) + field(:timeSinceLastCanceledActionSecs) + field(:timeSinceLastCompletedActionSecs) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerAssistantInteractionFeatures do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerAssistantInteractionFeatures.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerAssistantInteractionFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_contact_grounding_provider_features.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_contact_grounding_provider_features.ex new file mode 100644 index 0000000000..38ad01e644 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_contact_grounding_provider_features.ex @@ -0,0 +1,86 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerContactGroundingProviderFeatures do + @moduledoc """ + Features to be passed from Contact GP to HGR. Next ID: 13 + + ## Attributes + + * `conceptId` (*type:* `String.t`, *default:* `nil`) - Concept id for relationships in English, e.g. "Mother" for all non-English locales. It's only populated for source = RELATIONSHIP. + * `contactSource` (*type:* `String.t`, *default:* `nil`) - + * `isRelationshipFromAnnotation` (*type:* `boolean()`, *default:* `nil`) - Whether the query is a relationship query based on the annotation source. + * `isRelationshipFromSource` (*type:* `boolean()`, *default:* `nil`) - Whether the contact has relationship in the contact metadata. + * `isSingleCandidate` (*type:* `boolean()`, *default:* `nil`) - Whether only populates a single candidate. + * `isStarred` (*type:* `boolean()`, *default:* `nil`) - Whether the contact is starred contact. + * `matchedNameType` (*type:* `String.t`, *default:* `nil`) - + * `numAlternateNameFromFuzzyContactMatch` (*type:* `number()`, *default:* `nil`) - Number of alternate contact names from fuzzy contact match. (Not suggest using it since it can change due to retrieval iteration) + * `numAlternateNamesFromS3` (*type:* `number()`, *default:* `nil`) - Number of alternate contact names from S3_HYPOTHESES. (Not suggest using it since it can change due to retrieval iteration) + * `numAlternativeNamesFromInterpretation` (*type:* `number()`, *default:* `nil`) - Number of alternate contact names from interpretation. (Not suggest using it since it can change due to retrieval iteration) + * `numCandidates` (*type:* `number()`, *default:* `nil`) - Number of contacts populated by the contact Grounding Provider. (Not suggest using it since it can change due to retrieval iteration) + * `recognitionAlternateSource` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conceptId => String.t() | nil, + :contactSource => String.t() | nil, + :isRelationshipFromAnnotation => boolean() | nil, + :isRelationshipFromSource => boolean() | nil, + :isSingleCandidate => boolean() | nil, + :isStarred => boolean() | nil, + :matchedNameType => String.t() | nil, + :numAlternateNameFromFuzzyContactMatch => number() | nil, + :numAlternateNamesFromS3 => number() | nil, + :numAlternativeNamesFromInterpretation => number() | nil, + :numCandidates => number() | nil, + :recognitionAlternateSource => String.t() | nil + } + + field(:conceptId) + field(:contactSource) + field(:isRelationshipFromAnnotation) + field(:isRelationshipFromSource) + field(:isSingleCandidate) + field(:isStarred) + field(:matchedNameType) + field(:numAlternateNameFromFuzzyContactMatch) + field(:numAlternateNamesFromS3) + field(:numAlternativeNamesFromInterpretation) + field(:numCandidates) + field(:recognitionAlternateSource) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerContactGroundingProviderFeatures do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerContactGroundingProviderFeatures.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerContactGroundingProviderFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_contact_affinity_features.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_contact_affinity_features.ex new file mode 100644 index 0000000000..77d53c3683 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_contact_affinity_features.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceContactAffinityFeatures do + @moduledoc """ + Device contact affinity from android call logs. + + ## Attributes + + * `aggregateAffinity` (*type:* `number()`, *default:* `nil`) - + * `callAffinity` (*type:* `number()`, *default:* `nil`) - + * `messageAffinity` (*type:* `number()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :aggregateAffinity => number() | nil, + :callAffinity => number() | nil, + :messageAffinity => number() | nil + } + + field(:aggregateAffinity) + field(:callAffinity) + field(:messageAffinity) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceContactAffinityFeatures do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceContactAffinityFeatures.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceContactAffinityFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_grounding_provider_features.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_grounding_provider_features.ex new file mode 100644 index 0000000000..2407c17b99 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_grounding_provider_features.ex @@ -0,0 +1,76 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceGroundingProviderFeatures do + @moduledoc """ + Features to be extracted from Device GP for ranking in HGR. Each candidate from Device GP will be associated with its own DeviceGroundingProviderFeatures. Next ID: 5 + + ## Attributes + + * `deviceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedDeviceId.t`, *default:* `nil`) - ID for the device. This feature is needed specifically for PRR and it contains PII. Note that not every device has a corresponding DeviceId. + * `deviceTargetingFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeatures.t`, *default:* `nil`) - Features generated by Device Targeting library (Lumos). + * `deviceTargetingLabels` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingLabels.t`, *default:* `nil`) - Labels tagged by Device Targeting library (Lumos). + * `surfaceIdentity` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedSurfaceIdentity.t`, *default:* `nil`) - The set of information that helps identify the surface. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceId => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedDeviceId.t() | nil, + :deviceTargetingFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeatures.t() + | nil, + :deviceTargetingLabels => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingLabels.t() + | nil, + :surfaceIdentity => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedSurfaceIdentity.t() + | nil + } + + field(:deviceId, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedDeviceId) + + field(:deviceTargetingFeatures, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeatures + ) + + field(:deviceTargetingLabels, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingLabels + ) + + field(:surfaceIdentity, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesGovernedSurfaceIdentity + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceGroundingProviderFeatures do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceGroundingProviderFeatures.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceGroundingProviderFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_targeting_features.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_targeting_features.ex new file mode 100644 index 0000000000..f4c1428ebe --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_targeting_features.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeatures do + @moduledoc """ + Features generated by Device Targeting library (Lumos). See go/hgr-lumos-integration and go/lumos-feature-extraction for more details. Next ID: 3 + + ## Attributes + + * `properties` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeaturesProperties.t`, *default:* `nil`) - + * `states` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeaturesStates.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :properties => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeaturesProperties.t() + | nil, + :states => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeaturesStates.t() + | nil + } + + field(:properties, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeaturesProperties + ) + + field(:states, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeaturesStates + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeatures do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeatures.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_targeting_features_properties.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_targeting_features_properties.ex new file mode 100644 index 0000000000..3f052064ce --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_targeting_features_properties.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeaturesProperties do + @moduledoc """ + The properties of the device. They are static and won't change. Next ID: 4 + + ## Attributes + + * `deviceModelId` (*type:* `String.t`, *default:* `nil`) - The model ID of the device. This should be globally unique across manufacturers/OEMs. + * `isOwnedBySpeaker` (*type:* `boolean()`, *default:* `nil`) - Indicate whether the device is owned by the user who is speaking. + * `surfaceType` (*type:* `String.t`, *default:* `nil`) - Assistant surface type (ontology). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceModelId => String.t() | nil, + :isOwnedBySpeaker => boolean() | nil, + :surfaceType => String.t() | nil + } + + field(:deviceModelId) + field(:isOwnedBySpeaker) + field(:surfaceType) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeaturesProperties do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeaturesProperties.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeaturesProperties do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_targeting_features_states.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_targeting_features_states.ex new file mode 100644 index 0000000000..9e43efbf28 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_targeting_features_states.ex @@ -0,0 +1,90 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeaturesStates do + @moduledoc """ + The states of the device. They are dynamic and may change based on the current context. Next ID: 15 + + ## Attributes + + * `distance` (*type:* `String.t`, *default:* `nil`) - The distance of the device relative to others that hear the user's OKG. + * `hasBufferingMediaSession` (*type:* `boolean()`, *default:* `nil`) - Indicates that the device is running a media session that is currently buffering. + * `hasPausedMediaSession` (*type:* `boolean()`, *default:* `nil`) - Indicates that the device is running a media session that is currently paused. + * `hasPlayingMediaSession` (*type:* `boolean()`, *default:* `nil`) - Indicates that the device is running a media session that is currently playing. + * `inSameRoomAsHearingDevice` (*type:* `boolean()`, *default:* `nil`) - Indicates whether or not the device is in the same room as any hearing devices. Does not consider the device itself or the local device as a hearing device. If no valid hearing devices, this field is not set. + * `inSameRoomAsLocalDevice` (*type:* `boolean()`, *default:* `nil`) - Indicates whether or not the device is in the same room as the local device. If the device is the local device, this field is not set. + * `inSameStructureAsHearingDevice` (*type:* `boolean()`, *default:* `nil`) - Indicates whether or not the device is in the same structure as any hearing devices. Does not consider the device itself or the local device as a hearing device. If no valid hearing devices, this field is not set. + * `inSameStructureAsLocalDevice` (*type:* `boolean()`, *default:* `nil`) - Indicates whether or not the device is in the same structure as the local device. If the device is the local device, this field is not set. + * `isDocked` (*type:* `boolean()`, *default:* `nil`) - Indicate whether the device is docked on a base. + * `isLocal` (*type:* `boolean()`, *default:* `nil`) - Whether the device is a local device, i.e. the device that heard OKG from a user and is processed by an assistant pipeline. If multiple devices heard OKG (MDA case), each hearing device would be considered a local device in its own assistant pipeline. Example: A user says "OKG, play music on TV" to Google Home, and music is played on the TV. Google home is considered a local device, while TV is considered a remote device. Timestamp of when the device was last used. Should correspond to when the AssistantRequestParams (in ASSISTANT_SNAPSHOT corpus) were last written for this device. + * `isLocked` (*type:* `boolean()`, *default:* `nil`) - Indicate whether the device is locked. + * `isTethered` (*type:* `boolean()`, *default:* `nil`) - Indicate whether the device is tethered to another device. + * `mediaFocusStateFromHearingDevice` (*type:* `String.t`, *default:* `nil`) - Indicates the state of media focus from a separate non-local hearing device. + * `mediaFocusStateFromLocalDevice` (*type:* `String.t`, *default:* `nil`) - Indicates the state of media focus from a separate local device. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :distance => String.t() | nil, + :hasBufferingMediaSession => boolean() | nil, + :hasPausedMediaSession => boolean() | nil, + :hasPlayingMediaSession => boolean() | nil, + :inSameRoomAsHearingDevice => boolean() | nil, + :inSameRoomAsLocalDevice => boolean() | nil, + :inSameStructureAsHearingDevice => boolean() | nil, + :inSameStructureAsLocalDevice => boolean() | nil, + :isDocked => boolean() | nil, + :isLocal => boolean() | nil, + :isLocked => boolean() | nil, + :isTethered => boolean() | nil, + :mediaFocusStateFromHearingDevice => String.t() | nil, + :mediaFocusStateFromLocalDevice => String.t() | nil + } + + field(:distance) + field(:hasBufferingMediaSession) + field(:hasPausedMediaSession) + field(:hasPlayingMediaSession) + field(:inSameRoomAsHearingDevice) + field(:inSameRoomAsLocalDevice) + field(:inSameStructureAsHearingDevice) + field(:inSameStructureAsLocalDevice) + field(:isDocked) + field(:isLocal) + field(:isLocked) + field(:isTethered) + field(:mediaFocusStateFromHearingDevice) + field(:mediaFocusStateFromLocalDevice) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeaturesStates do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeaturesStates.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingFeaturesStates do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_targeting_labels.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_targeting_labels.ex new file mode 100644 index 0000000000..830be657f7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_device_targeting_labels.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingLabels do + @moduledoc """ + Labels tagged by Device Targeting library (Lumos). See go/hgr-lumos-integration and go/lumos-feature-extraction for more details. Next ID: 2 + + ## Attributes + + * `isSelectedByLumos` (*type:* `boolean()`, *default:* `nil`) - Indicate whether the device is selected by Lumos as the target device. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isSelectedByLumos => boolean() | nil + } + + field(:isSelectedByLumos) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingLabels do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingLabels.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceTargetingLabels do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_endpoint_grounding_provider_features.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_endpoint_grounding_provider_features.ex new file mode 100644 index 0000000000..25bc15b7a6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_endpoint_grounding_provider_features.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerEndpointGroundingProviderFeatures do + @moduledoc """ + Features to be extracted from Endpoint GP for ranking in HGR. Next ID: 2 + + ## Attributes + + * `isUserConfirmed` (*type:* `boolean()`, *default:* `nil`) - Proxy signal which tells whether the user provided a confirmation to a prompt or not. See http://shortn/_XnZAJBIiwG for more details. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isUserConfirmed => boolean() | nil + } + + field(:isUserConfirmed) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerEndpointGroundingProviderFeatures do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerEndpointGroundingProviderFeatures.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerEndpointGroundingProviderFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_grounding_provider_features.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_grounding_provider_features.ex new file mode 100644 index 0000000000..07c75cadfa --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_grounding_provider_features.ex @@ -0,0 +1,100 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerGroundingProviderFeatures do + @moduledoc """ + Next ID: 7 + + ## Attributes + + * `contactGroundingProviderFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerContactGroundingProviderFeatures.t`, *default:* `nil`) - + * `deviceGroundingProviderFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceGroundingProviderFeatures.t`, *default:* `nil`) - + * `endpointGroundingProviderFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerEndpointGroundingProviderFeatures.t`, *default:* `nil`) - + * `mediaGroundingProviderFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerMediaGroundingProviderFeatures.t`, *default:* `nil`) - + * `podcastGroundingProviderFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerPodcastGroundingProviderFeatures.t`, *default:* `nil`) - + * `providerGroundingProviderFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerProviderGroundingProviderFeatures.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contactGroundingProviderFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerContactGroundingProviderFeatures.t() + | nil, + :deviceGroundingProviderFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceGroundingProviderFeatures.t() + | nil, + :endpointGroundingProviderFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerEndpointGroundingProviderFeatures.t() + | nil, + :mediaGroundingProviderFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerMediaGroundingProviderFeatures.t() + | nil, + :podcastGroundingProviderFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerPodcastGroundingProviderFeatures.t() + | nil, + :providerGroundingProviderFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerProviderGroundingProviderFeatures.t() + | nil + } + + field(:contactGroundingProviderFeatures, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerContactGroundingProviderFeatures + ) + + field(:deviceGroundingProviderFeatures, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceGroundingProviderFeatures + ) + + field(:endpointGroundingProviderFeatures, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerEndpointGroundingProviderFeatures + ) + + field(:mediaGroundingProviderFeatures, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerMediaGroundingProviderFeatures + ) + + field(:podcastGroundingProviderFeatures, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerPodcastGroundingProviderFeatures + ) + + field(:providerGroundingProviderFeatures, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerProviderGroundingProviderFeatures + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerGroundingProviderFeatures do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerGroundingProviderFeatures.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerGroundingProviderFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_feature.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_feature.ex new file mode 100644 index 0000000000..9ef8a2c67d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_feature.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeature do + @moduledoc """ + + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - + * `value` (*type:* `number()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :value => number() | nil + } + + field(:name) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeature do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeature.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeature do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features.ex new file mode 100644 index 0000000000..43ab809bbc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features.ex @@ -0,0 +1,85 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeatures do + @moduledoc """ + + + ## Attributes + + * `bindingSet` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesBindingSet.t`, *default:* `nil`) - + * `communicationEndpoint` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesCommunicationEndpoint.t`, *default:* `nil`) - + * `contact` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesContact.t`, *default:* `nil`) - + * `features` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeature.t)`, *default:* `nil`) - + * `provider` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesProvider.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bindingSet => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesBindingSet.t() + | nil, + :communicationEndpoint => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesCommunicationEndpoint.t() + | nil, + :contact => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesContact.t() + | nil, + :features => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeature.t()) | nil, + :provider => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesProvider.t() + | nil + } + + field(:bindingSet, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesBindingSet + ) + + field(:communicationEndpoint, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesCommunicationEndpoint + ) + + field(:contact, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesContact + ) + + field(:features, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeature, + type: :list + ) + + field(:provider, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesProvider + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeatures do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeatures.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features_binding_set.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features_binding_set.ex new file mode 100644 index 0000000000..24f316a8ac --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features_binding_set.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesBindingSet do + @moduledoc """ + + + ## Attributes + + * `assistantInteractionFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerAssistantInteractionFeatures.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :assistantInteractionFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerAssistantInteractionFeatures.t() + | nil + } + + field(:assistantInteractionFeatures, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerAssistantInteractionFeatures + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesBindingSet do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesBindingSet.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesBindingSet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features_communication_endpoint.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features_communication_endpoint.ex new file mode 100644 index 0000000000..da3f8f476c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features_communication_endpoint.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesCommunicationEndpoint do + @moduledoc """ + + + ## Attributes + + * `assistantInteractionFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerAssistantInteractionFeatures.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :assistantInteractionFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerAssistantInteractionFeatures.t() + | nil + } + + field(:assistantInteractionFeatures, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerAssistantInteractionFeatures + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesCommunicationEndpoint do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesCommunicationEndpoint.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesCommunicationEndpoint do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features_contact.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features_contact.ex new file mode 100644 index 0000000000..7cfb6b9edb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features_contact.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesContact do + @moduledoc """ + + + ## Attributes + + * `assistantInteractionFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerAssistantInteractionFeatures.t`, *default:* `nil`) - + * `deviceContactAffinityFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceContactAffinityFeatures.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :assistantInteractionFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerAssistantInteractionFeatures.t() + | nil, + :deviceContactAffinityFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceContactAffinityFeatures.t() + | nil + } + + field(:assistantInteractionFeatures, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerAssistantInteractionFeatures + ) + + field(:deviceContactAffinityFeatures, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerDeviceContactAffinityFeatures + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesContact do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesContact.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesContact do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features_provider.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features_provider.ex new file mode 100644 index 0000000000..020540abdb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_laa_features_provider.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesProvider do + @moduledoc """ + + + ## Attributes + + * `assistantInteractionFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerAssistantInteractionFeatures.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :assistantInteractionFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerAssistantInteractionFeatures.t() + | nil + } + + field(:assistantInteractionFeatures, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerAssistantInteractionFeatures + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesProvider do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesProvider.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeaturesProvider do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_media_grounding_provider_features.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_media_grounding_provider_features.ex new file mode 100644 index 0000000000..3cb52b5c77 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_media_grounding_provider_features.ex @@ -0,0 +1,108 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerMediaGroundingProviderFeatures do + @moduledoc """ + Features to be passed from Media GP to HGR. Next ID: 21 + + ## Attributes + + * `albumReleaseType` (*type:* `String.t`, *default:* `nil`) - Release type for an album container. + * `ambiguityClassifier` (*type:* `String.t`, *default:* `nil`) - Temporary ambiguity classifier signals. + * `entityMid` (*type:* `String.t`, *default:* `nil`) - Mid of the media item. This is currently only used in manual rules. + * `hasCastVideoDeeplink` (*type:* `boolean()`, *default:* `nil`) - True if the candidate has a CAST_VIDEO deeplink regardless of which provider was chosen. + * `hasTypeSemanticEdge` (*type:* `boolean()`, *default:* `nil`) - True if the argument's type was explicitly mentioned in the query. + * `isCastVideo` (*type:* `boolean()`, *default:* `nil`) - Whether the candidate is YouTube CAST_VIDEO candidate. CAST_VIDEO is a deeplink platform. This signal will be used to promote YouTube Music screenful candidates with CAST_VIDEO platform for free users because free users cannot get exact entities in screenless response and can get exact entities with ads in screenful response. + * `isExclusiveOriginalProvider` (*type:* `boolean()`, *default:* `nil`) - True if the media item in Binding Set is exclusively available on the provider in Binding set. Example: "Stranger things" is exclusive to "Netflix". + * `isMediaSearchQuerySubsetOfEntityNameAndArtist` (*type:* `boolean()`, *default:* `nil`) - True if the media search query is included in the entity name and artists. + * `isMostRecentSongAlbumAmbiguous` (*type:* `boolean()`, *default:* `nil`) - + * `isSeedRadio` (*type:* `boolean()`, *default:* `nil`) - True if the media deeplink has tag SEED_RADIO. + * `isSeedRadioRequest` (*type:* `boolean()`, *default:* `nil`) - True if the user requests seed radio. + * `isSelfReportedSvodProvider` (*type:* `boolean()`, *default:* `nil`) - Provider is a self(user) reported subscripted provider https://g3doc.corp.google.com/knowledge/g3doc/ump/development/GetProviderAffinity.md?cl=head + * `isYoutubeMusicSeeking` (*type:* `boolean()`, *default:* `nil`) - Indicates whether this is youtube content seeking music. + * `mediaAccountType` (*type:* `String.t`, *default:* `nil`) - Account Type of the user for the provider + * `mediaContentType` (*type:* `String.t`, *default:* `nil`) - MediaAquaAction::media_content_type from interpretation. It can be used for cross-content type ranking, for example, if a candidate's content type does not match this content type from interpretation, this candidate will be slightly demoted. Also, we might avoid fetching some signals when the content type is generic music, since some content types do not need ranking. + * `mscRate` (*type:* `number()`, *default:* `nil`) - MSC(Media Short Click) rate. MSC rate = total number of MSC events / total number of MSC candidates The event is considered as MSC candidate if the event is a media seeking query(excluding follow-ons) and the media result is successfully fulfilled. The event is MSC event if any of the following is in the following queries within 30 secs: FOLLOWED_BY_DUPLICATE FOLLOWED_BY_ADD_OR_DELETE_MANUAL_REFINEMENT FOLLOWED_BY_SAME_VERTICAL (MEDIA) FOLLOWED_BY_STOP More details: go/media-ranking, go/billboard-navboost, go/magma-music-actions-efrac + * `scubedPSaiMusic` (*type:* `float()`, *default:* `nil`) - Scubed predicted SAI value (pSAI - SCUBED_MUSIC_ACTIONS) for music populated by a regression model that incorporates a BERT model signal as well as other Scubed signals. + * `scubedPSaiTvm` (*type:* `float()`, *default:* `nil`) - Scubed predicted SAI value (pSAI - SCUBED_TVM_ACTIONS) for music populated by a regression model that incorporates a BERT model signal as well as other Scubed signals. + * `type` (*type:* `String.t`, *default:* `nil`) - Type of the media item. + * `youtubeConfidenceScore` (*type:* `float()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :albumReleaseType => String.t() | nil, + :ambiguityClassifier => String.t() | nil, + :entityMid => String.t() | nil, + :hasCastVideoDeeplink => boolean() | nil, + :hasTypeSemanticEdge => boolean() | nil, + :isCastVideo => boolean() | nil, + :isExclusiveOriginalProvider => boolean() | nil, + :isMediaSearchQuerySubsetOfEntityNameAndArtist => boolean() | nil, + :isMostRecentSongAlbumAmbiguous => boolean() | nil, + :isSeedRadio => boolean() | nil, + :isSeedRadioRequest => boolean() | nil, + :isSelfReportedSvodProvider => boolean() | nil, + :isYoutubeMusicSeeking => boolean() | nil, + :mediaAccountType => String.t() | nil, + :mediaContentType => String.t() | nil, + :mscRate => number() | nil, + :scubedPSaiMusic => float() | nil, + :scubedPSaiTvm => float() | nil, + :type => String.t() | nil, + :youtubeConfidenceScore => float() | nil + } + + field(:albumReleaseType) + field(:ambiguityClassifier) + field(:entityMid) + field(:hasCastVideoDeeplink) + field(:hasTypeSemanticEdge) + field(:isCastVideo) + field(:isExclusiveOriginalProvider) + field(:isMediaSearchQuerySubsetOfEntityNameAndArtist) + field(:isMostRecentSongAlbumAmbiguous) + field(:isSeedRadio) + field(:isSeedRadioRequest) + field(:isSelfReportedSvodProvider) + field(:isYoutubeMusicSeeking) + field(:mediaAccountType) + field(:mediaContentType) + field(:mscRate) + field(:scubedPSaiMusic) + field(:scubedPSaiTvm) + field(:type) + field(:youtubeConfidenceScore) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerMediaGroundingProviderFeatures do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerMediaGroundingProviderFeatures.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerMediaGroundingProviderFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_podcast_grounding_provider_features.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_podcast_grounding_provider_features.ex new file mode 100644 index 0000000000..51ae2f6cc5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_podcast_grounding_provider_features.ex @@ -0,0 +1,68 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerPodcastGroundingProviderFeatures do + @moduledoc """ + Features to be extracted from Podcast GP for ranking in HGR. Next ID: 7 + + ## Attributes + + * `isExclusive` (*type:* `boolean()`, *default:* `nil`) - Whether the podcast is exclusive to a provider a not. + * `podcastListenersCount` (*type:* `integer()`, *default:* `nil`) - The count of the unique users that listened to the podcast in the last 28 days. + * `popularityScore` (*type:* `float()`, *default:* `nil`) - Provider popularity score. More details are here go/ps-to-kg. + * `scubedNg3ModelScore` (*type:* `number()`, *default:* `nil`) - The relevance score from Scubed. + * `scubedTstarScore` (*type:* `float()`, *default:* `nil`) - Tstar score is a signal that indicates the quality of the entity. + * `youtubeConfidenceScore` (*type:* `float()`, *default:* `nil`) - This score is in the range [0.0, 1.0] and is used for cross-backend (e.g., YT vs another Music/Podcast service provider) ranking and scoring. 0.0 means no confidence and 1.0 means full confidence. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isExclusive => boolean() | nil, + :podcastListenersCount => integer() | nil, + :popularityScore => float() | nil, + :scubedNg3ModelScore => number() | nil, + :scubedTstarScore => float() | nil, + :youtubeConfidenceScore => float() | nil + } + + field(:isExclusive) + field(:podcastListenersCount) + field(:popularityScore) + field(:scubedNg3ModelScore) + field(:scubedTstarScore) + field(:youtubeConfidenceScore) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerPodcastGroundingProviderFeatures do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerPodcastGroundingProviderFeatures.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerPodcastGroundingProviderFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_provider_grounding_provider_features.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_provider_grounding_provider_features.ex new file mode 100644 index 0000000000..dd092b4db8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_grounding_ranker_provider_grounding_provider_features.ex @@ -0,0 +1,68 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerProviderGroundingProviderFeatures do + @moduledoc """ + Features to be extracted from Provider GP for ranking in HGR. Next ID: 7 + + ## Attributes + + * `providerClusterIds` (*type:* `list(String.t)`, *default:* `nil`) - Cluster IDs for the provider. This field is repeated because some providers can be associated with multiple clusters. PRR specific feature. + * `providerId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderId.t`, *default:* `nil`) - ProviderId for the provider in the binding set. PRR specific feature. + * `providerSignalResult` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingProviderProviderSignalResult.t`, *default:* `nil`) - Provider signals extracted from Provider GP. + * `pslScore` (*type:* `number()`, *default:* `nil`) - Provider quality score in the range [0,1] that can be used for ranking providers. Incorporates both policy rules and quality considerations. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :providerClusterIds => list(String.t()) | nil, + :providerId => GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderId.t() | nil, + :providerSignalResult => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingProviderProviderSignalResult.t() + | nil, + :pslScore => number() | nil + } + + field(:providerClusterIds, type: :list) + field(:providerId, as: GoogleApi.ContentWarehouse.V1.Model.AssistantContextProviderId) + + field(:providerSignalResult, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingProviderProviderSignalResult + ) + + field(:pslScore) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerProviderGroundingProviderFeatures do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerProviderGroundingProviderFeatures.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerProviderGroundingProviderFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_all_media_stream_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_all_media_stream_log.ex new file mode 100644 index 0000000000..cc16e55781 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_all_media_stream_log.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAllMediaStreamLog do + @moduledoc """ + + + ## Attributes + + * `streams` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaStreamLog.t)`, *default:* `nil`) - All active media streams while the user issues the query. + * `targetStream` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaStreamLog.t`, *default:* `nil`) - The stream selected by stream transfer logic to be transferred to another device. It will be empty for other features. Target_stream is different from target_device since target_stream could have multiple devices. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :streams => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaStreamLog.t()) | nil, + :targetStream => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaStreamLog.t() | nil + } + + field(:streams, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaStreamLog, type: :list) + + field(:targetStream, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaStreamLog) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAllMediaStreamLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAllMediaStreamLog.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAllMediaStreamLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_ambiguous_target_device_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_ambiguous_target_device_log.ex new file mode 100644 index 0000000000..16c0b20542 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_ambiguous_target_device_log.ex @@ -0,0 +1,82 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLog do + @moduledoc """ + This message logs details on ambiguous device targeting logic. 1. It first takes a list of ambiguous devices 2. Then applies two filters: structure filter and playability filter. 3. If more than one device remains, it tiggers DeviceSelectionDialog to let the user pick one device. + + ## Attributes + + * `ambiguousDeviceIndex` (*type:* `list(integer())`, *default:* `nil`) - Device index of the initial ambiguous devices. The device index in this message is consistent with the device index in DeviceInfoLog. It would be used to track more detailed information of a device if needed. + * `devicesAfterPromoters` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t)`, *default:* `nil`) - DeviceInfo for devices after the filters and promoters. - When device targeting is only configured for single target, these are ambiguous devices that would have been the output of Lumos. Downstream may perform extra check before disambiguation dialog. For example, Media Initiation checks playability for devices. The output here is before the check. - When configured for multi-target, these are just the target devices. For privacy consideration, we may only log device id field inside. + * `finalTargetDevice` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t`, *default:* `nil`) - the final targeted device selected by playability filter or DeviceSelectionDialog + * `playabilityFilteredDevicesIndex` (*type:* `list(integer())`, *default:* `nil`) - Device index of the devices after playability filter + * `puntInfoLog` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLogPuntInfoLog.t)`, *default:* `nil`) - When there is no qualified devices after playability check, it would populate punt_info below. If all devices are filtered out for the same reason, there would only be one item. Otherwise, there will be multiple items. + * `structureFilteredDeviceIndex` (*type:* `list(integer())`, *default:* `nil`) - Device index of the devices after structure filter + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ambiguousDeviceIndex => list(integer()) | nil, + :devicesAfterPromoters => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t()) | nil, + :finalTargetDevice => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t() | nil, + :playabilityFilteredDevicesIndex => list(integer()) | nil, + :puntInfoLog => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLogPuntInfoLog.t() + ) + | nil, + :structureFilteredDeviceIndex => list(integer()) | nil + } + + field(:ambiguousDeviceIndex, type: :list) + + field(:devicesAfterPromoters, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog, + type: :list + ) + + field(:finalTargetDevice, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog) + field(:playabilityFilteredDevicesIndex, type: :list) + + field(:puntInfoLog, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLogPuntInfoLog, + type: :list + ) + + field(:structureFilteredDeviceIndex, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLog.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_ambiguous_target_device_log_punt_info_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_ambiguous_target_device_log_punt_info_log.ex new file mode 100644 index 0000000000..64b276c70c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_ambiguous_target_device_log_punt_info_log.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLogPuntInfoLog do + @moduledoc """ + PuntInfoLog is used to log why devices get filtered out during media content playability check. It contains media excuse, provider mid and also index of devices filtered by them. + + ## Attributes + + * `deviceIndex` (*type:* `list(integer())`, *default:* `nil`) - Index of devices that have the same punt info during playability check, i.e. same media_excuse and provider_mid. + * `mediaExcuse` (*type:* `integer()`, *default:* `nil`) - Excuse for media action triggering. See: assistant/verticals/media/proto/media_excuse.proto. + * `providerMid` (*type:* `String.t`, *default:* `nil`) - Provider id that the excuse belongs to. This is the KG MID of the provider, e.g., "/m/09jcvs" for Youtube. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceIndex => list(integer()) | nil, + :mediaExcuse => integer() | nil, + :providerMid => String.t() | nil + } + + field(:deviceIndex, type: :list) + field(:mediaExcuse) + field(:providerMid) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLogPuntInfoLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLogPuntInfoLog.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLogPuntInfoLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_device_contact_info_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_device_contact_info_log.ex new file mode 100644 index 0000000000..d416103165 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_device_contact_info_log.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationDeviceContactInfoLog do + @moduledoc """ + This is the log version of apps.people.oz.external.mergedpeopleapi.DeviceContactInfo Next ID: 2 + + ## Attributes + + * `rawContactInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationRawDeviceContactInfoLog.t)`, *default:* `nil`) - This list provides account information from the raw contact which is the source of this field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :rawContactInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationRawDeviceContactInfoLog.t() + ) + | nil + } + + field(:rawContactInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationRawDeviceContactInfoLog, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationDeviceContactInfoLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationDeviceContactInfoLog.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationDeviceContactInfoLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_fuzzy_ngram_match_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_fuzzy_ngram_match_log.ex new file mode 100644 index 0000000000..87748fd7f7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_fuzzy_ngram_match_log.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationFuzzyNgramMatchLog do + @moduledoc """ + This is the log version of fuzzy ngram match results that's used for generating the best fuzzy match. Next ID: 3 + + ## Attributes + + * `relativeCost` (*type:* `number()`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :relativeCost => number() | nil, + :type => String.t() | nil + } + + field(:relativeCost) + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationFuzzyNgramMatchLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationFuzzyNgramMatchLog.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationFuzzyNgramMatchLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_google_account_provenance.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_google_account_provenance.ex new file mode 100644 index 0000000000..160f1530d5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_google_account_provenance.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationGoogleAccountProvenance do + @moduledoc """ + From google3/quality/qrewrite/proto/account_provenance.proto;l=14 We need to copy this as the above proto has Enum field which is not compatible between proto2 and proto3. go/proto2-versus-proto3#enums + + ## Attributes + + * `email` (*type:* `String.t`, *default:* `nil`) - + * `gaiaId` (*type:* `String.t`, *default:* `nil`) - + * `isDasherAccount` (*type:* `boolean()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :email => String.t() | nil, + :gaiaId => String.t() | nil, + :isDasherAccount => boolean() | nil + } + + field(:email) + field(:gaiaId) + field(:isDasherAccount) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationGoogleAccountProvenance do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationGoogleAccountProvenance.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationGoogleAccountProvenance do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_person_metadata_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_person_metadata_log.ex new file mode 100644 index 0000000000..c68cd9d60c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_person_metadata_log.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPersonMetadataLog do + @moduledoc """ + This is the log version of apps.people.oz.external.mergedpeopleapi.PersonMetadata Next ID: 2 + + ## Attributes + + * `deviceContactInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationDeviceContactInfoLog.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceContactInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationDeviceContactInfoLog.t() + ) + | nil + } + + field(:deviceContactInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationDeviceContactInfoLog, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPersonMetadataLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPersonMetadataLog.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPersonMetadataLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_personal_contact_data_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_personal_contact_data_log.ex new file mode 100644 index 0000000000..0021f41465 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_personal_contact_data_log.ex @@ -0,0 +1,169 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPersonalContactDataLog do + @moduledoc """ + Contact meta data. Next ID: 30 + + ## Attributes + + * `accountProvenance` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationGoogleAccountProvenance.t`, *default:* `nil`) - Google AccountProvenance of the contact. + * `commonNameAliasConfidence` (*type:* `number()`, *default:* `nil`) - Populated if matched_name_type is GIVEN_NAME_ALIAS or FULL_NAME_ALIAS. + * `conceptId` (*type:* `String.t`, *default:* `nil`) - Concept id for relationships in English, e.g. "Mother" for all non-English locales. It's only populated for source = RELATIONSHIP. + * `deviceContactAttributes` (*type:* `list(integer())`, *default:* `nil`) - Integer value corresponding to DeviceContactExtraMetadata.Attribute enum. http://google3/social/graph/wire/proto/merged_person.proto?l=933&rcl=320308954 + * `emailIdCount` (*type:* `integer()`, *default:* `nil`) - # emails stored for the contact. + * `fuzzyNgramMatch` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationFuzzyNgramMatchLog.t)`, *default:* `nil`) - Populate only if ContactRecognitionAlternate.Source is 'FUZZY_CONTACT_MATCH'. + * `gaiaId` (*type:* `String.t`, *default:* `nil`) - Contact owner's gaia id from cs/symbol::symbol:quality_qrewrite.PersonalContactData.shared_contact_owner_gaia_id. Only populated for is_shared = true and non sign-out mode and user is not the owner of the contact(shared contact from other user). This field is not being logged in P2. + * `isContactFromSecondaryAccount` (*type:* `boolean()`, *default:* `nil`) - Boolean value indicating whether selected contact is from different account than the logged in account. + * `isShared` (*type:* `boolean()`, *default:* `nil`) - If this is a shared contact. This is true in 2 cases: - User is calling their own contacts that have been marked as shared. - User is calling shared contacts from some other user's contact list. This field is not being logged in P2. + * `isTransliteratedMatch` (*type:* `boolean()`, *default:* `nil`) - Indicate the contact matches the transliterated query. + * `isVanityContact` (*type:* `boolean()`, *default:* `nil`) - True if the contact is a vanity contact(has email = user's email address). + * `isVisibleToGuestsRelationship` (*type:* `boolean()`, *default:* `nil`) - If the lookup was done using relationship which is visible to guests. This value will only be set if lookup was done using relationship. E.g. user has a guest relationship (doctor) -> (John) And user says "call doctor", then this value will be true. + * `matchedNameType` (*type:* `String.t`, *default:* `nil`) - The matched name type of a contact candidate. + * `matchedRecognitionAlternateName` (*type:* `String.t`, *default:* `nil`) - Alternate recognition term which was used to match this contact. + * `matchedStarlightLookupName` (*type:* `list(String.t)`, *default:* `nil`) - Ngram matched by starlight lookup for fuzzy matching in fulfillment. We need this to analyze how many contacts are returned by starlight lookup that is not matched by fuzzy matching. For example, "Komal Dear" is matched to "Komal Dr" by fuzzy match. When doing starlight lookup, "Komal" and "Dr" will be looked up separately. So "Dr xxx" will also be returned. We want to see how often this happens. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPersonMetadataLog.t`, *default:* `nil`) - PersonMetadata of the selected contact. + * `nameMatchedContactIndex` (*type:* `list(integer())`, *default:* `nil`) - The indices of the contact in |candidate_contact| whose name matches the |selected_contact_data|. |candidate_contact|: http://google3/logs/proto/assistant/contact.proto?l=111&rcl=306283376 |selected_contact_data|: http://google3/logs/proto/assistant/contact.proto?l=108&rcl=306283376 + * `originalQueryName` (*type:* `String.t`, *default:* `nil`) - The original name in the query as transcribed by ASR. + * `phone` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPhoneLog.t)`, *default:* `nil`) - Information regarding the phone endpoints of the selected contact. Currently it is only logged for selected candidate. + * `phoneNumberCount` (*type:* `integer()`, *default:* `nil`) - # phone_numbers stored for the contact. + * `pkgReferenceType` (*type:* `String.t`, *default:* `nil`) - Encodes if pkg_person was resolved via a name or relationship reference. + * `recognitionAlternateScore` (*type:* `number()`, *default:* `nil`) - Populate only if ContactRecognitionAlternate.Source is not NONE. + * `recognitionAlternateSource` (*type:* `String.t`, *default:* `nil`) - Recognition alternative source type. If not none, then it indicates the personal contact data is alternative and how the alternative is fulfilled. + * `relationshipMemoryCount` (*type:* `integer()`, *default:* `nil`) - The number of resolved relationship names and contact pointers from Assistant Memory. + * `selectedPhone` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPhoneLog.t`, *default:* `nil`) - Information regarding the selected phone endpoint. Currently it is only logged for selected candidate. + * `shortcutContactInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.MajelContactInformationShortcutInformation.t`, *default:* `nil`) - Shortcut information of the contact. + * `source` (*type:* `String.t`, *default:* `nil`) - The contact source of a contact candidate. + * `systemContactGroupId` (*type:* `list(integer())`, *default:* `nil`) - Integer value corresponding to SystemContactGroup enum. http://google3/social/graph/wire/proto/merged_person.proto?l=3151&rcl=320308954 + * `whatsappPhoneNumberCount` (*type:* `integer()`, *default:* `nil`) - DEPRECATED. Use phone instead. Used before 2020-01-13. Number of phone numbers annotated with Whatsapp. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accountProvenance => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationGoogleAccountProvenance.t() + | nil, + :commonNameAliasConfidence => number() | nil, + :conceptId => String.t() | nil, + :deviceContactAttributes => list(integer()) | nil, + :emailIdCount => integer() | nil, + :fuzzyNgramMatch => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationFuzzyNgramMatchLog.t() + ) + | nil, + :gaiaId => String.t() | nil, + :isContactFromSecondaryAccount => boolean() | nil, + :isShared => boolean() | nil, + :isTransliteratedMatch => boolean() | nil, + :isVanityContact => boolean() | nil, + :isVisibleToGuestsRelationship => boolean() | nil, + :matchedNameType => String.t() | nil, + :matchedRecognitionAlternateName => String.t() | nil, + :matchedStarlightLookupName => list(String.t()) | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPersonMetadataLog.t() + | nil, + :nameMatchedContactIndex => list(integer()) | nil, + :originalQueryName => String.t() | nil, + :phone => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPhoneLog.t()) | nil, + :phoneNumberCount => integer() | nil, + :pkgReferenceType => String.t() | nil, + :recognitionAlternateScore => number() | nil, + :recognitionAlternateSource => String.t() | nil, + :relationshipMemoryCount => integer() | nil, + :selectedPhone => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPhoneLog.t() | nil, + :shortcutContactInfo => + GoogleApi.ContentWarehouse.V1.Model.MajelContactInformationShortcutInformation.t() + | nil, + :source => String.t() | nil, + :systemContactGroupId => list(integer()) | nil, + :whatsappPhoneNumberCount => integer() | nil + } + + field(:accountProvenance, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationGoogleAccountProvenance + ) + + field(:commonNameAliasConfidence) + field(:conceptId) + field(:deviceContactAttributes, type: :list) + field(:emailIdCount) + + field(:fuzzyNgramMatch, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationFuzzyNgramMatchLog, + type: :list + ) + + field(:gaiaId) + field(:isContactFromSecondaryAccount) + field(:isShared) + field(:isTransliteratedMatch) + field(:isVanityContact) + field(:isVisibleToGuestsRelationship) + field(:matchedNameType) + field(:matchedRecognitionAlternateName) + field(:matchedStarlightLookupName, type: :list) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPersonMetadataLog + ) + + field(:nameMatchedContactIndex, type: :list) + field(:originalQueryName) + + field(:phone, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPhoneLog, + type: :list + ) + + field(:phoneNumberCount) + field(:pkgReferenceType) + field(:recognitionAlternateScore) + field(:recognitionAlternateSource) + field(:relationshipMemoryCount) + + field(:selectedPhone, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPhoneLog) + + field(:shortcutContactInfo, + as: GoogleApi.ContentWarehouse.V1.Model.MajelContactInformationShortcutInformation + ) + + field(:source) + field(:systemContactGroupId, type: :list) + field(:whatsappPhoneNumberCount) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPersonalContactDataLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPersonalContactDataLog.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPersonalContactDataLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_phone_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_phone_log.ex new file mode 100644 index 0000000000..29bd9a07e1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_phone_log.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPhoneLog do + @moduledoc """ + This is the log version of apps.people.oz.external.mergedpeopleapi.Phone proto. Next ID: 3 + + ## Attributes + + * `rawDeviceContactInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationRawDeviceContactInfoLog.t)`, *default:* `nil`) - This list provides account information from the raw contact which is the source of this field. + * `type` (*type:* `String.t`, *default:* `nil`) - Label for phone number in the Contacts app. It can have standard values provided by the app e.g. MOBILE, HOME, WORK etc, but users are allowed to modify. So essentially it becomes user content. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :rawDeviceContactInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationRawDeviceContactInfoLog.t() + ) + | nil, + :type => String.t() | nil + } + + field(:rawDeviceContactInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationRawDeviceContactInfoLog, + type: :list + ) + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPhoneLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPhoneLog.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationPhoneLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_raw_device_contact_info_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_raw_device_contact_info_log.ex new file mode 100644 index 0000000000..f4ef1150fc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_communication_raw_device_contact_info_log.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationRawDeviceContactInfoLog do + @moduledoc """ + This is the log version of apps.people.oz.external.mergedpeopleapi.RawDeviceContactInfo proto. Next ID: 3 + + ## Attributes + + * `accountType` (*type:* `String.t`, *default:* `nil`) - Account type of raw contact, e.g. "com.google" or "com.linkedin.android". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accountType => String.t() | nil + } + + field(:accountType) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationRawDeviceContactInfoLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationRawDeviceContactInfoLog.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsCommunicationRawDeviceContactInfoLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_default_device_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_default_device_log.ex new file mode 100644 index 0000000000..9b015c7c61 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_default_device_log.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDeviceLog do + @moduledoc """ + Log device info of default speaker and tv + + ## Attributes + + * `defaultSpeaker` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t`, *default:* `nil`) - + * `defaultTv` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t`, *default:* `nil`) - + * `sourceDeviceId` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :defaultSpeaker => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t() | nil, + :defaultTv => GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t() | nil, + :sourceDeviceId => String.t() | nil + } + + field(:defaultSpeaker, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog) + field(:defaultTv, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog) + field(:sourceDeviceId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDeviceLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDeviceLog.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDeviceLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_default_devices_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_default_devices_log.ex new file mode 100644 index 0000000000..d8bc110791 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_default_devices_log.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDevicesLog do + @moduledoc """ + + + ## Attributes + + * `localDefaultDevices` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDeviceLog.t`, *default:* `nil`) - + * `nearbyDefaultDevices` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDeviceLog.t)`, *default:* `nil`) - Default settings of nearby devices. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :localDefaultDevices => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDeviceLog.t() | nil, + :nearbyDefaultDevices => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDeviceLog.t()) | nil + } + + field(:localDefaultDevices, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDeviceLog + ) + + field(:nearbyDefaultDevices, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDeviceLog, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDevicesLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDevicesLog.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDevicesLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_annotation_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_annotation_log.ex new file mode 100644 index 0000000000..1ea438046d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_annotation_log.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceAnnotationLog do + @moduledoc """ + Device annotation mention from query + + ## Attributes + + * `rawTextFromQuery` (*type:* `String.t`, *default:* `nil`) - The raw text mentioning a device from the query, such as "any tv". + * `type` (*type:* `String.t`, *default:* `nil`) - The annotation type mentioned in the query. + * `userDefinedName` (*type:* `String.t`, *default:* `nil`) - The matched device name set by the user, such as "big screen tv". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :rawTextFromQuery => String.t() | nil, + :type => String.t() | nil, + :userDefinedName => String.t() | nil + } + + field(:rawTextFromQuery) + field(:type) + field(:userDefinedName) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceAnnotationLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceAnnotationLog.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceAnnotationLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_info_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_info_log.ex new file mode 100644 index 0000000000..3db7f3ce1c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_info_log.ex @@ -0,0 +1,101 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog do + @moduledoc """ + The information related to the device. Next ID: 18 + + ## Attributes + + * `arbitrationDeviceId` (*type:* `String.t`, *default:* `nil`) - Device identifier string for the current device used in the arbitration service. + * `connectivity` (*type:* `String.t`, *default:* `nil`) - + * `deviceId` (*type:* `String.t`, *default:* `nil`) - The identification of the device. DeviceId (go/as-device-id) has multiple fields. To consloidate it to a single to make dremel easier, we use the string obtained by calling go/get-device-id. + * `deviceIdLog` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsSettingsDeviceIdLog.t`, *default:* `nil`) - The identification of the device. The logging version of the full DeviceId. + * `deviceIndex` (*type:* `integer()`, *default:* `nil`) - We index linked devices and log these index to avoid logging device_id. device_index should always be a positive number or -1. -1 means this device is not in homegraph. + * `deviceModelId` (*type:* `String.t`, *default:* `nil`) - This is the device_model_id field in device_settings proto. It has the same value for the same type of devices. e.g. Sonos.Sonos One.S13 + * `distance` (*type:* `String.t`, *default:* `nil`) - LINT.ThenChange(//depot/google3/assistant/context/proto/device_arbitration.proto:EstimatedRelativeDistance) + * `eliminatingLumosProcessor` (*type:* `String.t`, *default:* `nil`) - The lumos processor which eliminated this device, if applicable + * `homeStructureId` (*type:* `String.t`, *default:* `nil`) - The home structure id of the device. + * `isRemote` (*type:* `boolean()`, *default:* `nil`) - + * `isTethered` (*type:* `boolean()`, *default:* `nil`) - This flag indicates this is a non-local device that is tethered to local/originating device. Tethered device is a special case of is_remote and typically used in wearable scenarios. This is always false for local device and when it is true, it implies is_remote is also true. + * `mediaCapabilities` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaCapabilities.t`, *default:* `nil`) - + * `mediaDeviceType` (*type:* `String.t`, *default:* `nil`) - + * `name` (*type:* `String.t`, *default:* `nil`) - User defined device name + * `sessions` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceMediaSessionLog.t)`, *default:* `nil`) - This field should be populated only when there is at least one session on this device. + * `surfaceType` (*type:* `String.t`, *default:* `nil`) - This field should be populated only when the device is an Assistant device. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :arbitrationDeviceId => String.t() | nil, + :connectivity => String.t() | nil, + :deviceId => String.t() | nil, + :deviceIdLog => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsSettingsDeviceIdLog.t() | nil, + :deviceIndex => integer() | nil, + :deviceModelId => String.t() | nil, + :distance => String.t() | nil, + :eliminatingLumosProcessor => String.t() | nil, + :homeStructureId => String.t() | nil, + :isRemote => boolean() | nil, + :isTethered => boolean() | nil, + :mediaCapabilities => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaCapabilities.t() | nil, + :mediaDeviceType => String.t() | nil, + :name => String.t() | nil, + :sessions => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceMediaSessionLog.t()) | nil, + :surfaceType => String.t() | nil + } + + field(:arbitrationDeviceId) + field(:connectivity) + field(:deviceId) + field(:deviceIdLog, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsSettingsDeviceIdLog) + field(:deviceIndex) + field(:deviceModelId) + field(:distance) + field(:eliminatingLumosProcessor) + field(:homeStructureId) + field(:isRemote) + field(:isTethered) + + field(:mediaCapabilities, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaCapabilities) + + field(:mediaDeviceType) + field(:name) + + field(:sessions, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceMediaSessionLog, + type: :list + ) + + field(:surfaceType) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_media_session_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_media_session_log.ex new file mode 100644 index 0000000000..d22a33bb86 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_media_session_log.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceMediaSessionLog do + @moduledoc """ + Log about the media session on a device. + + ## Attributes + + * `deviceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t`, *default:* `nil`) - + * `mediaSessionType` (*type:* `String.t`, *default:* `nil`) - + * `mediaType` (*type:* `String.t`, *default:* `nil`) - The type of the media session. If provider does not report this field, we ## compute it by mapping provider type to media type. Here is the mapping: |ProviderType |MediaItemMetadata.Type| |-------------------------------------- |MUSIC |TRACK | |VIDEO |VIDEO | |LIVE_TV |TV_CHANNEL | |AUDIOBOOK |AUDIO_BOOK | |PODCAST |PODCAST_EPISODE | ## |LIVE_STREAMING|VIDEO | + * `playbackState` (*type:* `String.t`, *default:* `nil`) - The playback states of the session. + * `providerMid` (*type:* `String.t`, *default:* `nil`) - The KG mid of the media provider. + * `supportedTransportControl` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceId => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t() | nil, + :mediaSessionType => String.t() | nil, + :mediaType => String.t() | nil, + :playbackState => String.t() | nil, + :providerMid => String.t() | nil, + :supportedTransportControl => list(String.t()) | nil + } + + field(:deviceId, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId) + field(:mediaSessionType) + field(:mediaType) + field(:playbackState) + field(:providerMid) + field(:supportedTransportControl, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceMediaSessionLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceMediaSessionLog.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceMediaSessionLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_selection_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_selection_log.ex new file mode 100644 index 0000000000..2a4a865e2d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_selection_log.ex @@ -0,0 +1,124 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionLog do + @moduledoc """ + Contains information logged in target device selection. See go/improve-device-targeting-logging for details. Next Id: 22 + + ## Attributes + + * `allDefaultDevices` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDeviceLog.t)`, *default:* `nil`) - Default settings of all nearby devices Deprecated, use default_devices_log instead. + * `allMediaStreamLog` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAllMediaStreamLog.t`, *default:* `nil`) - Logs all active media sessions. + * `counterfactualDeviceSelectionLog` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionLog.t`, *default:* `nil`) - DeviceSelectionLog for counterfactual logging. + * `defaultDevices` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDeviceLog.t`, *default:* `nil`) - Include default tv and default speaker Deprecated, use all_default_devices below. + * `defaultDevicesLog` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDevicesLog.t`, *default:* `nil`) - + * `devicesStr` (*type:* `list(String.t)`, *default:* `nil`) - Temporaray field for debugging ANDROID_AUTO multi_target_devices punt. This will be removed once we identify the root cause. + * `inputErrorLog` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsInputErrorLog.t)`, *default:* `nil`) - + * `localDevice` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t`, *default:* `nil`) - Now we just log the media sessions on local device Deprecated, use NearbyDevicesLog::LocalDevice instead. + * `logDataSource` (*type:* `String.t`, *default:* `nil`) - Indicates which library populated the device_selection_log for this query. + * `mediaFocus` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusInfoLog.t`, *default:* `nil`) - The Media Focus information. This field should be populated only when there is a Media Focus. Deprecated, use media_focuses below instead. + * `mediaFocusesLog` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusesLog.t`, *default:* `nil`) - Media focuses on all devices. + * `nearbyDevicesLog` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsNearbyDevicesLog.t`, *default:* `nil`) - All nearby devices and local device. + * `queryAnnotation` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsQueryAnnotationLog.t`, *default:* `nil`) - This should log the query annotation features found in the device, such as the device annotation, the room annotation, and the structure annotation from the query. + * `selectionResult` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionResultLog.t`, *default:* `nil`) - The result of device selection. + * `testCodes` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceTargetingTestCode.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allDefaultDevices => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDeviceLog.t()) | nil, + :allMediaStreamLog => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAllMediaStreamLog.t() | nil, + :counterfactualDeviceSelectionLog => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionLog.t() | nil, + :defaultDevices => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDeviceLog.t() | nil, + :defaultDevicesLog => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDevicesLog.t() | nil, + :devicesStr => list(String.t()) | nil, + :inputErrorLog => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsInputErrorLog.t()) | nil, + :localDevice => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t() | nil, + :logDataSource => String.t() | nil, + :mediaFocus => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusInfoLog.t() | nil, + :mediaFocusesLog => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusesLog.t() | nil, + :nearbyDevicesLog => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsNearbyDevicesLog.t() | nil, + :queryAnnotation => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsQueryAnnotationLog.t() | nil, + :selectionResult => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionResultLog.t() | nil, + :testCodes => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceTargetingTestCode.t()) + | nil + } + + field(:allDefaultDevices, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDeviceLog, + type: :list + ) + + field(:allMediaStreamLog, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAllMediaStreamLog) + + field(:counterfactualDeviceSelectionLog, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionLog + ) + + field(:defaultDevices, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDeviceLog) + + field(:defaultDevicesLog, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDefaultDevicesLog) + + field(:devicesStr, type: :list) + + field(:inputErrorLog, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsInputErrorLog, + type: :list + ) + + field(:localDevice, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog) + field(:logDataSource) + field(:mediaFocus, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusInfoLog) + field(:mediaFocusesLog, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusesLog) + field(:nearbyDevicesLog, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsNearbyDevicesLog) + field(:queryAnnotation, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsQueryAnnotationLog) + + field(:selectionResult, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionResultLog + ) + + field(:testCodes, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceTargetingTestCode, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionLog.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_selection_result_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_selection_result_log.ex new file mode 100644 index 0000000000..6072dfb94c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_selection_result_log.ex @@ -0,0 +1,105 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionResultLog do + @moduledoc """ + Log the selection result. Next ID: 11 + + ## Attributes + + * `ambiguousTargetDevices` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLog.t`, *default:* `nil`) - Deprecated, please use qualified_devices. + * `deviceSelectionDecisionSummary` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaDeviceSelectionDecisionSummary.t`, *default:* `nil`) - + * `deviceTargetingErrorType` (*type:* `String.t`, *default:* `nil`) - + * `finalLumosStage` (*type:* `String.t`, *default:* `nil`) - The class name for the final filter/promoter used by Lumos for device targeting. This filter or promoter runs for all users, and contains no data specific to the individual user. + * `lowConfidenceTargetDevice` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsLowConfidenceTargetDeviceLog.t`, *default:* `nil`) - ////////////////////////////////////////////////////////////////////////// Ambiguous Results: the library failed to select the final target device(s) but it narrows down to a set of devices which are all valid target device candidates. The client needs to do further disambiguation, e.g., giving a dialog or having customized logic. The low confidence target device means the library falied to select the target device but it picked two devices for the client to do disambiguation. + * `mediaFocusSelectionErrorType` (*type:* `String.t`, *default:* `nil`) - ////////////////////////////////////////////////////////////////////////// This field log the error while selecting target device in media_focus_selector. + * `processorInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsLumosProcessorInfo.t)`, *default:* `nil`) - The log for each stage of Lumos, showing the number of eliminated devices from each processor. + * `qualifiedDevices` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLog.t`, *default:* `nil`) - We will apply several filters and dialogs to select a target device if media_focus_selector fail to select one. This field should log the devices left after each filter or dialog. It also log the detailed info of the final target device. + * `singleTargetDevice` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t`, *default:* `nil`) - ////////////////////////////////////////////////////////////////////////// Unambiguous Results: the library successfully selected the final target device(s) and no further disambiguation is needed. Deprecated, please use target_device. + * `targetDevice` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsTargetDeviceLog.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ambiguousTargetDevices => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLog.t() | nil, + :deviceSelectionDecisionSummary => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaDeviceSelectionDecisionSummary.t() + | nil, + :deviceTargetingErrorType => String.t() | nil, + :finalLumosStage => String.t() | nil, + :lowConfidenceTargetDevice => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsLowConfidenceTargetDeviceLog.t() + | nil, + :mediaFocusSelectionErrorType => String.t() | nil, + :processorInfo => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsLumosProcessorInfo.t()) | nil, + :qualifiedDevices => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLog.t() | nil, + :singleTargetDevice => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t() | nil, + :targetDevice => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsTargetDeviceLog.t() | nil + } + + field(:ambiguousTargetDevices, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLog + ) + + field(:deviceSelectionDecisionSummary, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaDeviceSelectionDecisionSummary + ) + + field(:deviceTargetingErrorType) + field(:finalLumosStage) + + field(:lowConfidenceTargetDevice, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsLowConfidenceTargetDeviceLog + ) + + field(:mediaFocusSelectionErrorType) + + field(:processorInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsLumosProcessorInfo, + type: :list + ) + + field(:qualifiedDevices, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsAmbiguousTargetDeviceLog + ) + + field(:singleTargetDevice, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog) + field(:targetDevice, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsTargetDeviceLog) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionResultLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionResultLog.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionResultLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_targeting_test_code.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_targeting_test_code.ex new file mode 100644 index 0000000000..2b2483a4f4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_device_targeting_test_code.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceTargetingTestCode do + @moduledoc """ + Test code is used to track special events happening in Device Targeting Library. Next Id: 2 + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceTargetingTestCode do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceTargetingTestCode.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceTargetingTestCode do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_input_error_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_input_error_log.ex new file mode 100644 index 0000000000..30e9c5feae --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_input_error_log.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsInputErrorLog do + @moduledoc """ + + + ## Attributes + + * `errorCode` (*type:* `integer()`, *default:* `nil`) - + * `errorType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :errorCode => integer() | nil, + :errorType => String.t() | nil + } + + field(:errorCode) + field(:errorType) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsInputErrorLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsInputErrorLog.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsInputErrorLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_low_confidence_target_device_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_low_confidence_target_device_log.ex new file mode 100644 index 0000000000..a5f3a28043 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_low_confidence_target_device_log.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsLowConfidenceTargetDeviceLog do + @moduledoc """ + Represents the case where there is a target device with low confidence so that the library didn't directly target it. Instead, the library returns the low confidence target device and the fallback device for the client to decide to either trigger a dialog to disambiguate or select one of them based on extra business logic. Next ID: 3 + + ## Attributes + + * `fallbackDeviceLog` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t`, *default:* `nil`) - The fallback device. + * `lowConfTargetDeviceLog` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t`, *default:* `nil`) - The selected low confidence focus device. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fallbackDeviceLog => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t() | nil, + :lowConfTargetDeviceLog => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t() | nil + } + + field(:fallbackDeviceLog, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog) + + field(:lowConfTargetDeviceLog, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsLowConfidenceTargetDeviceLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsLowConfidenceTargetDeviceLog.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsLowConfidenceTargetDeviceLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_lumos_processor_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_lumos_processor_info.ex new file mode 100644 index 0000000000..41a95e3b28 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_lumos_processor_info.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsLumosProcessorInfo do + @moduledoc """ + + + ## Attributes + + * `devicesAfterRun` (*type:* `integer()`, *default:* `nil`) - Number of candidate devices after this stage is run. + * `devicesBeforeRun` (*type:* `integer()`, *default:* `nil`) - Number of candidate devices before this stage is run. + * `processorName` (*type:* `String.t`, *default:* `nil`) - Name of the processor for this stage. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :devicesAfterRun => integer() | nil, + :devicesBeforeRun => integer() | nil, + :processorName => String.t() | nil + } + + field(:devicesAfterRun) + field(:devicesBeforeRun) + field(:processorName) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsLumosProcessorInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsLumosProcessorInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsLumosProcessorInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_capabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_capabilities.ex new file mode 100644 index 0000000000..93a4957b05 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_capabilities.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaCapabilities do + @moduledoc """ + + + ## Attributes + + * `canReceiveRemoteAction` (*type:* `boolean()`, *default:* `nil`) - + * `hasScreen` (*type:* `boolean()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canReceiveRemoteAction => boolean() | nil, + :hasScreen => boolean() | nil + } + + field(:canReceiveRemoteAction) + field(:hasScreen) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaCapabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaCapabilities.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaCapabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_device_selection_decision_summary.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_device_selection_decision_summary.ex new file mode 100644 index 0000000000..bc010bd0a5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_device_selection_decision_summary.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaDeviceSelectionDecisionSummary do + @moduledoc """ + A summary of the reasons that we chose a certain target device. + + ## Attributes + + * `deviceSelectionPreferenceUsed` (*type:* `String.t`, *default:* `nil`) - + * `deviceSelectionReason` (*type:* `String.t`, *default:* `nil`) - + * `miscSelectionSignal` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceSelectionPreferenceUsed => String.t() | nil, + :deviceSelectionReason => String.t() | nil, + :miscSelectionSignal => list(String.t()) | nil + } + + field(:deviceSelectionPreferenceUsed) + field(:deviceSelectionReason) + field(:miscSelectionSignal, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaDeviceSelectionDecisionSummary do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaDeviceSelectionDecisionSummary.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaDeviceSelectionDecisionSummary do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_focus_info_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_focus_info_log.ex new file mode 100644 index 0000000000..1e5f3c32c3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_focus_info_log.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusInfoLog do + @moduledoc """ + The information related to Media Focus. TODO(b/138952173) Deprecate MediaFocusState in logs/proto/majel_gws/media_action_triggering_info.proto and assistant/verticals/media/proto/target_device_info.proto + + ## Attributes + + * `currentFocusDurationSec` (*type:* `integer()`, *default:* `nil`) - How long the device is in focus so far + * `dialogTriggered` (*type:* `boolean()`, *default:* `nil`) - TODO(b/134944092) Log MediaFocusDialogTrigger Enum in focus_status. + * `focusDevice` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t`, *default:* `nil`) - LINT.ThenChange(//depot/google3/logs/proto/majel_gws/media_action_triggering_info.proto) The focus device. + * `mediaFocusState` (*type:* `String.t`, *default:* `nil`) - The media focus state at the time of the request. + * `sourceDeviceId` (*type:* `String.t`, *default:* `nil`) - The source device of media focus. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :currentFocusDurationSec => integer() | nil, + :dialogTriggered => boolean() | nil, + :focusDevice => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t() | nil, + :mediaFocusState => String.t() | nil, + :sourceDeviceId => String.t() | nil + } + + field(:currentFocusDurationSec) + field(:dialogTriggered) + field(:focusDevice, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog) + field(:mediaFocusState) + field(:sourceDeviceId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusInfoLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusInfoLog.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusInfoLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_focuses_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_focuses_log.ex new file mode 100644 index 0000000000..223e38a1c6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_focuses_log.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusesLog do + @moduledoc """ + Following are the MDA compatible loggings for media focus, default settings and nearby devices. + + ## Attributes + + * `dialogTriggered` (*type:* `boolean()`, *default:* `nil`) - + * `localMediaFocus` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusInfoLog.t`, *default:* `nil`) - + * `mediaFocuses` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusInfoLog.t)`, *default:* `nil`) - Deprecated, use nearby_media_focuses instead. + * `nearbyMediaFocuses` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusInfoLog.t)`, *default:* `nil`) - MediaFouces found on nearby devices. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dialogTriggered => boolean() | nil, + :localMediaFocus => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusInfoLog.t() | nil, + :mediaFocuses => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusInfoLog.t()) | nil, + :nearbyMediaFocuses => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusInfoLog.t()) | nil + } + + field(:dialogTriggered) + field(:localMediaFocus, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusInfoLog) + + field(:mediaFocuses, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusInfoLog, + type: :list + ) + + field(:nearbyMediaFocuses, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusInfoLog, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusesLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusesLog.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaFocusesLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_stream_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_stream_log.ex new file mode 100644 index 0000000000..6649ff01bb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_media_stream_log.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaStreamLog do + @moduledoc """ + Media stream is composed of a media session and one or more devices which are hosting (playing) the session. Usually, a session is only hosted by one devcie. However, with cast group or stream transfer/expansion, a session could be hosted by multiple devices, which are playing the same session simultaneously. + + ## Attributes + + * `deviceIndex` (*type:* `list(integer())`, *default:* `nil`) - The device index in this message is consistent with the device index in DeviceInfoLog. This field refers to the devices that hosting the session. + * `session` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceMediaSessionLog.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceIndex => list(integer()) | nil, + :session => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceMediaSessionLog.t() | nil + } + + field(:deviceIndex, type: :list) + field(:session, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceMediaSessionLog) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaStreamLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaStreamLog.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsMediaStreamLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_nearby_devices_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_nearby_devices_log.ex new file mode 100644 index 0000000000..2aecf1e98f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_nearby_devices_log.ex @@ -0,0 +1,89 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsNearbyDevicesLog do + @moduledoc """ + + + ## Attributes + + * `deviceArbitrationCreationTimestampMs` (*type:* `String.t`, *default:* `nil`) - The timestamp that DeviceArbitration is created in milliseconds. + * `deviceTargetingInputCreationTimestampMs` (*type:* `String.t`, *default:* `nil`) - The timestamp that DeviceTargetingInput is built in milliseconds. + * `eliminatedByFurtherDistance` (*type:* `integer()`, *default:* `nil`) - + * `eliminatedByLocalClosest` (*type:* `integer()`, *default:* `nil`) - + * `eliminatedByUnknownDifferentRoom` (*type:* `integer()`, *default:* `nil`) - + * `eliminatedByUnregisteredDevice` (*type:* `integer()`, *default:* `nil`) - + * `localDevice` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t`, *default:* `nil`) - + * `nearbyDevices` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t)`, *default:* `nil`) - + * `numClosestDevices` (*type:* `integer()`, *default:* `nil`) - + * `numEquallyCloseDevices` (*type:* `integer()`, *default:* `nil`) - + * `numFurtherDevices` (*type:* `integer()`, *default:* `nil`) - + * `numHearingDevices` (*type:* `integer()`, *default:* `nil`) - + * `numUnknownDistanceDevices` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceArbitrationCreationTimestampMs => String.t() | nil, + :deviceTargetingInputCreationTimestampMs => String.t() | nil, + :eliminatedByFurtherDistance => integer() | nil, + :eliminatedByLocalClosest => integer() | nil, + :eliminatedByUnknownDifferentRoom => integer() | nil, + :eliminatedByUnregisteredDevice => integer() | nil, + :localDevice => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t() | nil, + :nearbyDevices => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t()) | nil, + :numClosestDevices => integer() | nil, + :numEquallyCloseDevices => integer() | nil, + :numFurtherDevices => integer() | nil, + :numHearingDevices => integer() | nil, + :numUnknownDistanceDevices => integer() | nil + } + + field(:deviceArbitrationCreationTimestampMs) + field(:deviceTargetingInputCreationTimestampMs) + field(:eliminatedByFurtherDistance) + field(:eliminatedByLocalClosest) + field(:eliminatedByUnknownDifferentRoom) + field(:eliminatedByUnregisteredDevice) + field(:localDevice, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog) + + field(:nearbyDevices, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog, + type: :list + ) + + field(:numClosestDevices) + field(:numEquallyCloseDevices) + field(:numFurtherDevices) + field(:numHearingDevices) + field(:numUnknownDistanceDevices) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsNearbyDevicesLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsNearbyDevicesLog.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsNearbyDevicesLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_provider_annotation_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_provider_annotation_log.ex new file mode 100644 index 0000000000..a35ff1a5b6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_provider_annotation_log.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsProviderAnnotationLog do + @moduledoc """ + Provider annotation annotated from the query. These fields contain the detailed information for the provider. (e.g. for Youtube, package_names contains "com.google.android.youtube", localized_names contains "youtube", and lang contains "en" from "en-US" which depends on user's setting.) + + ## Attributes + + * `lang` (*type:* `String.t`, *default:* `nil`) - + * `localizedNames` (*type:* `list(String.t)`, *default:* `nil`) - + * `packageNames` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lang => String.t() | nil, + :localizedNames => list(String.t()) | nil, + :packageNames => list(String.t()) | nil + } + + field(:lang) + field(:localizedNames, type: :list) + field(:packageNames, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsProviderAnnotationLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsProviderAnnotationLog.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsProviderAnnotationLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_query_annotation_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_query_annotation_log.ex new file mode 100644 index 0000000000..795f53d9d3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_query_annotation_log.ex @@ -0,0 +1,86 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsQueryAnnotationLog do + @moduledoc """ + Log about the query requirements + + ## Attributes + + * `deviceAnnotation` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceAnnotationLog.t`, *default:* `nil`) - Deprecated, please use room_annotations. + * `deviceAnnotations` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceAnnotationLog.t)`, *default:* `nil`) - Log the device annotations mentioned in the query. + * `providerAnnotation` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsProviderAnnotationLog.t`, *default:* `nil`) - Log the provider annotations annotated from the query. + * `roomAnnotation` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsRoomAnnotationLog.t`, *default:* `nil`) - TODO(b/171250187) Deprecates the optional RoomAnnotationLog and DeviceAnnotationLog. Deprecated, please use device_annotations. + * `roomAnnotations` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsRoomAnnotationLog.t)`, *default:* `nil`) - Log the room annotations mentioned in the query. + * `structureAnnotations` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsStructureAnnotationLog.t)`, *default:* `nil`) - Log the structure annotations mentioned in the query. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceAnnotation => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceAnnotationLog.t() | nil, + :deviceAnnotations => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceAnnotationLog.t()) | nil, + :providerAnnotation => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsProviderAnnotationLog.t() | nil, + :roomAnnotation => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsRoomAnnotationLog.t() | nil, + :roomAnnotations => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsRoomAnnotationLog.t()) | nil, + :structureAnnotations => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsStructureAnnotationLog.t()) + | nil + } + + field(:deviceAnnotation, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceAnnotationLog + ) + + field(:deviceAnnotations, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceAnnotationLog, + type: :list + ) + + field(:providerAnnotation, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsProviderAnnotationLog + ) + + field(:roomAnnotation, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsRoomAnnotationLog) + + field(:roomAnnotations, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsRoomAnnotationLog, + type: :list + ) + + field(:structureAnnotations, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsStructureAnnotationLog, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsQueryAnnotationLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsQueryAnnotationLog.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsQueryAnnotationLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_reminder_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_reminder_log.ex new file mode 100644 index 0000000000..9ebcff8273 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_reminder_log.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsReminderLog do + @moduledoc """ + Annotate a single reminder instance. + + ## Attributes + + * `createdSecondsAgo` (*type:* `String.t`, *default:* `nil`) - The reminder is created N seconds ago. This helps tracking how the user issues follow-up actions after reminder is created. For example, whether the user likes to issues another [show reminders] query right after reminder is created? + * `retrievedRankingClass` (*type:* `integer()`, *default:* `nil`) - If the reminder is retrieved by a ranking class (see go/opa-reminders-ranker), this will be populated with the class info. Refer to assistant.productivity.ReminderRankingClass.RankingType. Since that proto is in proto2 format, we can only wire by int type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createdSecondsAgo => String.t() | nil, + :retrievedRankingClass => integer() | nil + } + + field(:createdSecondsAgo) + field(:retrievedRankingClass) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsReminderLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsReminderLog.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsReminderLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_room_annotation_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_room_annotation_log.ex new file mode 100644 index 0000000000..6ceb66359f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_room_annotation_log.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsRoomAnnotationLog do + @moduledoc """ + Room annotation mentioned in query. + + ## Attributes + + * `rawTextFromQuery` (*type:* `String.t`, *default:* `nil`) - The raw text mentioning a room from the query, such as "my living room". + * `roomCount` (*type:* `integer()`, *default:* `nil`) - The number of rooms annotated, if there are multiple structures. They are guaranteed to have the same text_from_query and name due to exact matching. + * `type` (*type:* `String.t`, *default:* `nil`) - The annotation type mentioned in the query. + * `userDefinedName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :rawTextFromQuery => String.t() | nil, + :roomCount => integer() | nil, + :type => String.t() | nil, + :userDefinedName => String.t() | nil + } + + field(:rawTextFromQuery) + field(:roomCount) + field(:type) + field(:userDefinedName) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsRoomAnnotationLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsRoomAnnotationLog.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsRoomAnnotationLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_settings_device_id_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_settings_device_id_log.ex new file mode 100644 index 0000000000..695bd51766 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_settings_device_id_log.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsSettingsDeviceIdLog do + @moduledoc """ + The logging-version of DeviceId proto, which identifies a device. This mirrors cs/google3/assistant/api/core_types/device_type.proto?q=symbol:DeviceId Next ID: 6 + + ## Attributes + + * `agsaClientInstanceId` (*type:* `String.t`, *default:* `nil`) - The client_instance_id on devices with GSA. See 'client_instance_field' in go/androidids. + * `canonicalDeviceId` (*type:* `String.t`, *default:* `nil`) - A unique device ID for Assistant devices as proposed by go/ocelot-team. + * `castDeviceId` (*type:* `String.t`, *default:* `nil`) - If set, indicates that the device is a cast device, and contains the UUID of the cast device. Corresponds to the device_id field of the CastDevice proto. + * `clientInstanceId` (*type:* `String.t`, *default:* `nil`) - DUSI (go/dusi) is used as the identifier here. This identifier is unique to the user and device. This will help identify which device or application the user's request originated from. This is not to be confused with the client_instance_id that android devices provide. This is currently used by surfaces that use the assistant-legacy-nexus and assistant-legacy-clockwork pipelines. DUSI is created and set in S3. This field is only filled for GAIA requests. + * `homeGraphDeviceId` (*type:* `String.t`, *default:* `nil`) - The unique device ID for HomeGraph devices. This is the HomeGraph ID, created when the device is registered into HomeGraph. It is immutable for the same device unless it is completely deleted and recreated. See go/home-graph for details. } + * `libassistantDeviceId` (*type:* `String.t`, *default:* `nil`) - The unique ID for libassistant based devices. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agsaClientInstanceId => String.t() | nil, + :canonicalDeviceId => String.t() | nil, + :castDeviceId => String.t() | nil, + :clientInstanceId => String.t() | nil, + :homeGraphDeviceId => String.t() | nil, + :libassistantDeviceId => String.t() | nil + } + + field(:agsaClientInstanceId) + field(:canonicalDeviceId) + field(:castDeviceId) + field(:clientInstanceId) + field(:homeGraphDeviceId) + field(:libassistantDeviceId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsSettingsDeviceIdLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsSettingsDeviceIdLog.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsSettingsDeviceIdLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_structure_annotation_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_structure_annotation_log.ex new file mode 100644 index 0000000000..7fc99fcf0e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_structure_annotation_log.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsStructureAnnotationLog do + @moduledoc """ + Structure annotation mentioned in query. + + ## Attributes + + * `rawTextFromQuery` (*type:* `String.t`, *default:* `nil`) - The raw text mentioning a structure from the query, such as "my house". + * `type` (*type:* `String.t`, *default:* `nil`) - The annotation type mentioned in the query. + * `userDefinedName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :rawTextFromQuery => String.t() | nil, + :type => String.t() | nil, + :userDefinedName => String.t() | nil + } + + field(:rawTextFromQuery) + field(:type) + field(:userDefinedName) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsStructureAnnotationLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsStructureAnnotationLog.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsStructureAnnotationLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_target_device_log.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_target_device_log.ex new file mode 100644 index 0000000000..760b2e2f45 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_logs_target_device_log.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantLogsTargetDeviceLog do + @moduledoc """ + Represents the case where the library successfully selects the target device. It could be one or multiple devices. Next ID: 4 + + ## Attributes + + * `devices` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t)`, *default:* `nil`) - + * `lowConfidenceReason` (*type:* `String.t`, *default:* `nil`) - + * `resultConfidenceLevel` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :devices => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog.t()) | nil, + :lowConfidenceReason => String.t() | nil, + :resultConfidenceLevel => String.t() | nil + } + + field(:devices, as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceInfoLog, type: :list) + field(:lowConfidenceReason) + field(:resultConfidenceLevel) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsTargetDeviceLog do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsTargetDeviceLog.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsTargetDeviceLog do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_pfr_device_rd_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_pfr_device_rd_metadata.ex new file mode 100644 index 0000000000..8b35166786 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_pfr_device_rd_metadata.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantPfrDeviceRdMetadata do + @moduledoc """ + + + ## Attributes + + * `deviceName` (*type:* `String.t`, *default:* `nil`) - + * `deviceTypes` (*type:* `list(String.t)`, *default:* `nil`) - + * `effectiveArgSpanLength` (*type:* `number()`, *default:* `nil`) - + * `hasAmbiguousResolutions` (*type:* `boolean()`, *default:* `nil`) - True if there are more than one possible resolutions to the RD. + * `hasResolvedDeviceId` (*type:* `boolean()`, *default:* `nil`) - True if there's at least one device id that gets resolved. Note this is different from is_grounded = true: it is possible that is_grounded = false (num_grounded_args =0) but there is resolved device ids. E.g.: "turn on the blue light" Power_on(device_object = [d1, d2]:RD(category=DeviceObject(name='blue light')) where there are "blue light 1" and "blue light 2" hence two resolved device ids. But since the quantifier is single, GB can't resolve the ambiguity and would set num_grounded_args = 0 to indicate such unresolved ambiguity. + * `roomName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceName => String.t() | nil, + :deviceTypes => list(String.t()) | nil, + :effectiveArgSpanLength => number() | nil, + :hasAmbiguousResolutions => boolean() | nil, + :hasResolvedDeviceId => boolean() | nil, + :roomName => String.t() | nil + } + + field(:deviceName) + field(:deviceTypes, type: :list) + field(:effectiveArgSpanLength) + field(:hasAmbiguousResolutions) + field(:hasResolvedDeviceId) + field(:roomName) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantPfrDeviceRdMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantPfrDeviceRdMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantPfrDeviceRdMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_pfr_smart_home_intent_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_pfr_smart_home_intent_metadata.ex new file mode 100644 index 0000000000..a52e81b136 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_pfr_smart_home_intent_metadata.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantPfrSmartHomeIntentMetadata do + @moduledoc """ + Used by the Smarthome Business Rules twiddler to determine whether to replace the top-scoring Smarthome intent with another. + + ## Attributes + + * `deviceRdMetadata` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantPfrDeviceRdMetadata.t)`, *default:* `nil`) - Each DeviceRdMetadata represents one device RD (device slot) in the intent. Note that each device RD could have multiple device groundings inside of it. + * `intentName` (*type:* `String.t`, *default:* `nil`) - + * `isExactMatch` (*type:* `boolean()`, *default:* `nil`) - When num_constraints == num_constraints_satisfied, indicating all slot matchings are exact match. + * `isGrounded` (*type:* `boolean()`, *default:* `nil`) - When num_grounded_args > 0, indicating there is at least one top-level argument is grounded. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceRdMetadata => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantPfrDeviceRdMetadata.t()) | nil, + :intentName => String.t() | nil, + :isExactMatch => boolean() | nil, + :isGrounded => boolean() | nil + } + + field(:deviceRdMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantPfrDeviceRdMetadata, + type: :list + ) + + field(:intentName) + field(:isExactMatch) + field(:isGrounded) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantPfrSmartHomeIntentMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantPfrSmartHomeIntentMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantPfrSmartHomeIntentMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_pfr_tiebreaking_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_pfr_tiebreaking_metadata.ex new file mode 100644 index 0000000000..2aaabd3c0e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_pfr_tiebreaking_metadata.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantPfrTiebreakingMetadata do + @moduledoc """ + Features used by the PrefulfillmentRanker's scorer exclusively to break ties. + + ## Attributes + + * `fingerprint` (*type:* `String.t`, *default:* `nil`) - + * `sortedNameString` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fingerprint => String.t() | nil, + :sortedNameString => String.t() | nil + } + + field(:fingerprint) + field(:sortedNameString) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantPfrTiebreakingMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantPfrTiebreakingMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantPfrTiebreakingMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_prefulfillment_ranker_prefulfillment_signals.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_prefulfillment_ranker_prefulfillment_signals.ex new file mode 100644 index 0000000000..97dccf5c4d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_prefulfillment_ranker_prefulfillment_signals.ex @@ -0,0 +1,247 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantPrefulfillmentRankerPrefulfillmentSignals do + @moduledoc """ + Signals to be used by the Prefulfillment Ranker. Derived from the ParsingSignals and GroundingSignals carried by the FunctionCall. LINT.IfChange Next ID: 69 + + ## Attributes + + * `generatedByLegacyAquaDomain` (*type:* `boolean()`, *default:* `nil`) - Whether or not the intent was generated by a legacy Aqua domain that PFR should care about. + * `isTvmIntent` (*type:* `boolean()`, *default:* `nil`) - Whether the intent is a media object tvm intent. + * `predictedIntentConfidence` (*type:* `number()`, *default:* `nil`) - Intent confidence predicted by the AssistantVerticalClassifier QRewrite servlet. + * `numConstraintsSatisfied` (*type:* `float()`, *default:* `nil`) - Sum of the number of constraints satisfied for each variable. Depending on the match score for a constraint, this number can be fractional and is in the range [0, num_constraints]. Populated by the Grounding Box. + * `isFeasible` (*type:* `boolean()`, *default:* `nil`) - Feasibility of fulfilling the binding set. Eg: For PlayMedia, this is equivalent to playability. More details: go/hgr-feasibility-feature. + * `rankerName` (*type:* `String.t`, *default:* `nil`) - Used in HGR to modify the ranker based on input experimental flag and intent name. + * `verticalConfidenceScore` (*type:* `number()`, *default:* `nil`) - Horizontal feature that stores information about confidence scores for each resolution within the binding set. + * `numGroundedArgs` (*type:* `float()`, *default:* `nil`) - Number of grounded arguments the intent has, populated by the Grounding Box. + * `isValidSmarthomeIntent` (*type:* `boolean()`, *default:* `nil`) - Whether the intent is a Smarthome-domain intent with valid device arguments. + * `dominant` (*type:* `boolean()`, *default:* `nil`) - Indicates interpretation dominance predicted by KScorer + * `maxHgrScoreAcrossBindingSets` (*type:* `float()`, *default:* `nil`) - The maximum score assigned by the Horizontal Grounding Ranker (HGR) across all of the intent's binding sets. + * `groundingProviderFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerGroundingProviderFeatures.t`, *default:* `nil`) - Grounding Provider related ranking features, including general Grounding Provider ranking features(shared among multiple GPs) and specific Grounding Provider ranking features(provided by a specific GP). + * `isNspIntent` (*type:* `boolean()`, *default:* `nil`) - Whether this interpretation was genearted by NSP. + * `kscorerRank` (*type:* `integer()`, *default:* `nil`) - The rank order of the interpretation as determined by kscorer. The kscorer-determined dominant interpretation, if any, gets a rank of 0. The remaining N interpretations get a rank of 1 through N. + * `nspRank` (*type:* `integer()`, *default:* `nil`) - Rank of the intent as reported by NSP. + * `isSageIntent` (*type:* `boolean()`, *default:* `nil`) - Whether this intent was generated by Sage. + * `intentNamePauis` (*type:* `number()`, *default:* `nil`) - Intent level Pauis User Interaction Score. + * `numGroundableArgs` (*type:* `float()`, *default:* `nil`) - Number of groundable arguments the intent has, populated by the Grounding Box. + * `isDummyIntent` (*type:* `boolean()`, *default:* `nil`) - + * `isPlayGenericMusic` (*type:* `boolean()`, *default:* `nil`) - Whether the intent is a PlayGenericMusic-type intent. + * `intentName` (*type:* `String.t`, *default:* `nil`) - intent_name is used by PFR ensemble model. See go/pfr_ha_launch_doc + * `bindingSetInvalidReason` (*type:* `String.t`, *default:* `nil`) - BindingSet level invalid reason. This is only useful when the bindingset is invalid after running the horizontal check in HGR. More details: go/gb-infeasible. + * `isFullyGrounded` (*type:* `boolean()`, *default:* `nil`) - Whether the intent is fully grounded. + * `usesGroundingBox` (*type:* `boolean()`, *default:* `nil`) - Whether the interpretation should run through grounding box or not. + * `deepMediaDominant` (*type:* `boolean()`, *default:* `nil`) - Whether the intent is dominant according to NSP deep-media. + * `isHighConfidencePodcastIntent` (*type:* `boolean()`, *default:* `nil`) - Used for PFR manual rule to prefer high confidence podcast intent (e.g. topical, genre) over generic podcast intents. + * `subIntentType` (*type:* `String.t`, *default:* `nil`) - + * `intentNameAuisScore` (*type:* `float()`, *default:* `nil`) - QUS intent-based ranking signals. Assistant User Interaction Score which is aggregated using intent name. + * `platinumSource` (*type:* `boolean()`, *default:* `nil`) - Whether the intent comes from the Sage IntentGenerator's "platinum" source, signifying high-confidence in quality. + * `numConstraints` (*type:* `float()`, *default:* `nil`) - Sum of the number of constraints used by the Grounding Box to ground each variable. + * `searchDispatch` (*type:* `String.t`, *default:* `nil`) - The determination made by the SearchDispatchingConfig as to whether and how this interpretation should be dispatched to Search. + * `isScoreBasedIntent` (*type:* `boolean()`, *default:* `nil`) - Whether this intent is a score-based intent, relying on PFR for scoring and pruning to the top intent. + * `fulfillableDominantMedia` (*type:* `boolean()`, *default:* `nil`) - Whether this is a fulfillable, dominant Media intent. + * `isPodcastIntent` (*type:* `boolean()`, *default:* `nil`) - Whether the intent is a podcast intent. + * `intentType` (*type:* `String.t`, *default:* `nil`) - intent_type differentiates between intents that share the top level intent name. For eg: for TV_FALLBACK_SEARCH_INTENT, the top level intent name must be "Find_media" and the media_object argument within it must be of type "Media_unspecified". + * `numVariables` (*type:* `float()`, *default:* `nil`) - Signals as proposed in go/improved-grounding-signals. Number of arguments, possibly nested, that the Grounding Box tried to ground. + * `isPodcastGenericIntent` (*type:* `boolean()`, *default:* `nil`) - Used for PFR manual rule to prefer high confidence podcast intent (e.g. topical, genre) over generic podcast intents. + * `topHypothesisConfidence` (*type:* `number()`, *default:* `nil`) - Average of per-word confidence for top speech recognition hypothesis. The value is from RecognizerHypothesisLog: http://google3/logs/proto/speech/service/recognizer_log.proto?l=848&rcl=281400256 + * `laaFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeatures.t`, *default:* `nil`) - Learn and adapt(go/laa) related features. Design doc: go/laa-profile-signal-for-grounding. + * `isVideoIntent` (*type:* `boolean()`, *default:* `nil`) - Whether the intent is a media object video intent. + * `bindingSetAuis` (*type:* `number()`, *default:* `nil`) - Assistant User Interaction Score for binding set. + * `pq2tVsAssistantIbstCosine` (*type:* `float()`, *default:* `nil`) - Cosine similarity between predicted query-to-term model and assistant intent-type-based salient terms. This is intended to be only used for ACE ranking and only populated for assistant traffic. + * `groundabilityScore` (*type:* `float()`, *default:* `nil`) - Grounding Signals. Score indicating how grounded the intent is, populated by the Grounding Box. + * `phase` (*type:* `String.t`, *default:* `nil`) - Query understanding phase the intent was produced in. + * `hasAnswerGroup` (*type:* `boolean()`, *default:* `nil`) - Whether the interpretation has a Search answer group object, signifying it came from Search resolution. + * `numAlternativeHypothesis` (*type:* `number()`, *default:* `nil`) - Number of alternative hypotheses from speech recognition(S3). + * `smarthomeIntentMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantPfrSmartHomeIntentMetadata.t`, *default:* `nil`) - SmartHome intent metadata used for the SmartHome business-rules twiddler. + * `tiebreakingMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantPfrTiebreakingMetadata.t`, *default:* `nil`) - + * `maskCandidateLevelFeatures` (*type:* `boolean()`, *default:* `nil`) - This feature is always false / no-op in serving time. In training time, this feature may be set true on specific examples for weighted training where when this signal is true, only cross-intent level features are used for training and other candidate level features are masked (set as missing). + * `numVariablesGrounded` (*type:* `float()`, *default:* `nil`) - Number of arguments, possibly nested, that the Grounding Box was able to ground. This includes ambiguously grounded arguments. + * `inQueryMaxEffectiveArgSpanLength` (*type:* `number()`, *default:* `nil`) - This is a cross-intent feature which is calculated by iterating all intent candidates. This feature should be populated in post-IG stage (before GB). + * `intentNameAuisScoreExp` (*type:* `float()`, *default:* `nil`) - Assistant User Interaction Score which is aggregated using intent name from exp laelaps. + * `isSageDisabledIntent` (*type:* `boolean()`, *default:* `nil`) - Whether the intent is an intent marked disabled by the Sage IG. + * `isSageInNageIntent` (*type:* `boolean()`, *default:* `nil`) - Whether the intent is produced by the Sage IntentGenerator invoked by the NSP intent-generator (thus, Sage-in-NSP-invoking_Sage, or Sage-in-Nage). + * `calibratedParsingScore` (*type:* `float()`, *default:* `nil`) - A parsing score that is independently calibrated by each parser/IG. + * `bindingSetValidity` (*type:* `String.t`, *default:* `nil`) - BindingSet level validity. When one of the GPs returns invalid resolution, or the combined bindingset is invalid, this enum will indidate the validity. More details: go/gb-infeasible. + * `pq2tVsIbstCosine` (*type:* `float()`, *default:* `nil`) - Cosine similarity between predicted query-to-term model and intent-type-based salient terms. This is intended to be used as a backoff to pq2t_vs_qibst_cosine if it is missing. + * `parsingScoreMse8BucketId` (*type:* `integer()`, *default:* `nil`) - A ID corresponding to which bucket a given parsing score belongs in. + * `isMediaControlIntent` (*type:* `boolean()`, *default:* `nil`) - Whether the intent is a media control intent. + * `bindingSetPauis` (*type:* `number()`, *default:* `nil`) - Pauis score for the binding set + * `effectiveArgSpanLength` (*type:* `number()`, *default:* `nil`) - The total effective length of the spans for the arguments used to construct the parse. May include vertical specific adjustments. Eg: For the query [delete my 7 p.m. alarm called chicken] and intent Delete_alarm(alarm_object=RD(category=AlarmObject( label="chicken", trigger_time_datetime=<< 7 PM >>))), the effective argument span is "7 p.m." + "chicken" (total length of 13). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :generatedByLegacyAquaDomain => boolean() | nil, + :isTvmIntent => boolean() | nil, + :predictedIntentConfidence => number() | nil, + :numConstraintsSatisfied => float() | nil, + :isFeasible => boolean() | nil, + :rankerName => String.t() | nil, + :verticalConfidenceScore => number() | nil, + :numGroundedArgs => float() | nil, + :isValidSmarthomeIntent => boolean() | nil, + :dominant => boolean() | nil, + :maxHgrScoreAcrossBindingSets => float() | nil, + :groundingProviderFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerGroundingProviderFeatures.t() + | nil, + :isNspIntent => boolean() | nil, + :kscorerRank => integer() | nil, + :nspRank => integer() | nil, + :isSageIntent => boolean() | nil, + :intentNamePauis => number() | nil, + :numGroundableArgs => float() | nil, + :isDummyIntent => boolean() | nil, + :isPlayGenericMusic => boolean() | nil, + :intentName => String.t() | nil, + :bindingSetInvalidReason => String.t() | nil, + :isFullyGrounded => boolean() | nil, + :usesGroundingBox => boolean() | nil, + :deepMediaDominant => boolean() | nil, + :isHighConfidencePodcastIntent => boolean() | nil, + :subIntentType => String.t() | nil, + :intentNameAuisScore => float() | nil, + :platinumSource => boolean() | nil, + :numConstraints => float() | nil, + :searchDispatch => String.t() | nil, + :isScoreBasedIntent => boolean() | nil, + :fulfillableDominantMedia => boolean() | nil, + :isPodcastIntent => boolean() | nil, + :intentType => String.t() | nil, + :numVariables => float() | nil, + :isPodcastGenericIntent => boolean() | nil, + :topHypothesisConfidence => number() | nil, + :laaFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeatures.t() | nil, + :isVideoIntent => boolean() | nil, + :bindingSetAuis => number() | nil, + :pq2tVsAssistantIbstCosine => float() | nil, + :groundabilityScore => float() | nil, + :phase => String.t() | nil, + :hasAnswerGroup => boolean() | nil, + :numAlternativeHypothesis => number() | nil, + :smarthomeIntentMetadata => + GoogleApi.ContentWarehouse.V1.Model.AssistantPfrSmartHomeIntentMetadata.t() | nil, + :tiebreakingMetadata => + GoogleApi.ContentWarehouse.V1.Model.AssistantPfrTiebreakingMetadata.t() | nil, + :maskCandidateLevelFeatures => boolean() | nil, + :numVariablesGrounded => float() | nil, + :inQueryMaxEffectiveArgSpanLength => number() | nil, + :intentNameAuisScoreExp => float() | nil, + :isSageDisabledIntent => boolean() | nil, + :isSageInNageIntent => boolean() | nil, + :calibratedParsingScore => float() | nil, + :bindingSetValidity => String.t() | nil, + :pq2tVsIbstCosine => float() | nil, + :parsingScoreMse8BucketId => integer() | nil, + :isMediaControlIntent => boolean() | nil, + :bindingSetPauis => number() | nil, + :effectiveArgSpanLength => number() | nil + } + + field(:generatedByLegacyAquaDomain) + field(:isTvmIntent) + field(:predictedIntentConfidence) + field(:numConstraintsSatisfied) + field(:isFeasible) + field(:rankerName) + field(:verticalConfidenceScore) + field(:numGroundedArgs) + field(:isValidSmarthomeIntent) + field(:dominant) + field(:maxHgrScoreAcrossBindingSets) + + field(:groundingProviderFeatures, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerGroundingProviderFeatures + ) + + field(:isNspIntent) + field(:kscorerRank) + field(:nspRank) + field(:isSageIntent) + field(:intentNamePauis) + field(:numGroundableArgs) + field(:isDummyIntent) + field(:isPlayGenericMusic) + field(:intentName) + field(:bindingSetInvalidReason) + field(:isFullyGrounded) + field(:usesGroundingBox) + field(:deepMediaDominant) + field(:isHighConfidencePodcastIntent) + field(:subIntentType) + field(:intentNameAuisScore) + field(:platinumSource) + field(:numConstraints) + field(:searchDispatch) + field(:isScoreBasedIntent) + field(:fulfillableDominantMedia) + field(:isPodcastIntent) + field(:intentType) + field(:numVariables) + field(:isPodcastGenericIntent) + field(:topHypothesisConfidence) + field(:laaFeatures, as: GoogleApi.ContentWarehouse.V1.Model.AssistantGroundingRankerLaaFeatures) + field(:isVideoIntent) + field(:bindingSetAuis) + field(:pq2tVsAssistantIbstCosine) + field(:groundabilityScore) + field(:phase) + field(:hasAnswerGroup) + field(:numAlternativeHypothesis) + + field(:smarthomeIntentMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantPfrSmartHomeIntentMetadata + ) + + field(:tiebreakingMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantPfrTiebreakingMetadata + ) + + field(:maskCandidateLevelFeatures) + field(:numVariablesGrounded) + field(:inQueryMaxEffectiveArgSpanLength) + field(:intentNameAuisScoreExp) + field(:isSageDisabledIntent) + field(:isSageInNageIntent) + field(:calibratedParsingScore) + field(:bindingSetValidity) + field(:pq2tVsIbstCosine) + field(:parsingScoreMse8BucketId) + field(:isMediaControlIntent) + field(:bindingSetPauis) + field(:effectiveArgSpanLength) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantPrefulfillmentRankerPrefulfillmentSignals do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantPrefulfillmentRankerPrefulfillmentSignals.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantPrefulfillmentRankerPrefulfillmentSignals do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_productivity_list_item.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_productivity_list_item.ex new file mode 100644 index 0000000000..6597d007d5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_productivity_list_item.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantProductivityListItem do + @moduledoc """ + A message to represent an item in a list. Just a basic string for now, but extensible for the future. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - [REQUIRED] The name of the list item. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil + } + + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantProductivityListItem do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantProductivityListItem.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantProductivityListItem do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_reminders_attachment.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_reminders_attachment.ex new file mode 100644 index 0000000000..fc89db68f7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_reminders_attachment.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersAttachment do + @moduledoc """ + Proto descrbing an attachment to an Assistant Reminder. If the attachment has different behavior on different surfaces (e.g., deeplinks), there will be multiple attachments attach to the Reminder. Each of them will specify the surface type and the corresponding deeplink. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - REQUIRED. An unique identifier for the attachment. We have a plan to index this field, so it's marked as REQUIRED. Chat with opa-reminders-eng@ if you have a use case without an attachment ID. + * `link` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersAttachmentLink.t`, *default:* `nil`) - + * `surfaceType` (*type:* `list(String.t)`, *default:* `nil`) - REQUIRED. Surface types this attachment should be shown. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :link => GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersAttachmentLink.t() | nil, + :surfaceType => list(String.t()) | nil + } + + field(:id) + field(:link, as: GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersAttachmentLink) + field(:surfaceType, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersAttachment do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersAttachment.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersAttachment do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_reminders_attachment_link.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_reminders_attachment_link.ex new file mode 100644 index 0000000000..d86a303899 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_reminders_attachment_link.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersAttachmentLink do + @moduledoc """ + + + ## Attributes + + * `linkUrl` (*type:* `String.t`, *default:* `nil`) - REQUIRED. The link to surface to frontends (e.g., Hubpage, notifications.) This could also be a surface-specific deeplink (be sure to set `surface_type` accordingly.) + * `notificationText` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersNlgTemplateKey.t`, *default:* `nil`) - REQUIRED. The text for the notification link button. Note: We cannot take nlp_generation.TemplateData yet due to cyclic dependency. The plan is to cut dependency from TemplateData to quality.actions.Reminder. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :linkUrl => String.t() | nil, + :notificationText => + GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersNlgTemplateKey.t() | nil + } + + field(:linkUrl) + + field(:notificationText, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersNlgTemplateKey + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersAttachmentLink do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersAttachmentLink.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersAttachmentLink do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_reminders_memory_payload.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_reminders_memory_payload.ex new file mode 100644 index 0000000000..3e73262a36 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_reminders_memory_payload.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersMemoryPayload do + @moduledoc """ + Since this is stored in BE, any update on this proto needs LGTM by ARIS storage owner + + ## Attributes + + * `hasReferencedEntityAtCreation` (*type:* `boolean()`, *default:* `nil`) - Whether the reminder created has a referenced_entity attached to it or not(go/hub-memory-payload). Since we plan to set this in Assistant reminder creation path flow, in case later the referenced_entity is removed from the reminder, then this bit might still remain true. Also in case referenced_entity is later added to reminder(for example when referenced_entity is attached by Server), then also this bit might remain false. This bit will be used to *guess* if the user has a memory-enabled AGSA, thus we'll surface the "open memory" button on hubpage. This check is not perfect, as the user might have other phones with older AGSA, so this is just a *best guess*. This field won't be stored in Memory backend, and will not be populated back when retrieving reminders. + * `recordId` (*type:* `String.t`, *default:* `nil`) - Id of record that is associated with Reminder. This will be set for all Assistant reminders created after the first launch of the Reminder Memory integration, see go/reminders-memory for more details. Also, this might apply to all other types of reminders. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :hasReferencedEntityAtCreation => boolean() | nil, + :recordId => String.t() | nil + } + + field(:hasReferencedEntityAtCreation) + field(:recordId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersMemoryPayload do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersMemoryPayload.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersMemoryPayload do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_reminders_nlg_template_key.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_reminders_nlg_template_key.ex new file mode 100644 index 0000000000..0de2ed5a5f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_reminders_nlg_template_key.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersNlgTemplateKey do + @moduledoc """ + Equivalent to nlp_generation.TemplateKey. We cannot use nlp_generation.TemplateKey message directly becasue that proto is defined in a relatively large proto and has other dependencies, which will increase the size unnecessary and might hit many limitations (e.g., 5MiB limitation for Spanner type environment.). + + ## Attributes + + * `messageSet` (*type:* `String.t`, *default:* `nil`) - REQUIRED. + * `templateName` (*type:* `String.t`, *default:* `nil`) - REQUIRED. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :messageSet => String.t() | nil, + :templateName => String.t() | nil + } + + field(:messageSet) + field(:templateName) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersNlgTemplateKey do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersNlgTemplateKey.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AssistantRemindersNlgTemplateKey do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_teleport_teleport_nickname_signals.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_teleport_teleport_nickname_signals.ex new file mode 100644 index 0000000000..1ab8941709 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_teleport_teleport_nickname_signals.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantTeleportTeleportNicknameSignals do + @moduledoc """ + + + ## Attributes + + * `hasLocationInterpretation` (*type:* `boolean()`, *default:* `nil`) - Whether the nickname could also refer to a location. For example, "walmart", "starbucks". + * `installInfo` (*type:* `String.t`, *default:* `nil`) - Indicates whether the user has the app installed. + * `isGeneric` (*type:* `boolean()`, *default:* `nil`) - True when the name is generic, i.e when it could refer to multiple packages from different developrs. For example, "mail" is considered a generic name (since it can refer to "gmail", "yahoo mail" etc.) but "facebook" although could refer to both "facebook" and "facebook lite" is not considered generic (both packages are from the same third party). + * `nicknameTier` (*type:* `String.t`, *default:* `nil`) - The tier of the nickname. + * `source` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :hasLocationInterpretation => boolean() | nil, + :installInfo => String.t() | nil, + :isGeneric => boolean() | nil, + :nicknameTier => String.t() | nil, + :source => String.t() | nil + } + + field(:hasLocationInterpretation) + field(:installInfo) + field(:isGeneric) + field(:nicknameTier) + field(:source) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantTeleportTeleportNicknameSignals do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantTeleportTeleportNicknameSignals.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantTeleportTeleportNicknameSignals do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_common_contact_match_signal.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_common_contact_match_signal.ex new file mode 100644 index 0000000000..ed588c0b0d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_common_contact_match_signal.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsCommonContactMatchSignal do + @moduledoc """ + Neural contact match signals. + + ## Attributes + + * `matchScore` (*type:* `number()`, *default:* `nil`) - Neural contact match similarity score. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :matchScore => number() | nil + } + + field(:matchScore) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsCommonContactMatchSignal do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsCommonContactMatchSignal.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsCommonContactMatchSignal do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_action_project_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_action_project_config.ex new file mode 100644 index 0000000000..c2eef9b6e6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_action_project_config.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoActionProjectConfig do + @moduledoc """ + Metadata for Actions-on-Google configuration. + + ## Attributes + + * `contextId` (*type:* `String.t`, *default:* `nil`) - Actions-on-Google action context ID. See go/sdm-hospitality-design. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contextId => String.t() | nil + } + + field(:contextId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoActionProjectConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoActionProjectConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoActionProjectConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_agent_device_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_agent_device_id.ex new file mode 100644 index 0000000000..9af9dfafdb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_agent_device_id.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAgentDeviceId do + @moduledoc """ + An agent + device pair that uniquely identifies a device. + + ## Attributes + + * `agentId` (*type:* `String.t`, *default:* `nil`) - The agent's ID. Generally it is the agent's Google pantheon project id. + * `deviceId` (*type:* `String.t`, *default:* `nil`) - Device ID defined by the agent. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentId => String.t() | nil, + :deviceId => String.t() | nil + } + + field(:agentId) + field(:deviceId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAgentDeviceId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAgentDeviceId.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAgentDeviceId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_agent_information.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_agent_information.ex new file mode 100644 index 0000000000..9a431d7bec --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_agent_information.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAgentInformation do + @moduledoc """ + AgentInformation represents the details needed to support both 1P and 3P partnerships for Home Automation. Next ID: 7 + + ## Attributes + + * `authType` (*type:* `String.t`, *default:* `nil`) - + * `deviceSource` (*type:* `String.t`, *default:* `nil`) - + * `executionPath` (*type:* `String.t`, *default:* `nil`) - + * `id` (*type:* `String.t`, *default:* `nil`) - Unique Agent ID which maps to a specific Agent. Not using Agent Name here as it may change over time. + * `key` (*type:* `String.t`, *default:* `nil`) - Agent's foreign key that uniquely identifies a user's device. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :authType => String.t() | nil, + :deviceSource => String.t() | nil, + :executionPath => String.t() | nil, + :id => String.t() | nil, + :key => String.t() | nil + } + + field(:authType) + field(:deviceSource) + field(:executionPath) + field(:id) + field(:key) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAgentInformation do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAgentInformation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAgentInformation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_attribute.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_attribute.ex new file mode 100644 index 0000000000..f53890f9cc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_attribute.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAttribute do + @moduledoc """ + Protos representing device or structure attributes. See go/hgs-attributes-protos. Only protos approved and formalized by assistant/HG team should be added here. + + ## Attributes + + * `structureBasedRoutine` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonStructureBasedRoutine.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :structureBasedRoutine => + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonStructureBasedRoutine.t() + | nil + } + + field(:structureBasedRoutine, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonStructureBasedRoutine + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAttribute do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAttribute.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAttribute do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_attributes.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_attributes.ex new file mode 100644 index 0000000000..f5004df133 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_attributes.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAttributes do + @moduledoc """ + LINT.IfChange(proto_attributes) + + ## Attributes + + * `attributeProtos` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAttribute.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributeProtos => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAttribute.t() + ) + | nil + } + + field(:attributeProtos, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAttribute, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAttributes do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAttributes.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAttributes do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_common_event_trigger.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_common_event_trigger.ex new file mode 100644 index 0000000000..38e8c0fbbf --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_common_event_trigger.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonEventTrigger do + @moduledoc """ + LINT.IfChange(proto_event_trigger) Next id: 5 + + ## Attributes + + * `enabled` (*type:* `boolean()`, *default:* `nil`) - + * `eventTriggerPayload` (*type:* `map()`, *default:* `nil`) - Detailed settings for the event trigger; unset if not applicable. + * `eventTriggerType` (*type:* `String.t`, *default:* `nil`) - Different event type may have different settings. For example: * SCHEDULED will have event_trigger_payload of cs/symbol:assistant.verticals.voice_shortcut.proto.Schedule * LOCATION will have event_trigger_payload of cs/symbol:assistant.verticals.voice_shortcut.proto.LocationTriggerEvent + * `triggerSource` (*type:* `integer()`, *default:* `nil`) - Unique identifier for the EventTrigger, e.g. SCHEDULED_ROUTINES. See the enum values of cs/symbol:WorkflowTriggerInput.TriggerSource + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enabled => boolean() | nil, + :eventTriggerPayload => map() | nil, + :eventTriggerType => String.t() | nil, + :triggerSource => integer() | nil + } + + field(:enabled) + field(:eventTriggerPayload, type: :map) + field(:eventTriggerType) + field(:triggerSource) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonEventTrigger do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonEventTrigger.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonEventTrigger do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_common_structure_based_routine.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_common_structure_based_routine.ex new file mode 100644 index 0000000000..02ab0acdb9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_common_structure_based_routine.ex @@ -0,0 +1,93 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonStructureBasedRoutine do + @moduledoc """ + Routines team stores the core Structure Based Routine data as the payload. We will add specific metadata on a per-need basis. LINT.IfChange(proto_structure_based_routine) Next id: 12 These two forms of payload are equivalent data in different formats and both will be stored in Home Graph. 1. The internal format will fan out to the DynamicEntity Footprints for read in Settings flow and Execution. 2. The UI format will be stripped out upon replication to DynamicEntity Footprints due to its redundancy and the Footprints data size limit, i.e. DE Footprints will only contain the internal format. + + ## Attributes + + * `enabled` (*type:* `boolean()`, *default:* `nil`) - Whether this Routine is enabled or not. If false, then this Routine can't be triggered by Voice. + * `googlePreconfigWorkflowId` (*type:* `String.t`, *default:* `nil`) - The unique identifier for a class of workflows. For example: * "sbr_001" => Away * "sbr_002" => Home * "category_template" => CUSTOM + * `language` (*type:* `String.t`, *default:* `nil`) - + * `payload` (*type:* `map()`, *default:* `nil`) - Internal format payload primarily for Routines team use. + * `securityLevel` (*type:* `String.t`, *default:* `nil`) - The security level of the Structure Based Routine as determined by the most security-sensitive task. + * `shared` (*type:* `boolean()`, *default:* `nil`) - + * `storagePayload` (*type:* `map()`, *default:* `nil`) - + * `structureId` (*type:* `String.t`, *default:* `nil`) - + * `triggers` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonStructureBasedRoutineTrigger.t)`, *default:* `nil`) - Voice or event triggers. + * `type` (*type:* `String.t`, *default:* `nil`) - + * `uiPayload` (*type:* `map()`, *default:* `nil`) - UI format payload primarily for external team use. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enabled => boolean() | nil, + :googlePreconfigWorkflowId => String.t() | nil, + :language => String.t() | nil, + :payload => map() | nil, + :securityLevel => String.t() | nil, + :shared => boolean() | nil, + :storagePayload => map() | nil, + :structureId => String.t() | nil, + :triggers => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonStructureBasedRoutineTrigger.t() + ) + | nil, + :type => String.t() | nil, + :uiPayload => map() | nil + } + + field(:enabled) + field(:googlePreconfigWorkflowId) + field(:language) + field(:payload, type: :map) + field(:securityLevel) + field(:shared) + field(:storagePayload, type: :map) + field(:structureId) + + field(:triggers, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonStructureBasedRoutineTrigger, + type: :list + ) + + field(:type) + field(:uiPayload, type: :map) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonStructureBasedRoutine do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonStructureBasedRoutine.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonStructureBasedRoutine do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_common_structure_based_routine_trigger.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_common_structure_based_routine_trigger.ex new file mode 100644 index 0000000000..3c1702848d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_common_structure_based_routine_trigger.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonStructureBasedRoutineTrigger do + @moduledoc """ + Next id: 3 + + ## Attributes + + * `eventTrigger` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonEventTrigger.t`, *default:* `nil`) - + * `voiceTrigger` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonVoiceTrigger.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :eventTrigger => + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonEventTrigger.t() + | nil, + :voiceTrigger => + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonVoiceTrigger.t() + | nil + } + + field(:eventTrigger, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonEventTrigger + ) + + field(:voiceTrigger, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonVoiceTrigger + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonStructureBasedRoutineTrigger do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonStructureBasedRoutineTrigger.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonStructureBasedRoutineTrigger do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_common_voice_trigger.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_common_voice_trigger.ex new file mode 100644 index 0000000000..59f3099dfe --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_common_voice_trigger.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonVoiceTrigger do + @moduledoc """ + LINT.IfChange(proto_voice_trigger) Next id: 2 + + ## Attributes + + * `query` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :query => String.t() | nil + } + + field(:query) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonVoiceTrigger do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonVoiceTrigger.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoCommonVoiceTrigger do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_concierge_features.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_concierge_features.ex new file mode 100644 index 0000000000..275bd2c828 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_concierge_features.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoConciergeFeatures do + @moduledoc """ + The Concierge features a structure is eligible for. See {@link home.graph.common.ConciergeFeatures}. + + ## Attributes + + * `conciergeProductFeatures` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conciergeProductFeatures => list(String.t()) | nil + } + + field(:conciergeProductFeatures, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoConciergeFeatures do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoConciergeFeatures.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoConciergeFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_device_targeting_output_query_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_device_targeting_output_query_info.ex new file mode 100644 index 0000000000..def97e9f96 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_device_targeting_output_query_info.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoDeviceTargetingOutputQueryInfo do + @moduledoc """ + Next ID: 5 + + ## Attributes + + * `annotatedSpanDevice` (*type:* `String.t`, *default:* `nil`) - The query span for device mention. + * `annotatedSpanRoom` (*type:* `String.t`, *default:* `nil`) - The query span for room mention. + * `annotatedSpanStructure` (*type:* `String.t`, *default:* `nil`) - The query span for structure mention. + * `processedMentionedSpan` (*type:* `String.t`, *default:* `nil`) - This field is from query_info.processed_mentioned_span in DTO. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :annotatedSpanDevice => String.t() | nil, + :annotatedSpanRoom => String.t() | nil, + :annotatedSpanStructure => String.t() | nil, + :processedMentionedSpan => String.t() | nil + } + + field(:annotatedSpanDevice) + field(:annotatedSpanRoom) + field(:annotatedSpanStructure) + field(:processedMentionedSpan) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoDeviceTargetingOutputQueryInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoDeviceTargetingOutputQueryInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoDeviceTargetingOutputQueryInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_home_automation__meta_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_home_automation__meta_data.ex new file mode 100644 index 0000000000..82b72170fd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_home_automation__meta_data.ex @@ -0,0 +1,278 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaData do + @moduledoc """ + Next ID: 45 + + ## Attributes + + * `attributes` (*type:* `map()`, *default:* `nil`) - Attributes data as provided from SYNC. This gets used in mutation and execution and in some potential cases, in biasing. + * `gcmExecutionAddress` (*type:* `String.t`, *default:* `nil`) - GCM address for cloud execution across google cloud messaging rather than 3p cloud. + * `smartHomeFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSmartHomeFeatures.t`, *default:* `nil`) - SmartHome feature flags that may be enabled per-item. + * `parentNode` (*type:* `list(String.t)`, *default:* `nil`) - LINT.IfChange(home_graph_single_parent) At the moment, we just have a single string. In future this will expand with additional metadata from client or cloud execution data store. In today's 'tree' HomeGraph each object has a single parent. In the future this may have a mesh for complex cases -- zones, doors, etc -- so we make this a repeated element today. LINT.ThenChange(//depot/google3/assistant/assistant_server/settings/user_defined_actions/footprints/footprint_accessor.cc:home_graph_single_parent) + * `supportedStructureFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSupportedStructureFeatures.t`, *default:* `nil`) - The features that are available for a structure. Will only be populated if the item_type == STRUCTURE. + * `matterUniqueId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoMatterUniqueId.t`, *default:* `nil`) - Matter Unique ID. Contains VID/PID information + * `assistantDeviceId` (*type:* `String.t`, *default:* `nil`) - Device ID that matches the ID passed from the device to discourse_context when a user issues a query to an Assistant-enabled device that is registered with Cast (via CCS (see go/castservers)), or some other service. + * `parentType` (*type:* `list(String.t)`, *default:* `nil`) - The type of the parent. Currently only set for devices, to distinguish between structure and room parents. Items currently have only one parent, and entries after the first parent_type are ignored. + * `plural` (*type:* `list(String.t)`, *default:* `nil`) - We use this to determine if the synonyms matched in the aqua interpretation is plural. Then we will return disambiguate dialog or execute commands with all the targets. + * `modelName` (*type:* `String.t`, *default:* `nil`) - Model name from HomeGraph, populated from model_manifest.model_name. See b/200087451. + * `traitRoutingHints` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonTraitRoutingHints.t)`, *default:* `nil`) - For SHED devices, some traits can only be executed on 3P cloud, e.g. "action.devices.traits.MediaInitiation", "action.devices.traits.Channel" go/shed-per-trait-routing + * `operationalNodeId` (*type:* `String.t`, *default:* `nil`) - Operational CHIP Node ID that combines the fabric ID and node id in format of . (Hex format without 0x prefix, for example, 0F001234FA67AA39.1234ABCD1111DDDD). + * `notificationSupportedByAgent` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the device is capable of sending notifications. This field will be set by the agent (partner) on an incoming SYNC. If a device is not capable of generating notifications, the partner should set this flag to false. If a partner is not capable of calling ReportStateAndNotification to send notifications to Google, the partner should set this flag to false. If there is a user setting in the partner app to enable notifications and it is turned off, the partner should set this flag to false. + * `deviceModelId` (*type:* `String.t`, *default:* `nil`) - See note in home_graph.proto; loaded into DE now to avoid having to double-read assistant settings records as per go/smarthome-removing-assistant-settings + * `tdssUpdateTimestamp` (*type:* `DateTime.t`, *default:* `nil`) - The timestamp at which the TDSS map was last updated. This information is used to help determine which hub would be preferred if multiple hubs report the same reach-ability for a device. + * `groupIds` (*type:* `list(String.t)`, *default:* `nil`) - List of parent group IDs, if the device is added to one or multiple device groups (see go/home-groups). Will be consumed by Smart Home APIs and (in the future) Assistant CTF to populate the group member list of device groups. + * `supportedTraitsByAgent` (*type:* `%{optional(String.t) => GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaDataSupportedTraits.t}`, *default:* `nil`) - Map from agent ID to supported traits. Some devices (e.g. Newman) have multiple agents, with each agent being associated with a specific set of traits. This could alternatively have been formatted as map as {trait, agent} pairs instead of the {agent, list of trait} pairs, but we retain this format to be consistent with HomeGraph's representation. In practice, a trait should only be paired with a single agent (i.e. we should not have two agents with the same trait in their value list). This field is optional and should only be provided if the item has multiple agents. + * `hashValue` (*type:* `String.t`, *default:* `nil`) - The hash value from go/de-consistency-check + * `creatorGaiaId` (*type:* `String.t`, *default:* `nil`) - See Device.creator_gaia_ids in //home/graph/proto/service/types.proto. If empty, the GAIA ID from the request EUC is assumed to be the creator. We only need at most one creator_gaia_id. + * `traitRoutingTable` (*type:* `%{optional(String.t) => GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonRoutingTable.t}`, *default:* `nil`) - Map from traits to routing table. Metadata includes preferred execution path per trait and, when Matter is preferred, which endpoint should be used for the trait. + * `smartDeviceManagementData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSmartDeviceManagementData.t`, *default:* `nil`) - Data needed for SDM (fleet management). See go/enterprise-id-in-assistant. + * `derivedType` (*type:* `list(String.t)`, *default:* `nil`) - Any types that are not the given item type, but derived later. For example, if an item has type action.devices.types.OUTLET but is named "floor lamp" we can derive that it also has type action.devices.types.LIGHT. Also considered along with |type| when triggering type-based actions. + * `saftDocument` (*type:* `GoogleApi.ContentWarehouse.V1.Model.NlpSaftDocument.t`, *default:* `nil`) - SAFT Document with linguistic annotations for the primary device name. + * `reportStateStatus` (*type:* `String.t`, *default:* `nil`) - Whether device report state is out of sync with Query response. + * `otherDeviceSources` (*type:* `list(String.t)`, *default:* `nil`) - Additional device sources. This can be the result of the device being merged with other devices with a different source. + * `targetDeviceSignalStrengths` (*type:* `map()`, *default:* `nil`) - Only present for an AoGH device. HGS Device ID of a target device and the signal strength (RSSI in dB, higher is better) between that target device and the AoGH device. If this map is empty, there are no target devices reachable by this AoGH device. + * `lanscanOptedIn` (*type:* `boolean()`, *default:* `nil`) - Whether local home platform should discover new devices via LAN for the structure. + * `physicalLocation` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoPhysicalLocation.t`, *default:* `nil`) - Stores the location for the STRUCTURE type. + * `routableViaGcm` (*type:* `boolean()`, *default:* `nil`) - Only present for a target device. Indicates this target device is reachable by a local (AoGH) path via an AoGH device. + * `userDefinedDeviceType` (*type:* `String.t`, *default:* `nil`) - The priority order of speech targeting: 1. user_defined_device_type 2. derived_device_type 3. device_type + * `type` (*type:* `String.t`, *default:* `nil`) - The item type, such as "action.devices.types.VACUUM" - to be used in triggering type-based actions, e.g. "start vacuuming": go/smarthome-type-based-actions. + * `opaqueCustomData` (*type:* `String.t`, *default:* `nil`) - Store custom data for agent calls here. This will likely be short-lived -- we will replace this with calls to HGS. (Note: This may end up not temporary if we only need it for a couple partners -- more efficient to have it on a few users than require HGS reads for all users. + * `willReportState` (*type:* `boolean()`, *default:* `nil`) - This device will report state; we can query realtime state from local HGS rather than slow QUERY intent to the 3p cloud. + * `supportsDirectResponse` (*type:* `boolean()`, *default:* `nil`) - This device supports direct response -- if the device itself is issuing the query (which means it's also an assistant surface) we can return its payload directly rather than via cloud. + * `roleInformation` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoRoleInformation.t`, *default:* `nil`) - User's role information for this device. This will be used in Home Automation server to decide if user has authority to fulfill its request. + * `primaryName` (*type:* `String.t`, *default:* `nil`) - Which of the values was the original, user-provided name -- or our disambiguated, cleaned-up version of it. This is what we use in TTS when we need to identify an object that wasn't just spoken uniquely by the user -- in disambiguation dialogue, or in response to a collective interrogative (e.g. "what lights are on in the kitchen?") + * `agentInformation` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAgentInformation.t`, *default:* `nil`) - Agent details. + * `otherDeviceIds` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAgentDeviceId.t)`, *default:* `nil`) - Other agent id + foreign id pairs associated with the device. This can be used to represent a group of devices (e.g. Sonos' bonded zone) as a single device, or a device that comes in through different sync flows (e.g. Newman with a Nest camera). + * `traitToAttributeProtos` (*type:* `%{optional(String.t) => GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAttributes.t}`, *default:* `nil`) - Map of trait to a proto representing the attribute. This is different from the attributes field above which is represented as a struct. The attributes here are represented as protos and will require specific support per trait. + * `notificationEnabledByUser` (*type:* `boolean()`, *default:* `nil`) - Indicates whether notifications have been enabled by a user and will be announced for this device. This is set by the user within the Google app settings, and Google will announce the device notification only if both notification_supported_by_agent and notification_enabled_by_user are true. + * `actionProjectConfigs` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoActionProjectConfig.t)`, *default:* `nil`) - Custom actions that this item supports. + * `personalizedNicknames` (*type:* `list(String.t)`, *default:* `nil`) - User-given nicknames for an entity (e.g. "My house"). These nicknames are unique to the gaia user. Nickname in DeviceInfo is per-entity level nickname, while personalized_nicknames is per-user per-entity. + * `zoneNameSaftDocument` (*type:* `GoogleApi.ContentWarehouse.V1.Model.NlpSaftDocument.t`, *default:* `nil`) - SAFT Document with linguistic annotations for the zone name, if applicable. + * `voiceMatchRequired` (*type:* `String.t`, *default:* `nil`) - Set to which level of voice match is needed. Enum based on string input from the partner in json sync. Values accepted: "none" (but in this case partners won't set it), "owner" [requires matching one of the creator gaia IDs], or "member" [any recognized voice 'enrolled' on the device]. This may expand; only "owner" is in use for first partner, Tile. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributes => map() | nil, + :gcmExecutionAddress => String.t() | nil, + :smartHomeFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSmartHomeFeatures.t() + | nil, + :parentNode => list(String.t()) | nil, + :supportedStructureFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSupportedStructureFeatures.t() + | nil, + :matterUniqueId => + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoMatterUniqueId.t() + | nil, + :assistantDeviceId => String.t() | nil, + :parentType => list(String.t()) | nil, + :plural => list(String.t()) | nil, + :modelName => String.t() | nil, + :traitRoutingHints => + list(GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonTraitRoutingHints.t()) | nil, + :operationalNodeId => String.t() | nil, + :notificationSupportedByAgent => boolean() | nil, + :deviceModelId => String.t() | nil, + :tdssUpdateTimestamp => DateTime.t() | nil, + :groupIds => list(String.t()) | nil, + :supportedTraitsByAgent => + %{ + optional(String.t()) => + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaDataSupportedTraits.t() + } + | nil, + :hashValue => String.t() | nil, + :creatorGaiaId => String.t() | nil, + :traitRoutingTable => + %{ + optional(String.t()) => + GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonRoutingTable.t() + } + | nil, + :smartDeviceManagementData => + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSmartDeviceManagementData.t() + | nil, + :derivedType => list(String.t()) | nil, + :saftDocument => GoogleApi.ContentWarehouse.V1.Model.NlpSaftDocument.t() | nil, + :reportStateStatus => String.t() | nil, + :otherDeviceSources => list(String.t()) | nil, + :targetDeviceSignalStrengths => map() | nil, + :lanscanOptedIn => boolean() | nil, + :physicalLocation => + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoPhysicalLocation.t() + | nil, + :routableViaGcm => boolean() | nil, + :userDefinedDeviceType => String.t() | nil, + :type => String.t() | nil, + :opaqueCustomData => String.t() | nil, + :willReportState => boolean() | nil, + :supportsDirectResponse => boolean() | nil, + :roleInformation => + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoRoleInformation.t() + | nil, + :primaryName => String.t() | nil, + :agentInformation => + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAgentInformation.t() + | nil, + :otherDeviceIds => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAgentDeviceId.t() + ) + | nil, + :traitToAttributeProtos => + %{ + optional(String.t()) => + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAttributes.t() + } + | nil, + :notificationEnabledByUser => boolean() | nil, + :actionProjectConfigs => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoActionProjectConfig.t() + ) + | nil, + :personalizedNicknames => list(String.t()) | nil, + :zoneNameSaftDocument => GoogleApi.ContentWarehouse.V1.Model.NlpSaftDocument.t() | nil, + :voiceMatchRequired => String.t() | nil + } + + field(:attributes, type: :map) + field(:gcmExecutionAddress) + + field(:smartHomeFeatures, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSmartHomeFeatures + ) + + field(:parentNode, type: :list) + + field(:supportedStructureFeatures, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSupportedStructureFeatures + ) + + field(:matterUniqueId, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoMatterUniqueId + ) + + field(:assistantDeviceId) + field(:parentType, type: :list) + field(:plural, type: :list) + field(:modelName) + + field(:traitRoutingHints, + as: GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonTraitRoutingHints, + type: :list + ) + + field(:operationalNodeId) + field(:notificationSupportedByAgent) + field(:deviceModelId) + field(:tdssUpdateTimestamp, as: DateTime) + field(:groupIds, type: :list) + + field(:supportedTraitsByAgent, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaDataSupportedTraits, + type: :map + ) + + field(:hashValue) + field(:creatorGaiaId) + + field(:traitRoutingTable, + as: GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonRoutingTable, + type: :map + ) + + field(:smartDeviceManagementData, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSmartDeviceManagementData + ) + + field(:derivedType, type: :list) + field(:saftDocument, as: GoogleApi.ContentWarehouse.V1.Model.NlpSaftDocument) + field(:reportStateStatus) + field(:otherDeviceSources, type: :list) + field(:targetDeviceSignalStrengths, type: :map) + field(:lanscanOptedIn) + + field(:physicalLocation, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoPhysicalLocation + ) + + field(:routableViaGcm) + field(:userDefinedDeviceType) + field(:type) + field(:opaqueCustomData) + field(:willReportState) + field(:supportsDirectResponse) + + field(:roleInformation, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoRoleInformation + ) + + field(:primaryName) + + field(:agentInformation, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAgentInformation + ) + + field(:otherDeviceIds, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAgentDeviceId, + type: :list + ) + + field(:traitToAttributeProtos, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoAttributes, + type: :map + ) + + field(:notificationEnabledByUser) + + field(:actionProjectConfigs, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoActionProjectConfig, + type: :list + ) + + field(:personalizedNicknames, type: :list) + field(:zoneNameSaftDocument, as: GoogleApi.ContentWarehouse.V1.Model.NlpSaftDocument) + field(:voiceMatchRequired) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_home_automation__meta_data_supported_traits.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_home_automation__meta_data_supported_traits.ex new file mode 100644 index 0000000000..30ec121986 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_home_automation__meta_data_supported_traits.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaDataSupportedTraits do + @moduledoc """ + + + ## Attributes + + * `traits` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :traits => list(String.t()) | nil + } + + field(:traits, type: :list) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaDataSupportedTraits do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaDataSupportedTraits.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaDataSupportedTraits do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_home_automation_device.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_home_automation_device.ex new file mode 100644 index 0000000000..67e762c92b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_home_automation_device.ex @@ -0,0 +1,104 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomationDevice do + @moduledoc """ + Next ID: 9 + + ## Attributes + + * `deviceSelectionLog` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionLog.t`, *default:* `nil`) - the next 3 fields are for Lumos output (DTO) that needs to be propagated to the Fulfilment through the HomeAutomationDevice proto. + * `dtoError` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantDeviceTargetingDeviceTargetingError.t`, *default:* `nil`) - + * `dtoQueryInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoDeviceTargetingOutputQueryInfo.t`, *default:* `nil`) - This field is from query_info in DTO. + * `homeautomationMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaData.t`, *default:* `nil`) - Device meta data. + * `list` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomationDeviceItem.t)`, *default:* `nil`) - list of HomeAutomationDeviceItem. After migration completes, we will mark the above 4 field as deprecated and only use this field. + * `matchedItemKey` (*type:* `String.t`, *default:* `nil`) - Corresponding to casse matched_item CustomTypeItem key. + * `matchedItemRawvalue` (*type:* `String.t`, *default:* `nil`) - Corresponding to casse Argument raw_value. + * `matchedItemValue` (*type:* `list(String.t)`, *default:* `nil`) - Corresponding to casse matched_item CustomTypeItem value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceSelectionLog => + GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionLog.t() | nil, + :dtoError => + GoogleApi.ContentWarehouse.V1.Model.AssistantDeviceTargetingDeviceTargetingError.t() + | nil, + :dtoQueryInfo => + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoDeviceTargetingOutputQueryInfo.t() + | nil, + :homeautomationMetadata => + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaData.t() + | nil, + :list => + list( + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomationDeviceItem.t() + ) + | nil, + :matchedItemKey => String.t() | nil, + :matchedItemRawvalue => String.t() | nil, + :matchedItemValue => list(String.t()) | nil + } + + field(:deviceSelectionLog, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantLogsDeviceSelectionLog + ) + + field(:dtoError, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantDeviceTargetingDeviceTargetingError + ) + + field(:dtoQueryInfo, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoDeviceTargetingOutputQueryInfo + ) + + field(:homeautomationMetadata, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaData + ) + + field(:list, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomationDeviceItem, + type: :list + ) + + field(:matchedItemKey) + field(:matchedItemRawvalue) + field(:matchedItemValue, type: :list) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomationDevice do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomationDevice.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomationDevice do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_home_automation_device_item.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_home_automation_device_item.ex new file mode 100644 index 0000000000..5dc0ede34d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_home_automation_device_item.ex @@ -0,0 +1,68 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomationDeviceItem do + @moduledoc """ + + + ## Attributes + + * `homeautomationMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaData.t`, *default:* `nil`) - Device meta data. + * `matchedItemKey` (*type:* `String.t`, *default:* `nil`) - Corresponding to casse matched_item CustomTypeItem key. + * `matchedItemRawvalue` (*type:* `String.t`, *default:* `nil`) - Corresponding to casse Argument raw_value. + * `matchedItemValue` (*type:* `list(String.t)`, *default:* `nil`) - Corresponding to casse matched_item CustomTypeItem value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :homeautomationMetadata => + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaData.t() + | nil, + :matchedItemKey => String.t() | nil, + :matchedItemRawvalue => String.t() | nil, + :matchedItemValue => list(String.t()) | nil + } + + field(:homeautomationMetadata, + as: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomation_MetaData + ) + + field(:matchedItemKey) + field(:matchedItemRawvalue) + field(:matchedItemValue, type: :list) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomationDeviceItem do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomationDeviceItem.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoHomeAutomationDeviceItem do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_matter_unique_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_matter_unique_id.ex new file mode 100644 index 0000000000..4e071552f6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_matter_unique_id.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoMatterUniqueId do + @moduledoc """ + Matter unique Id. These values are provided by the device. + + ## Attributes + + * `productId` (*type:* `integer()`, *default:* `nil`) - + * `uniqueId` (*type:* `String.t`, *default:* `nil`) - + * `vendorId` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :productId => integer() | nil, + :uniqueId => String.t() | nil, + :vendorId => integer() | nil + } + + field(:productId) + field(:uniqueId) + field(:vendorId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoMatterUniqueId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoMatterUniqueId.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoMatterUniqueId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_physical_location.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_physical_location.ex new file mode 100644 index 0000000000..979f66d5b9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_physical_location.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoPhysicalLocation do + @moduledoc """ + + + ## Attributes + + * `address` (*type:* `String.t`, *default:* `nil`) - + * `geoLocation` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeLatLng.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :address => String.t() | nil, + :geoLocation => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeLatLng.t() | nil + } + + field(:address) + field(:geoLocation, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeLatLng) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoPhysicalLocation do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoPhysicalLocation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoPhysicalLocation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_role_information.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_role_information.ex new file mode 100644 index 0000000000..c385eb0b87 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_role_information.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoRoleInformation do + @moduledoc """ + Represents the user’s role such as assistant only or manager for a device. Design doc: https://docs.google.com/document/d/1c1hnauEbBfDkywO3GZkI8ejHP765l2tLspmPgckEe2Y/ + + ## Attributes + + * `iamCheckRequired` (*type:* `boolean()`, *default:* `nil`) - When true, role_type will be ignored, Nest IAM RPC will called to check authority. + * `roleType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :iamCheckRequired => boolean() | nil, + :roleType => String.t() | nil + } + + field(:iamCheckRequired) + field(:roleType) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoRoleInformation do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoRoleInformation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoRoleInformation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_smart_device_management_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_smart_device_management_data.ex new file mode 100644 index 0000000000..1cd9f6e1a1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_smart_device_management_data.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSmartDeviceManagementData do + @moduledoc """ + + + ## Attributes + + * `enterpriseId` (*type:* `String.t`, *default:* `nil`) - The enterprise that owns the structure. E.g. Disney, Dream Hotel, etc. This is used for log/analytics purpose. For privacy reasons, we log at enterprise level instead of structure level. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enterpriseId => String.t() | nil + } + + field(:enterpriseId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSmartDeviceManagementData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSmartDeviceManagementData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSmartDeviceManagementData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_smart_home_features.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_smart_home_features.ex new file mode 100644 index 0000000000..4d020686e8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_smart_home_features.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSmartHomeFeatures do + @moduledoc """ + SmartHome feature flags that may be enabled per-item. LINT.IfChange + + ## Attributes + + * `circadianLightingEnabled` (*type:* `boolean()`, *default:* `nil`) - Flag indicating whether the background Circadian Lighting effect is enabled for a particular light (go/circadian-lighting-e2e). + * `energySavingsEnabled` (*type:* `boolean()`, *default:* `nil`) - Flag indicating whether automatic Energy Savings are enabled for this item. + * `gentleWakeupEnabled` (*type:* `boolean()`, *default:* `nil`) - Flag indicating whether Gentle Wake Up is enabled for this item (go/sleep-wake-design). + * `homeAwayOverMatterEnabled` (*type:* `boolean()`, *default:* `nil`) - Flag indicating whether the user has enabled / disabled sending Home/Away status updates to the device through the Google custom IntelligenceEvents Matter cluster. (go/google-clusters-design) + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :circadianLightingEnabled => boolean() | nil, + :energySavingsEnabled => boolean() | nil, + :gentleWakeupEnabled => boolean() | nil, + :homeAwayOverMatterEnabled => boolean() | nil + } + + field(:circadianLightingEnabled) + field(:energySavingsEnabled) + field(:gentleWakeupEnabled) + field(:homeAwayOverMatterEnabled) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSmartHomeFeatures do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSmartHomeFeatures.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSmartHomeFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_supported_structure_features.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_supported_structure_features.ex new file mode 100644 index 0000000000..b91edba9af --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/assistant_verticals_homeautomation_proto_supported_structure_features.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSupportedStructureFeatures do + @moduledoc """ + The features a structure supports. + + ## Attributes + + * `conciergeFeatures` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoConciergeFeatures.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conciergeFeatures => + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoConciergeFeatures.t() + | nil + } + + field(:conciergeFeatures, + as: GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoConciergeFeatures + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSupportedStructureFeatures do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSupportedStructureFeatures.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.AssistantVerticalsHomeautomationProtoSupportedStructureFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties.ex new file mode 100644 index 0000000000..11f0b57fa7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties.ex @@ -0,0 +1,100 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionProperties do + @moduledoc """ + Represents the properties of a mention. Next ID: 13 + + ## Attributes + + * `deviceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t`, *default:* `nil`) - The unique device on which the mention occurred. For example, if the user has two Google Home devices, this indicates which of the two was used. + * `eventId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.EventIdMessage.t`, *default:* `nil`) - ID of the event that resulted in this entity mention. For user and system turn AEs, this is taken from the ConversationSnapshotId of the snapshot containing this mention. For client AEs, this is empty. This can be used to join back this particular mention to the specific "turn" in which this mention took place. + * `factoidScore` (*type:* `number()`, *default:* `nil`) - If this mention corresponds to a WebAnswer, then this defines the score associated with that answer. + * `listEntryInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesListEntryInfo.t`, *default:* `nil`) - If present, this entity was mentioned as part of a larger list. + * `recency` (*type:* `String.t`, *default:* `nil`) - Estimates the recency of the mention. This is internally computed at runtime on a turn-by-turn basis. + * `role` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSemanticRoleId.t`, *default:* `nil`) - The semantic role that the entity was used in. + * `salience` (*type:* `String.t`, *default:* `nil`) - How salient this mention is. This field will only be set if the mention is derived from a SearchAnswerValue. See go/webresultsdata-as-aes for more details. + * `source` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSource.t`, *default:* `nil`) - Contains metadata about the source of the mention. + * `spatialProperties` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSpatialProperties.t`, *default:* `nil`) - If present, properties of visual mentions (e.g., how they are displayed to the user, visibility, etc.). + * `surfaceForm` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSurfaceForm.t`, *default:* `nil`) - Details about how this mention was presented. + * `timestamp` (*type:* `DateTime.t`, *default:* `nil`) - Unix timestamp noting (approximately) when this mention occurred. We do not guarantee that the time will correspond precisely to when the user uttered/heard a response. If mentions within a single turn have *different* timestamps, they should accurately reflect the order in which the mentions occurred. If that order is unknown, they should all have the same timestamp. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceId => + GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t() | nil, + :eventId => GoogleApi.ContentWarehouse.V1.Model.EventIdMessage.t() | nil, + :factoidScore => number() | nil, + :listEntryInfo => + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesListEntryInfo.t() + | nil, + :recency => String.t() | nil, + :role => + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSemanticRoleId.t() | nil, + :salience => String.t() | nil, + :source => + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSource.t() + | nil, + :spatialProperties => + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSpatialProperties.t() | nil, + :surfaceForm => + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSurfaceForm.t() | nil, + :timestamp => DateTime.t() | nil + } + + field(:deviceId, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId) + field(:eventId, as: GoogleApi.ContentWarehouse.V1.Model.EventIdMessage) + field(:factoidScore) + + field(:listEntryInfo, + as: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesListEntryInfo + ) + + field(:recency) + field(:role, as: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSemanticRoleId) + field(:salience) + + field(:source, + as: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSource + ) + + field(:spatialProperties, + as: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSpatialProperties + ) + + field(:surfaceForm, as: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSurfaceForm) + field(:timestamp, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionProperties do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionProperties.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionProperties do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_list_entry_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_list_entry_info.ex new file mode 100644 index 0000000000..3f173ed2ee --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_list_entry_info.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesListEntryInfo do + @moduledoc """ + Contains information about how an entity was presented as part of a list. + + ## Attributes + + * `index` (*type:* `String.t`, *default:* `nil`) - The index of the entity presented to the user. NOTE: Indexing starts from 0. + * `lexicalGroundingsId` (*type:* `String.t`, *default:* `nil`) - A string which uniquely identifies the list item this entity represents in the list. For example, consider the "OrderPizza" intent with the "size" slot: U: I want to order a pizza A: Sure. What size do you want: large, medium, or small? U: Gigantic The lexical_groundings_id can be "large" to identify the large item in the list. This lexical_groundings_id together with the semantic role fields (i.e., role.intent_id & role.role_id) can be used to match the nlp_semantic_parsing::LexicalGroundings::ValueTermType to utilize lexical grounding for i18n of static list selection items. Note that this field only needs to be populated when developers expect to provide lexical groundings for the list item this entity represents. Effectively, this field will be populated when this entity is published by ListPresentationFrame and the ::quality::dialog_manager::IntentStageSignals::FieldCandidate.lexical_groundings_id field is populated. See go/lpf-i18nv2 & go/taskstate-ae-sync for more details. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :index => String.t() | nil, + :lexicalGroundingsId => String.t() | nil + } + + field(:index) + field(:lexicalGroundingsId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesListEntryInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesListEntryInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesListEntryInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_source.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_source.ex new file mode 100644 index 0000000000..945814b040 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_source.ex @@ -0,0 +1,71 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSource do + @moduledoc """ + The agent or system from which the mention was derived. Each mention corresponds to a single source. + + ## Attributes + + * `client` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceClient.t`, *default:* `nil`) - + * `system` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceSystem.t`, *default:* `nil`) - + * `user` (*type:* `GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceUser.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :client => + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceClient.t() + | nil, + :system => + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceSystem.t() + | nil, + :user => + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceUser.t() + | nil + } + + field(:client, + as: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceClient + ) + + field(:system, + as: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceSystem + ) + + field(:user, + as: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceUser + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSource do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_source_client.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_source_client.ex new file mode 100644 index 0000000000..5fa97ff430 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_source_client.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceClient do + @moduledoc """ + The client provided this entity. Currently, this exclusively corresponds to an entity that was circulated by the client. See go/on-device-aes for more details. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceClient do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceClient.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceClient do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_source_system.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_source_system.ex new file mode 100644 index 0000000000..66f271e691 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_source_system.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceSystem do + @moduledoc """ + The Assistant mentioned this entity. This corresponds to entities annotated during fulfillment. More specifically, these entities are typically provided by developers either via a Monastery frame or an InteractionBuilder. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceSystem do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceSystem.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceSystem do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_source_user.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_source_user.ex new file mode 100644 index 0000000000..ae67a525c7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_mention_properties_source_user.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceUser do + @moduledoc """ + The user mentioned this entity. It was extracted from a previous winning intent (IntentQuery or IntentUpdate). Such entities are computed at runtime from the interpretation history without any developer intervention. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceUser do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceUser.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesMentionPropertiesSourceUser do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_semantic_role_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_semantic_role_id.ex new file mode 100644 index 0000000000..6ba8a07abc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_semantic_role_id.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSemanticRoleId do + @moduledoc """ + Uniquely identifies a semantic role. When this role corresponds to a slot in a registered user intent (see go/assistant-intent-catalog), then the SemanticRoleId maps precisely onto that slot in the intent catalog. However, not all semantic roles corresponds to such user intent slots. + + ## Attributes + + * `intentId` (*type:* `String.t`, *default:* `nil`) - Semantic roles will be defined locally, within the context of a single task/feature. The |intent_id| is a unique identifier for such a local cluster. In most cases, this should be exactly the same as the name of the intent used for TaskState (see go/assistant-intent-catalog). In cases where the intent isn't well-defined, this can be an arbitrary, feature-defined identifier. + * `roleId` (*type:* `String.t`, *default:* `nil`) - Identifier for a semantic role, unique within the namespace of |intent_id|. When this role corresponds to a slot in the intent, the |role_id| should be equal to the name of that argument. For example, consider an entry in the intent catalog: core_intent { id { id: "BookARide" } slot { name: "provider" type { string_type { } } } slot { name: "num_riders" type { number_type { } } } } Then, the |role_id| would be "provider" or "num_riders" when referring to one of these slots. NOTE: when responding to the user, the Assistant may actually make use of other roles such as "ETA" or "driver" that are not part of the intent declaration. These should still be assigned consistent semantic roles. For example, a dialog with the Shopping feature: User: Where can I buy XYZ? Google: [Best Buy in Sunnyvale] has [XYZ] in stock. User: Great! Give me directions. In this case, both "Best Buy" and "XYZ" would be pushed to attentional entities. Best Buy, in this case, may not be an argument in the ShoppingItemStockInquiry intent, but should still have a consistent |role_id| such as "possessing_business". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :intentId => String.t() | nil, + :roleId => String.t() | nil + } + + field(:intentId) + field(:roleId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSemanticRoleId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSemanticRoleId.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSemanticRoleId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_spatial_properties.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_spatial_properties.ex new file mode 100644 index 0000000000..34c89b6b83 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_spatial_properties.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSpatialProperties do + @moduledoc """ + Properties of visual mentions (e.g., how they are displayed to the user, visibility, etc.). + + ## Attributes + + * `visibility` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :visibility => String.t() | nil + } + + field(:visibility) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSpatialProperties do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSpatialProperties.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSpatialProperties do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_surface_form.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_surface_form.ex new file mode 100644 index 0000000000..c477215a00 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/attentional_entities_surface_form.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSurfaceForm do + @moduledoc """ + How the entity was presented in this mention at a surface level. For example, "President Barack Obama" or "Barack Obama" or "he" might all be reasonable surface forms for the MID /m/02mjmr. + + ## Attributes + + * `text` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :text => String.t() | nil + } + + field(:text) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSurfaceForm do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSurfaceForm.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.AttentionalEntitiesSurfaceForm do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/biasing_per_doc_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/biasing_per_doc_data.ex new file mode 100644 index 0000000000..72ffe34905 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/biasing_per_doc_data.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocData do + @moduledoc """ + This data is expected to appear in approximately 2 out of every 1,000 documents with an average of 2 fields per document. Rough order of size is in the hundreds of kilobytes per Mustang shard. + + ## Attributes + + * `biasingfield` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocDataBiasingField.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :biasingfield => + list(GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocDataBiasingField.t()) | nil + } + + field(:biasingfield, + as: GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocDataBiasingField, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/biasing_per_doc_data2.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/biasing_per_doc_data2.ex new file mode 100644 index 0000000000..5bf3fe153a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/biasing_per_doc_data2.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocData2 do + @moduledoc """ + A replacement for BiasingPerDocData that is more efficient wrt size in the index. + + ## Attributes + + * `biasingField` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocData2BiasingField.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :biasingField => + list(GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocData2BiasingField.t()) | nil + } + + field(:biasingField, + as: GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocData2BiasingField, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocData2 do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocData2.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocData2 do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/biasing_per_doc_data2_biasing_field.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/biasing_per_doc_data2_biasing_field.ex new file mode 100644 index 0000000000..d460a516ae --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/biasing_per_doc_data2_biasing_field.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocData2BiasingField do + @moduledoc """ + + + ## Attributes + + * `compressedName` (*type:* `integer()`, *default:* `nil`) - A fingerprint of the actual name of the field. + * `value` (*type:* `float()`, *default:* `nil`) - The value, under various representations to get maximum compression. Exactly one of them is guaranteed to be filled. value as a double. + * `valueFloat` (*type:* `integer()`, *default:* `nil`) - a floating value, represented as an integer by converting using floating_value * 1000. Useable for all floating values that need 3 digits of precision, and are small enough. + * `valueInt` (*type:* `integer()`, *default:* `nil`) - value as an int32. When the value is encode-able as an integer. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :compressedName => integer() | nil, + :value => float() | nil, + :valueFloat => integer() | nil, + :valueInt => integer() | nil + } + + field(:compressedName) + field(:value) + field(:valueFloat) + field(:valueInt) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocData2BiasingField do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocData2BiasingField.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocData2BiasingField do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/biasing_per_doc_data_biasing_field.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/biasing_per_doc_data_biasing_field.ex new file mode 100644 index 0000000000..df0adaf316 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/biasing_per_doc_data_biasing_field.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocDataBiasingField do + @moduledoc """ + Metadata fields on which we can bias (sort) search results independently from the normal ranking using a ScoreAdjuster + + ## Attributes + + * `Name` (*type:* `String.t`, *default:* `nil`) - Fingerprint of the attribute name (no need to keep long field names) + * `Value` (*type:* `float()`, *default:* `nil`) - Biasing value translated into a double for uniform comparison + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Name => String.t() | nil, + :Value => float() | nil + } + + field(:Name) + field(:Value) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocDataBiasingField do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocDataBiasingField.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.BiasingPerDocDataBiasingField do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blobstore_blob_ref.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blobstore_blob_ref.ex new file mode 100644 index 0000000000..f9b081016c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blobstore_blob_ref.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.BlobstoreBlobRef do + @moduledoc """ + A BlobRef is used to refer to a blob in BlobStore. Clients may only manipulate blobs through BlobRefs. BlobRefs should not be sent in the clear outside of Google (for example, encoded in URLs, stored in a client cookie, or referred to in Javascript); for efficiency, the IDs expose internal details of the blobstore (such as machine IPs or cluster names). If clients need to store BlobRefs outside of Google, they must encrypt the BlobRef securely or use an alternative insecure identifier with an id->BlobRef mapping inside our network. + + ## Attributes + + * `BlobID` (*type:* `String.t`, *default:* `nil`) - + * `Options` (*type:* `String.t`, *default:* `nil`) - + * `RefID` (*type:* `String.t`, *default:* `nil`) - + * `ShardBin` (*type:* `integer()`, *default:* `nil`) - + * `Size` (*type:* `String.t`, *default:* `nil`) - Size of the complete blob, in bytes. + * `SourceV2BlobID` (*type:* `String.t`, *default:* `nil`) - The ID of the V2 blob this blob has + * `V2ReadBlobToken` (*type:* `String.t`, *default:* `nil`) - Deprecated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :BlobID => String.t() | nil, + :Options => String.t() | nil, + :RefID => String.t() | nil, + :ShardBin => integer() | nil, + :Size => String.t() | nil, + :SourceV2BlobID => String.t() | nil, + :V2ReadBlobToken => String.t() | nil + } + + field(:BlobID) + field(:Options) + field(:RefID) + field(:ShardBin) + field(:Size) + field(:SourceV2BlobID) + field(:V2ReadBlobToken) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.BlobstoreBlobRef do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.BlobstoreBlobRef.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.BlobstoreBlobRef do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blog_per_doc_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blog_per_doc_data.ex new file mode 100644 index 0000000000..68410ca812 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blog_per_doc_data.ex @@ -0,0 +1,86 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.BlogPerDocData do + @moduledoc """ + Additional data for Blog/Posts + + ## Attributes + + * `blogurlFp` (*type:* `String.t`, *default:* `nil`) - used for blogurl crowding. + * `clientSpamminess` (*type:* `integer()`, *default:* `nil`) - This score captures how spammy the client is that the micropost was created with. The higher the score the worse. + * `convTree` (*type:* `GoogleApi.ContentWarehouse.V1.Model.BlogsearchConversationTree.t`, *default:* `nil`) - For the threaded conversation view. Only populated in docs with provider type SYNTHETIC_CONVERSATION_DOC. + * `copycatScore` (*type:* `integer()`, *default:* `nil`) - + * `docQualityScore` (*type:* `integer()`, *default:* `nil`) - + * `isSyntacticReshare` (*type:* `boolean()`, *default:* `nil`) - A syntactic reshare is a document that is * created from an original and shared with friends and * we detect this resharing property by syntactically parsing the doc. . For example, a retweet is an example of a syntactic_reshare because we can detect that it's a reshare by grepping for "RT @". + * `microblogQualityExptData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - Experimental data for quality experiments. This will NOT be populated in prod, but we will use this for experiments. + * `numMentions` (*type:* `integer()`, *default:* `nil`) - For replies/reshares. num_mentions = number of times the pattern @foo appears in the document. + * `outlinks` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.BlogPerDocDataOutlinks.t)`, *default:* `nil`) - + * `postContentFingerprint` (*type:* `integer()`, *default:* `nil`) - The fingerprint for the body text of the microblog post. It is copied from MicroBlogPost.post_content_fingerprint. + * `qualityScore` (*type:* `integer()`, *default:* `nil`) - + * `spamScore` (*type:* `integer()`, *default:* `nil`) - Blog scoring signals. + * `universalWhitelisted` (*type:* `boolean()`, *default:* `nil`) - + * `userQualityScore` (*type:* `integer()`, *default:* `nil`) - User and doc quality scores for updates (aka microposts). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :blogurlFp => String.t() | nil, + :clientSpamminess => integer() | nil, + :convTree => GoogleApi.ContentWarehouse.V1.Model.BlogsearchConversationTree.t() | nil, + :copycatScore => integer() | nil, + :docQualityScore => integer() | nil, + :isSyntacticReshare => boolean() | nil, + :microblogQualityExptData => + GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :numMentions => integer() | nil, + :outlinks => list(GoogleApi.ContentWarehouse.V1.Model.BlogPerDocDataOutlinks.t()) | nil, + :postContentFingerprint => integer() | nil, + :qualityScore => integer() | nil, + :spamScore => integer() | nil, + :universalWhitelisted => boolean() | nil, + :userQualityScore => integer() | nil + } + + field(:blogurlFp) + field(:clientSpamminess) + field(:convTree, as: GoogleApi.ContentWarehouse.V1.Model.BlogsearchConversationTree) + field(:copycatScore) + field(:docQualityScore) + field(:isSyntacticReshare) + field(:microblogQualityExptData, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + field(:numMentions) + field(:outlinks, as: GoogleApi.ContentWarehouse.V1.Model.BlogPerDocDataOutlinks, type: :list) + field(:postContentFingerprint) + field(:qualityScore) + field(:spamScore) + field(:universalWhitelisted) + field(:userQualityScore) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.BlogPerDocData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.BlogPerDocData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.BlogPerDocData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blog_per_doc_data_outlinks.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blog_per_doc_data_outlinks.ex new file mode 100644 index 0000000000..85b8b90bab --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blog_per_doc_data_outlinks.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.BlogPerDocDataOutlinks do + @moduledoc """ + Resolved url and site spamscore for outlinks in updates (aka microposts). + + ## Attributes + + * `aggregationFp` (*type:* `String.t`, *default:* `nil`) - Representative id for an equivalence class of URLs. E.g. http://youtube.com/watch?v=12 and http://youtube.com/watch?v=12&feature=related have the same aggregation id since they're effectively the same webpage + * `resolvedUrl` (*type:* `String.t`, *default:* `nil`) - + * `siteSpamScore` (*type:* `integer()`, *default:* `nil`) - + * `title` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :aggregationFp => String.t() | nil, + :resolvedUrl => String.t() | nil, + :siteSpamScore => integer() | nil, + :title => String.t() | nil + } + + field(:aggregationFp) + field(:resolvedUrl) + field(:siteSpamScore) + field(:title) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.BlogPerDocDataOutlinks do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.BlogPerDocDataOutlinks.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.BlogPerDocDataOutlinks do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blogsearch_conversation_node.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blogsearch_conversation_node.ex new file mode 100644 index 0000000000..3a35830693 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blogsearch_conversation_node.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.BlogsearchConversationNode do + @moduledoc """ + + + ## Attributes + + * `authorName` (*type:* `String.t`, *default:* `nil`) - The username of the author of the microblog post represented by this node. + * `children` (*type:* `list(String.t)`, *default:* `nil`) - A list of docids of child nodes. + * `date` (*type:* `String.t`, *default:* `nil`) - The creation date of the doc. + * `docid` (*type:* `String.t`, *default:* `nil`) - Docid of the microblog post represented by this node. + * `parent` (*type:* `String.t`, *default:* `nil`) - The docid of the parent node. The root of the tree will leave this empty. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :authorName => String.t() | nil, + :children => list(String.t()) | nil, + :date => String.t() | nil, + :docid => String.t() | nil, + :parent => String.t() | nil + } + + field(:authorName) + field(:children, type: :list) + field(:date) + field(:docid) + field(:parent) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.BlogsearchConversationNode do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.BlogsearchConversationNode.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.BlogsearchConversationNode do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blogsearch_conversation_tree.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blogsearch_conversation_tree.ex new file mode 100644 index 0000000000..4422bf99fa --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blogsearch_conversation_tree.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.BlogsearchConversationTree do + @moduledoc """ + + + ## Attributes + + * `convId` (*type:* `String.t`, *default:* `nil`) - The id of this conversation. + * `nodes` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.BlogsearchConversationNode.t)`, *default:* `nil`) - The nodes in this conversation. No particular order is assumed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :convId => String.t() | nil, + :nodes => list(GoogleApi.ContentWarehouse.V1.Model.BlogsearchConversationNode.t()) | nil + } + + field(:convId) + field(:nodes, as: GoogleApi.ContentWarehouse.V1.Model.BlogsearchConversationNode, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.BlogsearchConversationTree do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.BlogsearchConversationTree.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.BlogsearchConversationTree do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blue_ginger_client_visible_proto_blue_ginger_supported_services.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blue_ginger_client_visible_proto_blue_ginger_supported_services.ex new file mode 100644 index 0000000000..c9733097f4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blue_ginger_client_visible_proto_blue_ginger_supported_services.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.BlueGingerClientVisibleProtoBlueGingerSupportedServices do + @moduledoc """ + Information to indicate BG availability for businesses. This message is filled from Topic Server and stored in the GSR in Superroot. + + ## Attributes + + * `modules` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.BlueGingerClientVisibleProtoBlueGingerSupportedServicesBlueGingerModule.t)`, *default:* `nil`) - List of supported modules for a business. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :modules => + list( + GoogleApi.ContentWarehouse.V1.Model.BlueGingerClientVisibleProtoBlueGingerSupportedServicesBlueGingerModule.t() + ) + | nil + } + + field(:modules, + as: + GoogleApi.ContentWarehouse.V1.Model.BlueGingerClientVisibleProtoBlueGingerSupportedServicesBlueGingerModule, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.BlueGingerClientVisibleProtoBlueGingerSupportedServices do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.BlueGingerClientVisibleProtoBlueGingerSupportedServices.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.BlueGingerClientVisibleProtoBlueGingerSupportedServices do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blue_ginger_client_visible_proto_blue_ginger_supported_services_blue_ginger_module.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blue_ginger_client_visible_proto_blue_ginger_supported_services_blue_ginger_module.ex new file mode 100644 index 0000000000..b6a5eb9551 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/blue_ginger_client_visible_proto_blue_ginger_supported_services_blue_ginger_module.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.BlueGingerClientVisibleProtoBlueGingerSupportedServicesBlueGingerModule do + @moduledoc """ + + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - Module name, e.g. hairdresser_reservation. from quality/views/extraction/kcube/bg/modules/modules.bzl. + * `services` (*type:* `list(String.t)`, *default:* `nil`) - Services of this module that are supported by the business, e.g. haircuts. + * `useCase` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :services => list(String.t()) | nil, + :useCase => String.t() | nil + } + + field(:name) + field(:services, type: :list) + field(:useCase) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.BlueGingerClientVisibleProtoBlueGingerSupportedServicesBlueGingerModule do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.BlueGingerClientVisibleProtoBlueGingerSupportedServicesBlueGingerModule.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.BlueGingerClientVisibleProtoBlueGingerSupportedServicesBlueGingerModule do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/book_citation_per_doc_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/book_citation_per_doc_data.ex new file mode 100644 index 0000000000..2edaa0a4f8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/book_citation_per_doc_data.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.BookCitationPerDocData do + @moduledoc """ + Per-doc data for the web page about the cited book Approximate size is on average ~10bytes + + ## Attributes + + * `bookId` (*type:* `String.t`, *default:* `nil`) - the book id for the main citation + * `discretizedCitationScore` (*type:* `integer()`, *default:* `nil`) - the discretized citation score for the main book. we map the raw score 1.0-20.0 to 0 - 127 + * `previewable` (*type:* `boolean()`, *default:* `nil`) - Is there a preview or excerpt of the book on this document? + * `secondBookId` (*type:* `String.t`, *default:* `nil`) - book id for the second citation if we can't separate the two top citations (they are too close). + * `secondDiscretizedCitationScore` (*type:* `integer()`, *default:* `nil`) - the discretized score for the second citation + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bookId => String.t() | nil, + :discretizedCitationScore => integer() | nil, + :previewable => boolean() | nil, + :secondBookId => String.t() | nil, + :secondDiscretizedCitationScore => integer() | nil + } + + field(:bookId) + field(:discretizedCitationScore) + field(:previewable) + field(:secondBookId) + field(:secondDiscretizedCitationScore) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.BookCitationPerDocData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.BookCitationPerDocData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.BookCitationPerDocData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/business_hours.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/business_hours.ex new file mode 100644 index 0000000000..4ff0ff0d8b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/business_hours.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.BusinessHours do + @moduledoc """ + We divide up a week into individual open intervals. If any are present then they must be arranged in strictly increasing order, with non-empty spaces between successive intervals, and all times between 0 and 604800, the number of seconds in a week. + + ## Attributes + + * `dayopen` (*type:* `integer()`, *default:* `nil`) - + * `interval` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.BusinessHoursInterval.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dayopen => integer() | nil, + :interval => list(GoogleApi.ContentWarehouse.V1.Model.BusinessHoursInterval.t()) | nil + } + + field(:dayopen) + field(:interval, as: GoogleApi.ContentWarehouse.V1.Model.BusinessHoursInterval, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.BusinessHours do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.BusinessHours.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.BusinessHours do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/business_hours_interval.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/business_hours_interval.ex new file mode 100644 index 0000000000..6483b99dc2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/business_hours_interval.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.BusinessHoursInterval do + @moduledoc """ + + + ## Attributes + + * `end` (*type:* `integer()`, *default:* `nil`) - The interval ends at the start of this second + * `start` (*type:* `integer()`, *default:* `nil`) - Time in seconds since Midnight-Monday-Morn + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :end => integer() | nil, + :start => integer() | nil + } + + field(:end) + field(:start) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.BusinessHoursInterval do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.BusinessHoursInterval.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.BusinessHoursInterval do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/chat_bot_platform_bot_send_token.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/chat_bot_platform_bot_send_token.ex new file mode 100644 index 0000000000..36c7b60dea --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/chat_bot_platform_bot_send_token.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ChatBotPlatformBotSendToken do + @moduledoc """ + Token to be exposed and stored by the bot + + ## Attributes + + * `expiryTimeMicros` (*type:* `String.t`, *default:* `nil`) - Time since epoch (micros) that this will expire + * `sendToken` (*type:* `String.t`, *default:* `nil`) - Encrypted InternalSendToken + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :expiryTimeMicros => String.t() | nil, + :sendToken => String.t() | nil + } + + field(:expiryTimeMicros) + field(:sendToken) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.ChatBotPlatformBotSendToken do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ChatBotPlatformBotSendToken.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.ChatBotPlatformBotSendToken do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/chat_bot_platform_fireball_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/chat_bot_platform_fireball_id.ex new file mode 100644 index 0000000000..de8680e9b6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/chat_bot_platform_fireball_id.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ChatBotPlatformFireballId do + @moduledoc """ + + + ## Attributes + + * `id` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalCommunicationsInstantmessagingV1Id.t`, *default:* `nil`) - When used as a user ID, it's the phone number of the sender. When used as a session ID: For group conversation, it is the group ID. For 1 to 1, it is the receiver or sender phone number. For 1 to bot, it is the receiver phone number or empty. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalCommunicationsInstantmessagingV1Id.t() + | nil + } + + field(:id, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalCommunicationsInstantmessagingV1Id + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.ChatBotPlatformFireballId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ChatBotPlatformFireballId.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.ChatBotPlatformFireballId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_classifier_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_classifier_data.ex new file mode 100644 index 0000000000..aea55ca88b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_classifier_data.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ClassifierPornClassifierData do + @moduledoc """ + Next ID: 6 + + ## Attributes + + * `classification` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.ClassifierPornClassifierDataClassification.t)`, *default:* `nil`) - + * `imageBasedDetectionDone` (*type:* `boolean()`, *default:* `nil`) - Records whether the image linker is run already. This is only used for Alexandria but NOT for Segindexer. + * `timestamp` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :classification => + list( + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornClassifierDataClassification.t() + ) + | nil, + :imageBasedDetectionDone => boolean() | nil, + :timestamp => String.t() | nil + } + + field(:classification, + as: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornClassifierDataClassification, + type: :list + ) + + field(:imageBasedDetectionDone) + field(:timestamp) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornClassifierData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornClassifierData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornClassifierData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_classifier_data_classification.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_classifier_data_classification.ex new file mode 100644 index 0000000000..3ac2f8413a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_classifier_data_classification.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ClassifierPornClassifierDataClassification do + @moduledoc """ + + + ## Attributes + + * `label` (*type:* `String.t`, *default:* `nil`) - + * `score` (*type:* `number()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :label => String.t() | nil, + :score => number() | nil + } + + field(:label) + field(:score) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornClassifierDataClassification do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornClassifierDataClassification.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornClassifierDataClassification do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_document_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_document_data.ex new file mode 100644 index 0000000000..7da75aae11 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_document_data.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ClassifierPornDocumentData do + @moduledoc """ + Next ID: 3 + + ## Attributes + + * `classifierdata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ClassifierPornClassifierData.t`, *default:* `nil`) - + * `sitedata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteData.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :classifierdata => + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornClassifierData.t() | nil, + :sitedata => GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteData.t() | nil + } + + field(:classifierdata, as: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornClassifierData) + field(:sitedata, as: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteData) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornDocumentData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornDocumentData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornDocumentData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_query_classifier_output.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_query_classifier_output.ex new file mode 100644 index 0000000000..38df132233 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_query_classifier_output.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput do + @moduledoc """ + Generic output for one vertical. + + ## Attributes + + * `csaiClassification` (*type:* `String.t`, *default:* `nil`) - This field is only filled for the CSAI vertical. + * `debug` (*type:* `String.t`, *default:* `nil`) - Human-readable debug information about the classification. This field is only set if output_debug is set in the classification input. + * `isPositive` (*type:* `boolean()`, *default:* `nil`) - The bit that shows if this classifier outputs positive classification for the input query. Set by thresholding with a recommended threshold. + * `score` (*type:* `number()`, *default:* `nil`) - The score that the classifier assigned to the input query. This is filled by all verticals. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :csaiClassification => String.t() | nil, + :debug => String.t() | nil, + :isPositive => boolean() | nil, + :score => number() | nil + } + + field(:csaiClassification) + field(:debug) + field(:isPositive) + field(:score) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_query_multi_label_classifier_output.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_query_multi_label_classifier_output.ex new file mode 100644 index 0000000000..fad330785a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_query_multi_label_classifier_output.ex @@ -0,0 +1,84 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryMultiLabelClassifierOutput do + @moduledoc """ + Multi-label classification output. It contains the output for each vertical. The output for some verticals can be empty, in case that vertical is not supported by the classifier or if the set of verticals was restricted using MultiLabelClassifierInput.verticals. + + ## Attributes + + * `csai` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t`, *default:* `nil`) - + * `fringe` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t`, *default:* `nil`) - + * `medical` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t`, *default:* `nil`) - + * `minor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t`, *default:* `nil`) - + * `offensive` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t`, *default:* `nil`) - + * `porn` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t`, *default:* `nil`) - + * `spoof` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t`, *default:* `nil`) - + * `violence` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t`, *default:* `nil`) - + * `vulgar` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :csai => + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t() | nil, + :fringe => + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t() | nil, + :medical => + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t() | nil, + :minor => + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t() | nil, + :offensive => + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t() | nil, + :porn => + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t() | nil, + :spoof => + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t() | nil, + :violence => + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t() | nil, + :vulgar => + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput.t() | nil + } + + field(:csai, as: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput) + field(:fringe, as: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput) + field(:medical, as: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput) + field(:minor, as: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput) + field(:offensive, as: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput) + field(:porn, as: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput) + field(:spoof, as: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput) + field(:violence, as: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput) + field(:vulgar, as: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryClassifierOutput) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryMultiLabelClassifierOutput do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryMultiLabelClassifierOutput.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryMultiLabelClassifierOutput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_query_stats.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_query_stats.ex new file mode 100644 index 0000000000..9f966c6222 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_query_stats.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryStats do + @moduledoc """ + QuerySats contains the information about the queries that users typed to search for this image. + + ## Attributes + + * `queryTextPornScore` (*type:* `number()`, *default:* `nil`) - A query text porn score for the queries which have clicks to the image: query_text_porn_score := sum(clicks(query) * text_porn_score(query)) / sum(clicks(query)) + * `totalClicks` (*type:* `number()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :queryTextPornScore => number() | nil, + :totalClicks => number() | nil + } + + field(:queryTextPornScore) + field(:totalClicks) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryStats do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornQueryStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_referrer_counts.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_referrer_counts.ex new file mode 100644 index 0000000000..5df9502d36 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_referrer_counts.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ClassifierPornReferrerCounts do + @moduledoc """ + ReferrerCounts stores how many referrers an images has and how many of them were classified as porn and as adult/softporn respectively. Note that a referrer is usually a landing page, but as of March 2011 this also includes referrers which an image can 'inherit' by propagating counts from near duplicate images. + + ## Attributes + + * `adult` (*type:* `integer()`, *default:* `nil`) - + * `porn` (*type:* `integer()`, *default:* `nil`) - Number of referrers which are classified as porn and as adult. + * `total` (*type:* `integer()`, *default:* `nil`) - Total number of referrers. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adult => integer() | nil, + :porn => integer() | nil, + :total => integer() | nil + } + + field(:adult) + field(:porn) + field(:total) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornReferrerCounts do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornReferrerCounts.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornReferrerCounts do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_site_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_site_data.ex new file mode 100644 index 0000000000..633a9e746a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_site_data.ex @@ -0,0 +1,81 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteData do + @moduledoc """ + Next ID: 53 + + ## Attributes + + * `avgPedoPageScore` (*type:* `number()`, *default:* `nil`) - The average pedo page score for the site. + * `finalPedoSiteScore` (*type:* `number()`, *default:* `nil`) - + * `numberOfPages` (*type:* `String.t`, *default:* `nil`) - The number of pages that were used to compute the scores and ratios. + * `numberOfPedoPages` (*type:* `String.t`, *default:* `nil`) - The number of pages with pedo restrict. + * `site` (*type:* `String.t`, *default:* `nil`) - Sitechunk used to compute the signals. The field is present only for data created after December 2022. + * `sitePornRatio` (*type:* `number()`, *default:* `nil`) - The ratio of porn/softporn of the site this page belongs to. + * `siteSoftpornRatio` (*type:* `number()`, *default:* `nil`) - + * `versionedscore` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteDataVersionedScore.t)`, *default:* `nil`) - + * `violenceScore` (*type:* `number()`, *default:* `nil`) - The cubic mean aggregation of violence page scores in the site. + * `violenceStats` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteViolenceStats.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :avgPedoPageScore => number() | nil, + :finalPedoSiteScore => number() | nil, + :numberOfPages => String.t() | nil, + :numberOfPedoPages => String.t() | nil, + :site => String.t() | nil, + :sitePornRatio => number() | nil, + :siteSoftpornRatio => number() | nil, + :versionedscore => + list(GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteDataVersionedScore.t()) + | nil, + :violenceScore => number() | nil, + :violenceStats => + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteViolenceStats.t() | nil + } + + field(:avgPedoPageScore) + field(:finalPedoSiteScore) + field(:numberOfPages) + field(:numberOfPedoPages) + field(:site) + field(:sitePornRatio) + field(:siteSoftpornRatio) + + field(:versionedscore, + as: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteDataVersionedScore, + type: :list + ) + + field(:violenceScore) + field(:violenceStats, as: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteViolenceStats) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_site_data_versioned_score.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_site_data_versioned_score.ex new file mode 100644 index 0000000000..6f447321e0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_site_data_versioned_score.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteDataVersionedScore do + @moduledoc """ + The site porn score of the site to which the page of interest belongs to. Multiple versions are kept across large changes for some time. The Version-4 score is the average Universal Page Probability of all the site's pages, and will come with populated verticals4_score and site_rule (if any rule fires) fields. When using this score it is recommended to subscribe to the following mailing list: g/safesearch-announce. + + ## Attributes + + * `score` (*type:* `number()`, *default:* `nil`) - + * `siteRule` (*type:* `list(String.t)`, *default:* `nil`) - + * `version` (*type:* `integer()`, *default:* `nil`) - + * `verticals4Score` (*type:* `number()`, *default:* `nil`) - Please talk to safesearch@ before relying on any of these internal fields: + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :score => number() | nil, + :siteRule => list(String.t()) | nil, + :version => integer() | nil, + :verticals4Score => number() | nil + } + + field(:score) + field(:siteRule, type: :list) + field(:version) + field(:verticals4Score) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteDataVersionedScore do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteDataVersionedScore.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteDataVersionedScore do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_site_violence_stats.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_site_violence_stats.ex new file mode 100644 index 0000000000..e55d090282 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/classifier_porn_site_violence_stats.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteViolenceStats do + @moduledoc """ + Next ID: 6 + + ## Attributes + + * `meanFinalViolenceScore` (*type:* `number()`, *default:* `nil`) - + * `numberOfImages` (*type:* `String.t`, *default:* `nil`) - + * `numberOfVideos` (*type:* `String.t`, *default:* `nil`) - + * `videoViolenceScore` (*type:* `number()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :meanFinalViolenceScore => number() | nil, + :numberOfImages => String.t() | nil, + :numberOfVideos => String.t() | nil, + :videoViolenceScore => number() | nil + } + + field(:meanFinalViolenceScore) + field(:numberOfImages) + field(:numberOfVideos) + field(:videoViolenceScore) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteViolenceStats do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteViolenceStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornSiteViolenceStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_cloud_sql_instance_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_cloud_sql_instance_config.ex new file mode 100644 index 0000000000..5f4ac01188 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_cloud_sql_instance_config.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceCloudSqlInstanceConfig do + @moduledoc """ + The identity to configure a CloudSQL instance provisioned via SLM Terraform. + + ## Attributes + + * `cloudSqlInstanceConnectionName` (*type:* `String.t`, *default:* `nil`) - Output only. The CloudSQL instance connection name. + * `cloudSqlInstanceName` (*type:* `String.t`, *default:* `nil`) - Input/Output [Optional]. The CloudSQL instance name within SLM instance. If not set, a random UUIC will be generated as instance name. + * `kmsKeyReference` (*type:* `String.t`, *default:* `nil`) - Input [Optional]. The KMS key name or the KMS grant name used for CMEK encryption. Only set this field when provisioning new CloudSQL instances. For existing CloudSQL instances, this field will be ignored because CMEK re-encryption is not supported. + * `mdbRolesForCorpAccess` (*type:* `list(String.t)`, *default:* `nil`) - Input [Optional]. MDB roles for corp access to CloudSQL instance. + * `slmInstanceName` (*type:* `String.t`, *default:* `nil`) - Output only. The SLM instance's full resource name. + * `slmInstanceTemplate` (*type:* `String.t`, *default:* `nil`) - Input [Required]. The SLM instance template to provision CloudSQL. + * `slmInstanceType` (*type:* `String.t`, *default:* `nil`) - Input [Required]. The SLM instance type to provision CloudSQL. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudSqlInstanceConnectionName => String.t() | nil, + :cloudSqlInstanceName => String.t() | nil, + :kmsKeyReference => String.t() | nil, + :mdbRolesForCorpAccess => list(String.t()) | nil, + :slmInstanceName => String.t() | nil, + :slmInstanceTemplate => String.t() | nil, + :slmInstanceType => String.t() | nil + } + + field(:cloudSqlInstanceConnectionName) + field(:cloudSqlInstanceName) + field(:kmsKeyReference) + field(:mdbRolesForCorpAccess, type: :list) + field(:slmInstanceName) + field(:slmInstanceTemplate) + field(:slmInstanceType) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceCloudSqlInstanceConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceCloudSqlInstanceConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceCloudSqlInstanceConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_gcs_bucket_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_gcs_bucket_config.ex new file mode 100644 index 0000000000..f76778fe35 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_gcs_bucket_config.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceGcsBucketConfig do + @moduledoc """ + The identity to configure a GCS bucket. + + ## Attributes + + * `admins` (*type:* `list(String.t)`, *default:* `nil`) - + * `bucketName` (*type:* `String.t`, *default:* `nil`) - Input/Output [Optional]. The name of a GCS bucket with max length of 63 chars. If not set, a random UUID will be generated as bucket name. + * `entityName` (*type:* `String.t`, *default:* `nil`) - Input/Output [Optional]. Only needed for per-entity tenant GCP resources. During Deprovision API, the on-demand deletion will only cover the tenant GCP resources with the specified entity name. + * `kmsKeyReference` (*type:* `String.t`, *default:* `nil`) - Input/Output [Optional]. The KMS key name or the KMS grant name used for CMEK encryption. Only set this field when provisioning new GCS bucket. For existing GCS bucket, this field will be ignored because CMEK re-encryption is not supported. + * `ttlDays` (*type:* `integer()`, *default:* `nil`) - Input/Output [Optional]. Only needed when the content in bucket need to be garbage collected within some amount of days. + * `viewers` (*type:* `list(String.t)`, *default:* `nil`) - Input/Output [Required]. IAM roles (viewer/admin) put on the bucket. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :admins => list(String.t()) | nil, + :bucketName => String.t() | nil, + :entityName => String.t() | nil, + :kmsKeyReference => String.t() | nil, + :ttlDays => integer() | nil, + :viewers => list(String.t()) | nil + } + + field(:admins, type: :list) + field(:bucketName) + field(:entityName) + field(:kmsKeyReference) + field(:ttlDays) + field(:viewers, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceGcsBucketConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceGcsBucketConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceGcsBucketConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_iam_policy_binding.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_iam_policy_binding.ex new file mode 100644 index 0000000000..586355c15e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_iam_policy_binding.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceIamPolicyBinding do + @moduledoc """ + The dynamic IAM bindings to be granted after tenant projects are created. + + ## Attributes + + * `members` (*type:* `list(String.t)`, *default:* `nil`) - Input/Output [Required]. The member service accounts with the roles above. Note: placeholders are same as the resource above. + * `resource` (*type:* `String.t`, *default:* `nil`) - Input/Output [Required]. The resource name that will be accessed by members, which also depends on resource_type. Note: placeholders are supported in resource names. For example, ${tpn} will be used when the tenant project number is not ready. + * `resourceType` (*type:* `String.t`, *default:* `nil`) - Input/Output [Required]. Specifies the type of resource that will be accessed by members. + * `role` (*type:* `String.t`, *default:* `nil`) - Input/Output [Required]. The role for members below. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :members => list(String.t()) | nil, + :resource => String.t() | nil, + :resourceType => String.t() | nil, + :role => String.t() | nil + } + + field(:members, type: :list) + field(:resource) + field(:resourceType) + field(:role) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceIamPolicyBinding do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceIamPolicyBinding.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceIamPolicyBinding do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_infra_spanner_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_infra_spanner_config.ex new file mode 100644 index 0000000000..9ff2d6623d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_infra_spanner_config.ex @@ -0,0 +1,75 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceInfraSpannerConfig do + @moduledoc """ + The configuration for a spanner database provisioning. Next ID: 8 + + ## Attributes + + * `createDatabaseOptions` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceInfraSpannerConfigCreateDatabaseOptions.t`, *default:* `nil`) - Input [Optional]. The options to create a spanner database. Note: give the right options to ensure the right KMS key access audit logging and AxT logging in expected logging category. + * `kmsKeyReference` (*type:* `String.t`, *default:* `nil`) - Input [Optional]. The KMS key name or the KMS grant name used for CMEK encryption. Only set this field when provisioning new Infra Spanner databases. For existing Infra Spanner databases, this field will be ignored because CMEK re-encryption is not supported. For example, projects//locations//keyRings//cryptoKeys/ + * `sdlBundlePath` (*type:* `String.t`, *default:* `nil`) - Input [Required]. The file path to the spanner SDL bundle. + * `spannerBorgServiceAccount` (*type:* `String.t`, *default:* `nil`) - Input [Optional]. The spanner borg service account for delegating the kms key to. For example, spanner-infra-cmek-nonprod@system.gserviceaccount.com, for the nonprod universe. + * `spannerLocalNamePrefix` (*type:* `String.t`, *default:* `nil`) - + * `spannerNamespace` (*type:* `String.t`, *default:* `nil`) - + * `spannerUniverse` (*type:* `String.t`, *default:* `nil`) - Input [Required]. Every database in Spanner can be identified by the following path name: /span//: + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createDatabaseOptions => + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceInfraSpannerConfigCreateDatabaseOptions.t() + | nil, + :kmsKeyReference => String.t() | nil, + :sdlBundlePath => String.t() | nil, + :spannerBorgServiceAccount => String.t() | nil, + :spannerLocalNamePrefix => String.t() | nil, + :spannerNamespace => String.t() | nil, + :spannerUniverse => String.t() | nil + } + + field(:createDatabaseOptions, + as: + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceInfraSpannerConfigCreateDatabaseOptions + ) + + field(:kmsKeyReference) + field(:sdlBundlePath) + field(:spannerBorgServiceAccount) + field(:spannerLocalNamePrefix) + field(:spannerNamespace) + field(:spannerUniverse) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceInfraSpannerConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceInfraSpannerConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceInfraSpannerConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_infra_spanner_config_create_database_options.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_infra_spanner_config_create_database_options.ex new file mode 100644 index 0000000000..06a3a18b7d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_infra_spanner_config_create_database_options.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceInfraSpannerConfigCreateDatabaseOptions do + @moduledoc """ + The options to create a spanner database. KMS key access audit logging and AxT logging will be associated with the given resource name, resource type and service name. Please ensure to give right options to enable correct audit logging and AxT logging. + + ## Attributes + + * `cmekCloudResourceName` (*type:* `String.t`, *default:* `nil`) - The cloud resource name for the CMEK encryption. For example, projects//locations/ + * `cmekCloudResourceType` (*type:* `String.t`, *default:* `nil`) - The cloud resource type for the CMEK encryption. For example, contentwarehouse.googleapis.com/Location + * `cmekServiceName` (*type:* `String.t`, *default:* `nil`) - The service name for the CMEK encryption. For example, contentwarehouse.googleapis.com + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cmekCloudResourceName => String.t() | nil, + :cmekCloudResourceType => String.t() | nil, + :cmekServiceName => String.t() | nil + } + + field(:cmekCloudResourceName) + field(:cmekCloudResourceType) + field(:cmekServiceName) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceInfraSpannerConfigCreateDatabaseOptions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceInfraSpannerConfigCreateDatabaseOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceInfraSpannerConfigCreateDatabaseOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_service_account_identity.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_service_account_identity.ex new file mode 100644 index 0000000000..fe6e0035cd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_service_account_identity.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceServiceAccountIdentity do + @moduledoc """ + The identity to configure a service account. + + ## Attributes + + * `serviceAccountEmail` (*type:* `String.t`, *default:* `nil`) - Output only. The service account email that has been created. + * `tag` (*type:* `String.t`, *default:* `nil`) - Input/Output [Optional]. The tag that configures the service account, as defined in google3/configs/production/cdpush/acl-zanzibar-cloud-prod/activation_grants/activation_grants.gcl. Note: The default P4 service account has the empty tag. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :serviceAccountEmail => String.t() | nil, + :tag => String.t() | nil + } + + field(:serviceAccountEmail) + field(:tag) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceServiceAccountIdentity do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceServiceAccountIdentity.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceServiceAccountIdentity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_tenant_project_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_tenant_project_config.ex new file mode 100644 index 0000000000..74154d7367 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_tenant_project_config.ex @@ -0,0 +1,74 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantProjectConfig do + @moduledoc """ + The identity to configure a tenant project. + + ## Attributes + + * `billingConfig` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleApiServiceconsumermanagementV1BillingConfig.t`, *default:* `nil`) - Input/Output [Required]. The billing account properties to create the tenant project. + * `folder` (*type:* `String.t`, *default:* `nil`) - Input/Output [Required]. The folder that holds tenant projects and folder-level permissions will be automatically granted to all tenant projects under the folder. Note: the valid folder format is `folders/{folder_number}`. + * `policyBindings` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleApiServiceconsumermanagementV1PolicyBinding.t)`, *default:* `nil`) - Input/Output [Required]. The policy bindings that are applied to the tenant project during creation. At least one binding must have the role `roles/owner` with either `user` or `group` type. + * `services` (*type:* `list(String.t)`, *default:* `nil`) - Input/Output [Required]. The API services that are enabled on the tenant project during creation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :billingConfig => + GoogleApi.ContentWarehouse.V1.Model.GoogleApiServiceconsumermanagementV1BillingConfig.t() + | nil, + :folder => String.t() | nil, + :policyBindings => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleApiServiceconsumermanagementV1PolicyBinding.t() + ) + | nil, + :services => list(String.t()) | nil + } + + field(:billingConfig, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleApiServiceconsumermanagementV1BillingConfig + ) + + field(:folder) + + field(:policyBindings, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleApiServiceconsumermanagementV1PolicyBinding, + type: :list + ) + + field(:services, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantProjectConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantProjectConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantProjectConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_tenant_project_resource.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_tenant_project_resource.ex new file mode 100644 index 0000000000..b6a11c16e8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_tenant_project_resource.ex @@ -0,0 +1,122 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantProjectResource do + @moduledoc """ + The tenant project and tenant resources. Next ID: 10 + + ## Attributes + + * `cloudSqlInstances` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceCloudSqlInstanceConfig.t)`, *default:* `nil`) - The CloudSQL instances that are provisioned under the tenant project. + * `gcsBuckets` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceGcsBucketConfig.t)`, *default:* `nil`) - The GCS buckets that are provisioned under the tenant project. + * `iamPolicyBindings` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceIamPolicyBinding.t)`, *default:* `nil`) - The dynamic IAM bindings that are granted under the tenant project. Note: this should only add new bindings to the project if they don't exist and the existing bindings won't be affected. + * `infraSpannerConfigs` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceInfraSpannerConfig.t)`, *default:* `nil`) - The Infra Spanner databases that are provisioned under the tenant project. Note: this is an experimental feature. + * `tag` (*type:* `String.t`, *default:* `nil`) - Input/Output [Required]. The tag that uniquely identifies a tenant project within a tenancy unit. Note: for the same tenant project tag, all tenant manager operations should be idempotent. + * `tenantProjectConfig` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantProjectConfig.t`, *default:* `nil`) - The configurations of a tenant project. + * `tenantProjectId` (*type:* `String.t`, *default:* `nil`) - Output only. The tenant project ID that has been created. + * `tenantProjectNumber` (*type:* `String.t`, *default:* `nil`) - Output only. The tenant project number that has been created. + * `tenantServiceAccounts` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantServiceAccountIdentity.t)`, *default:* `nil`) - The service account identities (or enabled API service's P4SA) that are expclicitly created under the tenant project (before JIT provisioning during enabled API services). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudSqlInstances => + list( + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceCloudSqlInstanceConfig.t() + ) + | nil, + :gcsBuckets => + list( + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceGcsBucketConfig.t() + ) + | nil, + :iamPolicyBindings => + list( + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceIamPolicyBinding.t() + ) + | nil, + :infraSpannerConfigs => + list( + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceInfraSpannerConfig.t() + ) + | nil, + :tag => String.t() | nil, + :tenantProjectConfig => + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantProjectConfig.t() + | nil, + :tenantProjectId => String.t() | nil, + :tenantProjectNumber => String.t() | nil, + :tenantServiceAccounts => + list( + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantServiceAccountIdentity.t() + ) + | nil + } + + field(:cloudSqlInstances, + as: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceCloudSqlInstanceConfig, + type: :list + ) + + field(:gcsBuckets, + as: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceGcsBucketConfig, + type: :list + ) + + field(:iamPolicyBindings, + as: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceIamPolicyBinding, + type: :list + ) + + field(:infraSpannerConfigs, + as: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceInfraSpannerConfig, + type: :list + ) + + field(:tag) + + field(:tenantProjectConfig, + as: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantProjectConfig + ) + + field(:tenantProjectId) + field(:tenantProjectNumber) + + field(:tenantServiceAccounts, + as: + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantServiceAccountIdentity, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantProjectResource do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantProjectResource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantProjectResource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_tenant_resource.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_tenant_resource.ex new file mode 100644 index 0000000000..db9c65bbc7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_tenant_resource.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantResource do + @moduledoc """ + A collection of tenant resources. + + ## Attributes + + * `p4ServiceAccounts` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceServiceAccountIdentity.t)`, *default:* `nil`) - A list of P4 service accounts (go/p4sa) to provision or deprovision. + * `tenantProjectResources` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantProjectResource.t)`, *default:* `nil`) - A list of tenant projects and tenant resources to provision or deprovision. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :p4ServiceAccounts => + list( + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceServiceAccountIdentity.t() + ) + | nil, + :tenantProjectResources => + list( + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantProjectResource.t() + ) + | nil + } + + field(:p4ServiceAccounts, + as: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceServiceAccountIdentity, + type: :list + ) + + field(:tenantProjectResources, + as: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantProjectResource, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantResource do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantResource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantResource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_tenant_service_account_identity.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_tenant_service_account_identity.ex new file mode 100644 index 0000000000..5b9c444811 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/cloud_ai_platform_tenantresource_tenant_service_account_identity.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantServiceAccountIdentity do + @moduledoc """ + The identity of service accounts that have been explicitly created under tenant projects. + + ## Attributes + + * `serviceAccountEmail` (*type:* `String.t`, *default:* `nil`) - Output only. The email address of the generated service account. + * `serviceName` (*type:* `String.t`, *default:* `nil`) - Input/Output [Required]. The service that the service account belongs to. (e.g. cloudbuild.googleapis.com for GCB service accounts) + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :serviceAccountEmail => String.t() | nil, + :serviceName => String.t() | nil + } + + field(:serviceAccountEmail) + field(:serviceName) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantServiceAccountIdentity do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantServiceAccountIdentity.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.CloudAiPlatformTenantresourceTenantServiceAccountIdentity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/commerce_datastore_deep_tag.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/commerce_datastore_deep_tag.ex new file mode 100644 index 0000000000..4047368727 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/commerce_datastore_deep_tag.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag do + @moduledoc """ + The basic message that contains a single decision output of go/deeptagger. + + ## Attributes + + * `confidence` (*type:* `integer()`, *default:* `nil`) - The confidence of the tag, encoded to 14 bits (range [0, 16383]). Due to modeling details, a large number of tags become trustworthy with confidence greater than 0.001, so two bytes of precision are required. + * `tag` (*type:* `integer()`, *default:* `nil`) - A Deep Tag enum in uint32 form. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidence => integer() | nil, + :tag => integer() | nil + } + + field(:confidence) + field(:tag) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/commerce_datastore_image_deep_tags.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/commerce_datastore_image_deep_tags.ex new file mode 100644 index 0000000000..cc4b955b6f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/commerce_datastore_image_deep_tags.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreImageDeepTags do + @moduledoc """ + Image-level deep tags: essentially equivalent to the proto above but containing tags that are computed at the image level. These image signals are maintained by the Visual Shopping team (visual-shopping@). *** If you do use the signals, please add an entry in go/ShoppingImageAttributeClients to be notified for model upgrade. *** We recommend our clients against using the raw confidence value directly. Instead, the clients should use the library, cs/ads/shopping/visual/deeptags/public/single_tag.h and cs/ads/shopping/visual/deeptags/public/single_scored_tag.h to specify an operating point in terms of precision or recall. See the following code example: http://google3/shopping/visual/explore_looks/looks_offline_pipeline.cc?l=268&rcl=304165166 *** `model_outputs` is a repeated field. Please check `version` to get the model you desire to use, instead of indexing the model_outputs directly e.g. model_outputs(0). We will remove the old versions in the future and this will lead to incorrect model. *** Models: As of Q2 2020, we have two models running within Shopping: model one only has the overlay tag, which we are deprecating, and model two has the tags specified in go/VisualShoppingImageAttributes. + + ## Attributes + + * `modelOutputs` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreImageDeepTagsModelOutput.t)`, *default:* `nil`) - The set of outputs for a series of model versions. The size of this field should not extend beyond 4 at any time: two versions for slow-update track dependencies, and two versions for fast-update track dependencies. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :modelOutputs => + list( + GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreImageDeepTagsModelOutput.t() + ) + | nil + } + + field(:modelOutputs, + as: GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreImageDeepTagsModelOutput, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreImageDeepTags do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreImageDeepTags.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreImageDeepTags do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/commerce_datastore_image_deep_tags_model_output.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/commerce_datastore_image_deep_tags_model_output.ex new file mode 100644 index 0000000000..7abb1a0347 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/commerce_datastore_image_deep_tags_model_output.ex @@ -0,0 +1,85 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreImageDeepTagsModelOutput do + @moduledoc """ + + + ## Attributes + + * `backgroundType` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t`, *default:* `nil`) - + * `collage` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t`, *default:* `nil`) - + * `cropping` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t`, *default:* `nil`) - We are looking to deploy a model for the Ads team to identify images with bad cropping. The model will be for Ads only and we will not populate the cropping field in CDS. + * `modelType` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t`, *default:* `nil`) - + * `nfs` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t`, *default:* `nil`) - Tag corresponds to the shopping non-family safe (nfs) image signal. + * `objectCount` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t`, *default:* `nil`) - + * `overlay` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t`, *default:* `nil`) - Tag corresponding to unwanted text overlay (watermarks, logos, promotional elements, artifacts, etc). + * `selfie` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t`, *default:* `nil`) - + * `textOverlay` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t)`, *default:* `nil`) - Tag corresponding to the text overlay classifier (watermarks, logos, promotional elements, artifacts, etc). + * `version` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :backgroundType => + GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t() | nil, + :collage => GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t() | nil, + :cropping => GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t() | nil, + :modelType => GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t() | nil, + :nfs => GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t() | nil, + :objectCount => GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t() | nil, + :overlay => GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t() | nil, + :selfie => GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t() | nil, + :textOverlay => + list(GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag.t()) | nil, + :version => integer() | nil + } + + field(:backgroundType, as: GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag) + field(:collage, as: GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag) + field(:cropping, as: GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag) + field(:modelType, as: GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag) + field(:nfs, as: GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag) + field(:objectCount, as: GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag) + field(:overlay, as: GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag) + field(:selfie, as: GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag) + + field(:textOverlay, + as: GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreDeepTag, + type: :list + ) + + field(:version) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreImageDeepTagsModelOutput do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreImageDeepTagsModelOutput.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.CommerceDatastoreImageDeepTagsModelOutput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc.ex new file mode 100644 index 0000000000..c48dc9ca4a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc.ex @@ -0,0 +1,242 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CompositeDoc do + @moduledoc """ + Protocol record used for collecting together all information about a document. Please consult go/dj-explorer for two basic questions about `CompositeDoc`: - Where should I look up certain information (e.g: pagerank, language)? - What does each field in CompositeDoc mean and who should I contact if I have questions? To add a new field into CompositeDoc, or change existing field's size significantly, please file a ticket at go/dj-new-field, fill in necessary information and get approved by docjoin-access@ team. Next id: 193 + + ## Attributes + + * `qualitysignals` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CompositeDocQualitySignals.t`, *default:* `nil`) - + * `liveexperimentinfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CompositeDocLiveExperimentInfo.t`, *default:* `nil`) - + * `robotsinfolist` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CompositeDocRobotsInfoList.t`, *default:* `nil`) - + * `docAttachments` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - A generic container to hold document annotations and signals. For a full list of extensions live today, see go/wde. + * `ContentChecksum96` (*type:* `String.t`, *default:* `nil`) - Visible content checksum as computed by repository::parsehandler::checksum::Checksum96bitsParseHandler. The value is a Fprint96 in "key format" (i.e., by Fprint96::AsKey()). + * `localizedAlternateName` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.IndexingConverterLocalizedAlternateName.t)`, *default:* `nil`) - Localized alternate names are similar to alternate names, except that it is associated with a language different from its canonical. This is the subset of webmaster-provided localized alternate names being in the dup cluster of this document. Used during serving for swapping in the URL based on regional and language preferences of the user. + * `registrationinfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.RegistrationInfo.t`, *default:* `nil`) - Information about the most recent creation and expiration of this domain. It's extracted from domainedge signal. + * `richsnippet` (*type:* `GoogleApi.ContentWarehouse.V1.Model.RichsnippetsPageMap.t`, *default:* `nil`) - rich snippet extracted from the content of a document. + * `accessRequirements` (*type:* `GoogleApi.ContentWarehouse.V1.Model.IndexingPrivacyAccessAccessRequirements.t`, *default:* `nil`) - Contains necessary information to enforce row level Docjoin access control. + * `url` (*type:* `String.t`, *default:* `nil`) - WARNING!!! "url" field in CompositeDoc is optional, and is usually missing: e.g., Docjoin CompositeDoc's don't have CompositeDoc::url. has_url() checking is often useful. So don't rely on CompositeDoc::url unless you're sure otherwise. Usually you want to use CompositeDoc::doc::url instead. + * `docImages` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.ImageData.t)`, *default:* `nil`) - Info about "selected" images associated with the document for which we (already) have ImageData. For each image URL, some fixed number of documents are selected as web referrers for the image URL, and within those selected documents, we say the image is "selected". Within the remaining documents, we say the image is "rejected". Note that this distinction is slightly different from selected for indexing. Only images within doc_images where is_indexed_by_imagesearch is true will be selected for indexing. You can find the rejected images at composite_doc.doc_attachments().get(). You can find images that are selected, but for which we have no ImageData (yet) at composite_doc.image_indexing_info().selected_not_indexed_image_link() + * `richcontentData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.IndexingConverterRichContentData.t`, *default:* `nil`) - If present, indicates that some content was inserted, deleted, or replaced in the document's content (in CompositeDoc::doc::Content::Representation), and stores information about what was inserted, deleted, or replaced. + * `perDocData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.PerDocData.t`, *default:* `nil`) - + * `subindexid` (*type:* `list(String.t)`, *default:* `nil`) - + * `properties` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DocProperties.t`, *default:* `nil`) - + * `scaledIndyRank` (*type:* `integer()`, *default:* `nil`) - to copy to per-doc + * `localizedvariations` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CompositeDocLocalizedVariations.t`, *default:* `nil`) - + * `docinfoPassthroughAttachments` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - This message set is used for data pushed into the index using the signals framework that is never to be used in Mustang or TG Continuum scoring/snippeting code. Any protocol buffer stored in this message set is automatically returned in a docinfo response - it ends up in the "info" message set in the WWWSnippetResponse, so it can be used in post-doc twiddlers and for display in GWS with no code changes in Mustang or Teragoogle. + * `badSslCertificate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.IndexingBadSSLCertificate.t`, *default:* `nil`) - This field is present iff the page has a bad SSL certificate itself or in its redirect chain. + * `partialUpdateInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CompositeDocPartialUpdateInfo.t`, *default:* `nil`) - Only present in partial cdocs. + * `cseId` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.QualityProseCSEUrlInfo.t)`, *default:* `nil`) - + * `anchors` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Anchors.t`, *default:* `nil`) - Mark as non-personal since no personal fields will be populated in `anchors.link_additional_info` and `anchors.additional_info`. For more details of Search personal data, see go/dma52-search-cdoc-fields. + * `sitemap` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Sitemap.t`, *default:* `nil`) - Sitelinks: a collection of interesting links a user might be interested in, given they are interested in this document. WARNING: this is different from the crawler Sitemaps (see SitemapsSignals in the attachments). + * `forwardingdup` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CompositeDocForwardingDup.t)`, *default:* `nil`) - + * `indexinginfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CompositeDocIndexingInfo.t`, *default:* `nil`) - + * `storageRowTimestampMicros` (*type:* `String.t`, *default:* `nil`) - Row timestamp in CDoc storage. + * `docVideos` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.ImageRepositoryVideoProperties.t)`, *default:* `nil`) - Info about videos embedded in the document. + * `ptoken` (*type:* `GoogleApi.ContentWarehouse.V1.Model.PtokenPToken.t`, *default:* `nil`) - Contains information necessary to perform policy decision on the usage of the data assosiated with this cdoc. + * `syntacticDate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.QualityTimebasedSyntacticDate.t`, *default:* `nil`) - + * `embeddedContentInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.IndexingEmbeddedContentEmbeddedContentInfo.t`, *default:* `nil`) - Data produced by the embedded-content system. This is a thin message, containing only embedded_links_info data for the embedder and JavaScript/CSS embedded links (the embedded-content bigtable also contains snapshots, compressed document trees and all embedded link types). Provided using the index signal API. + * `indexingIntermediate` (*type:* `String.t`, *default:* `nil`) - Serialized indexing intermediate data. + * `anchorStats` (*type:* `GoogleApi.ContentWarehouse.V1.Model.IndexingDocjoinerAnchorStatistics.t`, *default:* `nil`) - Mark as non-personal since it's an aggregation of anchors. For more details of Search personal data, see go/dma52-search-cdoc-fields. + * `includedcontent` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CompositeDocIncludedContent.t)`, *default:* `nil`) - + * `dataVersion` (*type:* `GoogleApi.ContentWarehouse.V1.Model.IndexingDocjoinerDataVersion.t`, *default:* `nil`) - Contains the tracking version of various data fields in CompositeDoc. + * `localinfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.LocalWWWInfo.t`, *default:* `nil`) - + * `additionalchecksums` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CompositeDocAdditionalChecksums.t`, *default:* `nil`) - + * `alternatename` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CompositeDocAlternateName.t)`, *default:* `nil`) - + * `porninfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ClassifierPornDocumentData.t`, *default:* `nil`) - Porn related data used for image and web search porn classification as well as for diagnostics purposes. + * `urldate` (*type:* `String.t`, *default:* `nil`) - Date in the url extracted by quality/snippets/urldate/date-in-url.cc This is given as midnight GMT on the date in question. + * `extradup` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CompositeDocExtraDup.t)`, *default:* `nil`) - + * `doc` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GDocumentBase.t`, *default:* `nil`) - + * `csePagerankCutoff` (*type:* `integer()`, *default:* `nil`) - URL should only be selected for CSE Index if it's pagerank is higher than cse_pagerank_cutoff. + * `labelData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.QualityLabelsGoogleLabelData.t`, *default:* `nil`) - This field associates a document to particular labels and assigns confidence values to them. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :qualitysignals => + GoogleApi.ContentWarehouse.V1.Model.CompositeDocQualitySignals.t() | nil, + :liveexperimentinfo => + GoogleApi.ContentWarehouse.V1.Model.CompositeDocLiveExperimentInfo.t() | nil, + :robotsinfolist => + GoogleApi.ContentWarehouse.V1.Model.CompositeDocRobotsInfoList.t() | nil, + :docAttachments => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :ContentChecksum96 => String.t() | nil, + :localizedAlternateName => + list(GoogleApi.ContentWarehouse.V1.Model.IndexingConverterLocalizedAlternateName.t()) + | nil, + :registrationinfo => GoogleApi.ContentWarehouse.V1.Model.RegistrationInfo.t() | nil, + :richsnippet => GoogleApi.ContentWarehouse.V1.Model.RichsnippetsPageMap.t() | nil, + :accessRequirements => + GoogleApi.ContentWarehouse.V1.Model.IndexingPrivacyAccessAccessRequirements.t() | nil, + :url => String.t() | nil, + :docImages => list(GoogleApi.ContentWarehouse.V1.Model.ImageData.t()) | nil, + :richcontentData => + GoogleApi.ContentWarehouse.V1.Model.IndexingConverterRichContentData.t() | nil, + :perDocData => GoogleApi.ContentWarehouse.V1.Model.PerDocData.t() | nil, + :subindexid => list(String.t()) | nil, + :properties => GoogleApi.ContentWarehouse.V1.Model.DocProperties.t() | nil, + :scaledIndyRank => integer() | nil, + :localizedvariations => + GoogleApi.ContentWarehouse.V1.Model.CompositeDocLocalizedVariations.t() | nil, + :docinfoPassthroughAttachments => + GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :badSslCertificate => + GoogleApi.ContentWarehouse.V1.Model.IndexingBadSSLCertificate.t() | nil, + :partialUpdateInfo => + GoogleApi.ContentWarehouse.V1.Model.CompositeDocPartialUpdateInfo.t() | nil, + :cseId => list(GoogleApi.ContentWarehouse.V1.Model.QualityProseCSEUrlInfo.t()) | nil, + :anchors => GoogleApi.ContentWarehouse.V1.Model.Anchors.t() | nil, + :sitemap => GoogleApi.ContentWarehouse.V1.Model.Sitemap.t() | nil, + :forwardingdup => + list(GoogleApi.ContentWarehouse.V1.Model.CompositeDocForwardingDup.t()) | nil, + :indexinginfo => GoogleApi.ContentWarehouse.V1.Model.CompositeDocIndexingInfo.t() | nil, + :storageRowTimestampMicros => String.t() | nil, + :docVideos => + list(GoogleApi.ContentWarehouse.V1.Model.ImageRepositoryVideoProperties.t()) | nil, + :ptoken => GoogleApi.ContentWarehouse.V1.Model.PtokenPToken.t() | nil, + :syntacticDate => + GoogleApi.ContentWarehouse.V1.Model.QualityTimebasedSyntacticDate.t() | nil, + :embeddedContentInfo => + GoogleApi.ContentWarehouse.V1.Model.IndexingEmbeddedContentEmbeddedContentInfo.t() + | nil, + :indexingIntermediate => String.t() | nil, + :anchorStats => + GoogleApi.ContentWarehouse.V1.Model.IndexingDocjoinerAnchorStatistics.t() | nil, + :includedcontent => + list(GoogleApi.ContentWarehouse.V1.Model.CompositeDocIncludedContent.t()) | nil, + :dataVersion => + GoogleApi.ContentWarehouse.V1.Model.IndexingDocjoinerDataVersion.t() | nil, + :localinfo => GoogleApi.ContentWarehouse.V1.Model.LocalWWWInfo.t() | nil, + :additionalchecksums => + GoogleApi.ContentWarehouse.V1.Model.CompositeDocAdditionalChecksums.t() | nil, + :alternatename => + list(GoogleApi.ContentWarehouse.V1.Model.CompositeDocAlternateName.t()) | nil, + :porninfo => GoogleApi.ContentWarehouse.V1.Model.ClassifierPornDocumentData.t() | nil, + :urldate => String.t() | nil, + :extradup => list(GoogleApi.ContentWarehouse.V1.Model.CompositeDocExtraDup.t()) | nil, + :doc => GoogleApi.ContentWarehouse.V1.Model.GDocumentBase.t() | nil, + :csePagerankCutoff => integer() | nil, + :labelData => GoogleApi.ContentWarehouse.V1.Model.QualityLabelsGoogleLabelData.t() | nil + } + + field(:qualitysignals, as: GoogleApi.ContentWarehouse.V1.Model.CompositeDocQualitySignals) + + field(:liveexperimentinfo, + as: GoogleApi.ContentWarehouse.V1.Model.CompositeDocLiveExperimentInfo + ) + + field(:robotsinfolist, as: GoogleApi.ContentWarehouse.V1.Model.CompositeDocRobotsInfoList) + field(:docAttachments, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + field(:ContentChecksum96) + + field(:localizedAlternateName, + as: GoogleApi.ContentWarehouse.V1.Model.IndexingConverterLocalizedAlternateName, + type: :list + ) + + field(:registrationinfo, as: GoogleApi.ContentWarehouse.V1.Model.RegistrationInfo) + field(:richsnippet, as: GoogleApi.ContentWarehouse.V1.Model.RichsnippetsPageMap) + + field(:accessRequirements, + as: GoogleApi.ContentWarehouse.V1.Model.IndexingPrivacyAccessAccessRequirements + ) + + field(:url) + field(:docImages, as: GoogleApi.ContentWarehouse.V1.Model.ImageData, type: :list) + + field(:richcontentData, as: GoogleApi.ContentWarehouse.V1.Model.IndexingConverterRichContentData) + + field(:perDocData, as: GoogleApi.ContentWarehouse.V1.Model.PerDocData) + field(:subindexid, type: :list) + field(:properties, as: GoogleApi.ContentWarehouse.V1.Model.DocProperties) + field(:scaledIndyRank) + + field(:localizedvariations, + as: GoogleApi.ContentWarehouse.V1.Model.CompositeDocLocalizedVariations + ) + + field(:docinfoPassthroughAttachments, + as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet + ) + + field(:badSslCertificate, as: GoogleApi.ContentWarehouse.V1.Model.IndexingBadSSLCertificate) + field(:partialUpdateInfo, as: GoogleApi.ContentWarehouse.V1.Model.CompositeDocPartialUpdateInfo) + field(:cseId, as: GoogleApi.ContentWarehouse.V1.Model.QualityProseCSEUrlInfo, type: :list) + field(:anchors, as: GoogleApi.ContentWarehouse.V1.Model.Anchors) + field(:sitemap, as: GoogleApi.ContentWarehouse.V1.Model.Sitemap) + + field(:forwardingdup, + as: GoogleApi.ContentWarehouse.V1.Model.CompositeDocForwardingDup, + type: :list + ) + + field(:indexinginfo, as: GoogleApi.ContentWarehouse.V1.Model.CompositeDocIndexingInfo) + field(:storageRowTimestampMicros) + + field(:docVideos, + as: GoogleApi.ContentWarehouse.V1.Model.ImageRepositoryVideoProperties, + type: :list + ) + + field(:ptoken, as: GoogleApi.ContentWarehouse.V1.Model.PtokenPToken) + field(:syntacticDate, as: GoogleApi.ContentWarehouse.V1.Model.QualityTimebasedSyntacticDate) + + field(:embeddedContentInfo, + as: GoogleApi.ContentWarehouse.V1.Model.IndexingEmbeddedContentEmbeddedContentInfo + ) + + field(:indexingIntermediate) + field(:anchorStats, as: GoogleApi.ContentWarehouse.V1.Model.IndexingDocjoinerAnchorStatistics) + + field(:includedcontent, + as: GoogleApi.ContentWarehouse.V1.Model.CompositeDocIncludedContent, + type: :list + ) + + field(:dataVersion, as: GoogleApi.ContentWarehouse.V1.Model.IndexingDocjoinerDataVersion) + field(:localinfo, as: GoogleApi.ContentWarehouse.V1.Model.LocalWWWInfo) + + field(:additionalchecksums, + as: GoogleApi.ContentWarehouse.V1.Model.CompositeDocAdditionalChecksums + ) + + field(:alternatename, + as: GoogleApi.ContentWarehouse.V1.Model.CompositeDocAlternateName, + type: :list + ) + + field(:porninfo, as: GoogleApi.ContentWarehouse.V1.Model.ClassifierPornDocumentData) + field(:urldate) + field(:extradup, as: GoogleApi.ContentWarehouse.V1.Model.CompositeDocExtraDup, type: :list) + field(:doc, as: GoogleApi.ContentWarehouse.V1.Model.GDocumentBase) + field(:csePagerankCutoff) + field(:labelData, as: GoogleApi.ContentWarehouse.V1.Model.QualityLabelsGoogleLabelData) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDoc do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CompositeDoc.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDoc do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_additional_checksums.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_additional_checksums.ex new file mode 100644 index 0000000000..4478aeef79 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_additional_checksums.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CompositeDocAdditionalChecksums do + @moduledoc """ + Additional checksums of the document. + + ## Attributes + + * `NoTransientChecksum96` (*type:* `String.t`, *default:* `nil`) - Same as ContentChecksum96 but without transient boilerplate. + * `SimHash` (*type:* `String.t`, *default:* `nil`) - Deprecated. Use simhash_v2 and simhash_v2_significance instead. + * `SimHashIsTrusted` (*type:* `boolean()`, *default:* `nil`) - + * `simhashV2` (*type:* `String.t`, *default:* `nil`) - Simhash-v2 is generated by SimHashParseHandler, designed as a complete replacement of simhash-v1 (a.k.a. the original simhash above) from ApproxDupsParseHandler. Simhash-v2 uses a revised algorithm so that it is expected to work better in most cases than simhash-v1. They coexist in current transition period, then simhash-v1 will be retired. + * `simhashV2Significance` (*type:* `float()`, *default:* `nil`) - Simhash-v2-significance is used to describe the confidence about the corresponding simhash-v2 value. It is defined as the average absolute difference from zero of all internal state components when finalizing a simhash-v2 value in HashMultiSetDotCauchy. We used to compare the significance against some pre-defined threshold (default: 20) to get a boolean value "trusted_simhash_v2". However, it is possible that this field is missing while "simhash_v2" is present, in such case (1) Use "SimHashIsTrusted" instead if it is present, AND/OR (2) Assume "simhash_v2" is trusted if its value is non-zero. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :NoTransientChecksum96 => String.t() | nil, + :SimHash => String.t() | nil, + :SimHashIsTrusted => boolean() | nil, + :simhashV2 => String.t() | nil, + :simhashV2Significance => float() | nil + } + + field(:NoTransientChecksum96) + field(:SimHash) + field(:SimHashIsTrusted) + field(:simhashV2) + field(:simhashV2Significance) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocAdditionalChecksums do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CompositeDocAdditionalChecksums.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocAdditionalChecksums do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_alternate_name.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_alternate_name.ex new file mode 100644 index 0000000000..391229228c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_alternate_name.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CompositeDocAlternateName do + @moduledoc """ + Alternate names are some urls that we would like to associate with documents in addition to canonicals. Sometimes we may want to serve these alternatenames instead of canonicals. Alternames in CompositeDoc should come from WebMirror pipeline. + + ## Attributes + + * `Url` (*type:* `String.t`, *default:* `nil`) - + * `UrlEncoding` (*type:* `integer()`, *default:* `nil`) - See webutil/urlencoding + * `ecnFp` (*type:* `String.t`, *default:* `nil`) - Fp96 of webmirror equivalence class as of last time this was exported. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Url => String.t() | nil, + :UrlEncoding => integer() | nil, + :ecnFp => String.t() | nil + } + + field(:Url) + field(:UrlEncoding) + field(:ecnFp) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocAlternateName do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CompositeDocAlternateName.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocAlternateName do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_extra_dup.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_extra_dup.ex new file mode 100644 index 0000000000..1008ebd710 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_extra_dup.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CompositeDocExtraDup do + @moduledoc """ + The top non-forwarding dups of the canonical url. + + ## Attributes + + * `ecnFp` (*type:* `String.t`, *default:* `nil`) - Fp96 of webmirror equivalence class as of last time this was exported. + * `url` (*type:* `String.t`, *default:* `nil`) - The url of the non-forwarding dup. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ecnFp => String.t() | nil, + :url => String.t() | nil + } + + field(:ecnFp) + field(:url) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocExtraDup do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CompositeDocExtraDup.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocExtraDup do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_forwarding_dup.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_forwarding_dup.ex new file mode 100644 index 0000000000..bad9a54caa --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_forwarding_dup.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CompositeDocForwardingDup do + @moduledoc """ + The top forwarding dups of the canonical url. (note: it may actually include some dups that are NOT used for forwarding data but for making "info:" complete) + + ## Attributes + + * `ecn` (*type:* `String.t`, *default:* `nil`) - The name of the url's webmirror equivalence class. + * `ecnFp` (*type:* `String.t`, *default:* `nil`) - + * `purposes` (*type:* `integer()`, *default:* `nil`) - The purpose(s) of the forwarding dup indicating if it is used for forwarding signal/anchors generally, or only for forwarding some specific signal (e.g. navboost), or for some other purposes (e.g., not for forwarding any data but for making "info:" complete). See indexing/dups/public/dups.h for more details. + * `rawPagerank` (*type:* `integer()`, *default:* `nil`) - Raw pagerank of the url. + * `repid` (*type:* `String.t`, *default:* `nil`) - The webmirror repid of the forwarding dup. + * `url` (*type:* `String.t`, *default:* `nil`) - The url of the forwarding dup. + * `urlencoding` (*type:* `integer()`, *default:* `nil`) - The encoding of the url (see webutil/urlencoding for details). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ecn => String.t() | nil, + :ecnFp => String.t() | nil, + :purposes => integer() | nil, + :rawPagerank => integer() | nil, + :repid => String.t() | nil, + :url => String.t() | nil, + :urlencoding => integer() | nil + } + + field(:ecn) + field(:ecnFp) + field(:purposes) + field(:rawPagerank) + field(:repid) + field(:url) + field(:urlencoding) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocForwardingDup do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CompositeDocForwardingDup.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocForwardingDup do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_included_content.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_included_content.ex new file mode 100644 index 0000000000..0f499f9154 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_included_content.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CompositeDocIncludedContent do + @moduledoc """ + + + ## Attributes + + * `SourceTypeBitfield` (*type:* `String.t`, *default:* `nil`) - Indicate how this content came to be included. Legal values are constructed by bitwise-OR-ing values from the included_content::SourceType enum. Default SourceTypeBitfield = included_content::INCLUDED_FRAME + * `includedDoc` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GDocumentBase.t`, *default:* `nil`) - + * `linkUrl` (*type:* `String.t`, *default:* `nil`) - + * `perDocData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.PerDocData.t`, *default:* `nil`) - + * `properties` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DocProperties.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :SourceTypeBitfield => String.t() | nil, + :includedDoc => GoogleApi.ContentWarehouse.V1.Model.GDocumentBase.t() | nil, + :linkUrl => String.t() | nil, + :perDocData => GoogleApi.ContentWarehouse.V1.Model.PerDocData.t() | nil, + :properties => GoogleApi.ContentWarehouse.V1.Model.DocProperties.t() | nil + } + + field(:SourceTypeBitfield) + field(:includedDoc, as: GoogleApi.ContentWarehouse.V1.Model.GDocumentBase) + field(:linkUrl) + field(:perDocData, as: GoogleApi.ContentWarehouse.V1.Model.PerDocData) + field(:properties, as: GoogleApi.ContentWarehouse.V1.Model.DocProperties) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocIncludedContent do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CompositeDocIncludedContent.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocIncludedContent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_indexing_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_indexing_info.ex new file mode 100644 index 0000000000..b4484343ee --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_indexing_info.ex @@ -0,0 +1,126 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CompositeDocIndexingInfo do + @moduledoc """ + Contains information *mostly* used within indexing (e.g. not used for building the production serving shards). Most of this data is generated only in Alexandria, however there are exceptions. + + ## Attributes + + * `cdocBuildInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.IndexingDocjoinerCDocBuildInfo.t`, *default:* `nil`) - To hold extra info for building a final cdoc from raw cdoc and goldmine annotations. + * `contentProtected` (*type:* `boolean()`, *default:* `nil`) - Whether current page is under content protection, i.e. a page has been crawled as an error page, but we preserve its last known good content and keep its crawl_status as converter.CrawlStatus::CONTENT. + * `convertToRobotedReason` (*type:* `integer()`, *default:* `nil`) - If set, indicates that the crawl status was converted to ROBOTED for the reason specified by the enum value in converter.RobotedReasons.ConvertToRobotedReasons. See indexing/converter/proto/converter.proto for details. If unset, then the document was not converted to roboted, and if the document crawl status is ROBOTED, then the document is disallowed (at least to Google) in robots.txt. + * `crawlStatus` (*type:* `integer()`, *default:* `nil`) - One of the enum values in converter.CrawlStatus.State (see indexing/converter/proto/converter.proto for details). Default is converter.CrawlStatus::CONTENT. The document is roboted if the value is converter.CrawlStatus::ROBOTED. + * `demotionTags` (*type:* `list(String.t)`, *default:* `nil`) - + * `errorType` (*type:* `integer()`, *default:* `nil`) - One of the enum values in converter.ErrorPageType (see indexing/converter/proto/error-page-detector-enum.proto for detail). Default is converter::ERROR_PAGE_NONE. + * `freshdocsCorpora` (*type:* `list(String.t)`, *default:* `nil`) - + * `hostid` (*type:* `String.t`, *default:* `nil`) - The host id of the document. Used chiefly to determine whether the document is part of a parked domain. + * `ieIdentifier` (*type:* `String.t`, *default:* `nil`) - A short descriptive string to help identify the IE application or setup where this CDoc is generated. For example: websearch_m3 This field is for debuggability purposes. + * `imageIndexingInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ImageSearchImageIndexingInfo.t`, *default:* `nil`) - Indexing info about images (i.e. image links missing image data, etc). + * `indexingTs` (*type:* `String.t`, *default:* `nil`) - The timestamp (the time since the Epoch, in microseconds) when the docjoin is exported from indexing. The main purpose of this field is to identify different versions of the same document. + * `noLongerCanonicalTimestamp` (*type:* `String.t`, *default:* `nil`) - If set, the timestamp in microseconds when the URL stopped being canonical. This should never be set for exported canonical documents. This field is used by dups during canonical flip, and by webmain when doc selection switched between desktop and mobile. Union respects this timestamp to prevent old doc being deleted until the new doc is picked up + * `normalizedClickScore` (*type:* `number()`, *default:* `nil`) - This score is calculated by re-mapping the back onto the partition's score distribution, such that the score represents the score of the equivalently ranked organically-selected document. + * `primaryVertical` (*type:* `String.t`, *default:* `nil`) - Vertical membership of the document. - `primary_vertical` is the vertical that initiated indexing of this document (or empty if the vertical was websearch). - `verticals` is the full list of verticals that contained this document (excluding websearch) at indexing time. `primary_vertical` may or may not be an element of `verticals` because of vertical membership skew between the ingestion time and indexing time. See go/one-indexing-for-web for more background. + * `rawNavboost` (*type:* `integer()`, *default:* `nil`) - The raw navboost count for the canonical url without aggregating the navboost from dup urls. This field is used when building forwarding map. + * `rowTimestamp` (*type:* `String.t`, *default:* `nil`) - The timestamp (the time since the Epoch, in microseconds) to represent doc version, which is used in the downstream processing after Raffia. If it's not set, indexing_ts will be used as row_timestamp. The timestamp is generally set by reprocessing to set slightly newer indexing_ts such that the system can respect the reprocessed version to overwrite old data in storage. + * `selectionTierRank` (*type:* `number()`, *default:* `nil`) - Selection tier rank is a language normalized score ranging from 0-1 over the serving tier (Base, Zeppelins, Landfills) for this document. + * `tracingId` (*type:* `list(String.t)`, *default:* `nil`) - The tracing ids is to label the version of url for url status tracking. This repeated field will carry at most 10 tracing id. See more details in go/rich-tracing-design There will be less than 2% base+uz cdocs carrying this field. The major sources of tracing ids include: * Indexing API pushed urls * Index Metrics sampling urls The tracing ids will be written into cdocs by Webmain Ramifier. The consumer of the tracing ids is Union serving notification collector see more at go/serving-notification-from-union + * `urlChangerate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlChangerate.t`, *default:* `nil`) - Changerate information for this doc (see crawler/changerate/changerate.proto for details). + * `urlHistory` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlHistory.t`, *default:* `nil`) - Url change history for this doc (see crawler/changerate/changerate.proto for details). Note if a doc has more than 20 changes, we only keep the last 20 changes here to avoid adding to much data in its docjoin. + * `urlPatternSignals` (*type:* `GoogleApi.ContentWarehouse.V1.Model.IndexingSignalAggregatorUrlPatternSignals.t`, *default:* `nil`) - UrlPatternSignals for this doc, used to compute document score in LTG (see indexing/signal_aggregator/proto/signal-aggregator.proto for details). + * `verticals` (*type:* `list(String.t)`, *default:* `nil`) - + * `videoIndexingInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ImageRepositoryVideoIndexingInfo.t`, *default:* `nil`) - Indexing info about videos. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cdocBuildInfo => + GoogleApi.ContentWarehouse.V1.Model.IndexingDocjoinerCDocBuildInfo.t() | nil, + :contentProtected => boolean() | nil, + :convertToRobotedReason => integer() | nil, + :crawlStatus => integer() | nil, + :demotionTags => list(String.t()) | nil, + :errorType => integer() | nil, + :freshdocsCorpora => list(String.t()) | nil, + :hostid => String.t() | nil, + :ieIdentifier => String.t() | nil, + :imageIndexingInfo => + GoogleApi.ContentWarehouse.V1.Model.ImageSearchImageIndexingInfo.t() | nil, + :indexingTs => String.t() | nil, + :noLongerCanonicalTimestamp => String.t() | nil, + :normalizedClickScore => number() | nil, + :primaryVertical => String.t() | nil, + :rawNavboost => integer() | nil, + :rowTimestamp => String.t() | nil, + :selectionTierRank => number() | nil, + :tracingId => list(String.t()) | nil, + :urlChangerate => + GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlChangerate.t() | nil, + :urlHistory => + GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlHistory.t() | nil, + :urlPatternSignals => + GoogleApi.ContentWarehouse.V1.Model.IndexingSignalAggregatorUrlPatternSignals.t() + | nil, + :verticals => list(String.t()) | nil, + :videoIndexingInfo => + GoogleApi.ContentWarehouse.V1.Model.ImageRepositoryVideoIndexingInfo.t() | nil + } + + field(:cdocBuildInfo, as: GoogleApi.ContentWarehouse.V1.Model.IndexingDocjoinerCDocBuildInfo) + field(:contentProtected) + field(:convertToRobotedReason) + field(:crawlStatus) + field(:demotionTags, type: :list) + field(:errorType) + field(:freshdocsCorpora, type: :list) + field(:hostid) + field(:ieIdentifier) + field(:imageIndexingInfo, as: GoogleApi.ContentWarehouse.V1.Model.ImageSearchImageIndexingInfo) + field(:indexingTs) + field(:noLongerCanonicalTimestamp) + field(:normalizedClickScore) + field(:primaryVertical) + field(:rawNavboost) + field(:rowTimestamp) + field(:selectionTierRank) + field(:tracingId, type: :list) + field(:urlChangerate, as: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlChangerate) + field(:urlHistory, as: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlHistory) + + field(:urlPatternSignals, + as: GoogleApi.ContentWarehouse.V1.Model.IndexingSignalAggregatorUrlPatternSignals + ) + + field(:verticals, type: :list) + + field(:videoIndexingInfo, + as: GoogleApi.ContentWarehouse.V1.Model.ImageRepositoryVideoIndexingInfo + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocIndexingInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CompositeDocIndexingInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocIndexingInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_live_experiment_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_live_experiment_info.ex new file mode 100644 index 0000000000..c12415626f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_live_experiment_info.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CompositeDocLiveExperimentInfo do + @moduledoc """ + Contains information needed for end-to-end live experiments. For a cdoc generated by production pipeline, it includes experiment IDs that have selected current document. For a cdoc generated by experiment pipeline, it includes current experiment ID. + + ## Attributes + + * `perLiveExperimentInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CompositeDocLiveExperimentInfoPerLiveExperimentInfo.t)`, *default:* `nil`) - List of necessary information for each live experiments. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :perLiveExperimentInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.CompositeDocLiveExperimentInfoPerLiveExperimentInfo.t() + ) + | nil + } + + field(:perLiveExperimentInfo, + as: GoogleApi.ContentWarehouse.V1.Model.CompositeDocLiveExperimentInfoPerLiveExperimentInfo, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocLiveExperimentInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CompositeDocLiveExperimentInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocLiveExperimentInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_live_experiment_info_per_live_experiment_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_live_experiment_info_per_live_experiment_info.ex new file mode 100644 index 0000000000..bee879d9d7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_live_experiment_info_per_live_experiment_info.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CompositeDocLiveExperimentInfoPerLiveExperimentInfo do + @moduledoc """ + Contains information for a live experiment. + + ## Attributes + + * `experimentId` (*type:* `String.t`, *default:* `nil`) - ID of a live experiment. + * `partialCdoc` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CompositeDoc.t`, *default:* `nil`) - Partial CDoc for a live experiment. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :experimentId => String.t() | nil, + :partialCdoc => GoogleApi.ContentWarehouse.V1.Model.CompositeDoc.t() | nil + } + + field(:experimentId) + field(:partialCdoc, as: GoogleApi.ContentWarehouse.V1.Model.CompositeDoc) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocLiveExperimentInfoPerLiveExperimentInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CompositeDocLiveExperimentInfoPerLiveExperimentInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocLiveExperimentInfoPerLiveExperimentInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_localized_variations.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_localized_variations.ex new file mode 100644 index 0000000000..9ad5051494 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_localized_variations.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CompositeDocLocalizedVariations do + @moduledoc """ + + + ## Attributes + + * `dupsComputedAlternateNames` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.IndexingDupsComputedLocalizedAlternateNamesLocaleEntry.t)`, *default:* `nil`) - A subset of computed variations, only the members which are dups to the main url. Used during serving for swapping in the URL based on regional and language preferences of the user. + * `webmasterAlternateNames` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.IndexingConverterLocalizedAlternateName.t)`, *default:* `nil`) - All localized alternate names provided by the webmaster (canonical and dups, indexed and not-indexed). Used on the ranking side for swapping out results based on the webmaster preference. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dupsComputedAlternateNames => + list( + GoogleApi.ContentWarehouse.V1.Model.IndexingDupsComputedLocalizedAlternateNamesLocaleEntry.t() + ) + | nil, + :webmasterAlternateNames => + list(GoogleApi.ContentWarehouse.V1.Model.IndexingConverterLocalizedAlternateName.t()) + | nil + } + + field(:dupsComputedAlternateNames, + as: + GoogleApi.ContentWarehouse.V1.Model.IndexingDupsComputedLocalizedAlternateNamesLocaleEntry, + type: :list + ) + + field(:webmasterAlternateNames, + as: GoogleApi.ContentWarehouse.V1.Model.IndexingConverterLocalizedAlternateName, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocLocalizedVariations do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CompositeDocLocalizedVariations.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocLocalizedVariations do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_partial_update_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_partial_update_info.ex new file mode 100644 index 0000000000..750a0be30d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_partial_update_info.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CompositeDocPartialUpdateInfo do + @moduledoc """ + Contains information about the partial updates present in a partial CompositeDoc. + + ## Attributes + + * `goldmineAnnotatorNames` (*type:* `list(String.t)`, *default:* `nil`) - List of goldmine annotator updates present in the enclosing partial cdoc. + * `imagesSignalNames` (*type:* `list(String.t)`, *default:* `nil`) - List of images signal updates present in the enclosing partial cdoc. Images signal name for a images signal is the unique name for the signal according to SignalSpec. + * `lastFullIndexingInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CompositeDocPartialUpdateInfoLastFullIndexingInfo.t)`, *default:* `nil`) - Contains last full indexing information for partial updates. + * `shouldLookupDocjoinsTier` (*type:* `integer()`, *default:* `nil`) - Which tier we should do cdoc lookup to merge partial cdocs. This uses the integer value of indexing.selection.CorpusId. NOT intended for other usage. + * `signalNames` (*type:* `list(String.t)`, *default:* `nil`) - List of signal updates present in the enclosing partial cdoc. Signal name for a signal is unique name for the signal according to SignalSpec. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :goldmineAnnotatorNames => list(String.t()) | nil, + :imagesSignalNames => list(String.t()) | nil, + :lastFullIndexingInfo => + list( + GoogleApi.ContentWarehouse.V1.Model.CompositeDocPartialUpdateInfoLastFullIndexingInfo.t() + ) + | nil, + :shouldLookupDocjoinsTier => integer() | nil, + :signalNames => list(String.t()) | nil + } + + field(:goldmineAnnotatorNames, type: :list) + field(:imagesSignalNames, type: :list) + + field(:lastFullIndexingInfo, + as: GoogleApi.ContentWarehouse.V1.Model.CompositeDocPartialUpdateInfoLastFullIndexingInfo, + type: :list + ) + + field(:shouldLookupDocjoinsTier) + field(:signalNames, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocPartialUpdateInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CompositeDocPartialUpdateInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocPartialUpdateInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_partial_update_info_last_full_indexing_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_partial_update_info_last_full_indexing_info.ex new file mode 100644 index 0000000000..893aea8799 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_partial_update_info_last_full_indexing_info.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CompositeDocPartialUpdateInfoLastFullIndexingInfo do + @moduledoc """ + Last full indexing information for the partial CDoc. + + ## Attributes + + * `corpus` (*type:* `String.t`, *default:* `nil`) - The corpus of last full updates. + * `lastFullIndexingTsMicros` (*type:* `String.t`, *default:* `nil`) - Last full update indexing timestamp in microseconds. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :corpus => String.t() | nil, + :lastFullIndexingTsMicros => String.t() | nil + } + + field(:corpus) + field(:lastFullIndexingTsMicros) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocPartialUpdateInfoLastFullIndexingInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CompositeDocPartialUpdateInfoLastFullIndexingInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocPartialUpdateInfoLastFullIndexingInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_quality_signals.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_quality_signals.ex new file mode 100644 index 0000000000..fd96cf6925 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_quality_signals.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CompositeDocQualitySignals do + @moduledoc """ + Note: This is a misleading name as of 2022/10/14. The field is still set and has meaningful data, but no longer holds quality signals. All the data are freshness-related and they're not particularly sensitive. + + ## Attributes + + * `lastSignificantUpdate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.QualityTimebasedLastSignificantUpdate.t`, *default:* `nil`) - Contains a date used for the "Date Last Modified" toolbelt restrict mode. Note: this date is a combined date and is different from the pure shingle-based signal stored in contentage.last_significant_update field. + * `pagetype` (*type:* `GoogleApi.ContentWarehouse.V1.Model.QualityTimebasedPageType.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lastSignificantUpdate => + GoogleApi.ContentWarehouse.V1.Model.QualityTimebasedLastSignificantUpdate.t() | nil, + :pagetype => GoogleApi.ContentWarehouse.V1.Model.QualityTimebasedPageType.t() | nil + } + + field(:lastSignificantUpdate, + as: GoogleApi.ContentWarehouse.V1.Model.QualityTimebasedLastSignificantUpdate + ) + + field(:pagetype, as: GoogleApi.ContentWarehouse.V1.Model.QualityTimebasedPageType) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocQualitySignals do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CompositeDocQualitySignals.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocQualitySignals do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_robots_info_list.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_robots_info_list.ex new file mode 100644 index 0000000000..624cea825b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/composite_doc_robots_info_list.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CompositeDocRobotsInfoList do + @moduledoc """ + List of robots info parsed for the user-agents other than the default used to crawl this page. + + ## Attributes + + * `newsRobotsInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.IndexingConverterRobotsInfo.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :newsRobotsInfo => + GoogleApi.ContentWarehouse.V1.Model.IndexingConverterRobotsInfo.t() | nil + } + + field(:newsRobotsInfo, as: GoogleApi.ContentWarehouse.V1.Model.IndexingConverterRobotsInfo) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocRobotsInfoList do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CompositeDocRobotsInfoList.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CompositeDocRobotsInfoList do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/compressed_quality_signals.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/compressed_quality_signals.ex new file mode 100644 index 0000000000..aa92f6bcdc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/compressed_quality_signals.ex @@ -0,0 +1,182 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CompressedQualitySignals do + @moduledoc """ + A message containing per doc signals that are compressed and included in Mustang and TeraGoogle. For TeraGoogle, this message is included in perdocdata which means it can be used in preliminary scoring. CAREFUL: For TeraGoogle, this data resides in very limited serving memory (Flash storage) for a huge number of documents. Next id: 42 + + ## Attributes + + * `authorityPromotion` (*type:* `integer()`, *default:* `nil`) - authority promotion: converted from QualityBoost.authority.boost + * `crapsAbsoluteHostSignals` (*type:* `integer()`, *default:* `nil`) - Impressions, unsquashed, host level, not to be used with compressed ratios. Not to be used in Pattern Data. + * `nsrOverrideBid` (*type:* `number()`, *default:* `nil`) - NSR override bid, used in Q* for emergency overrides. + * `siteAuthority` (*type:* `integer()`, *default:* `nil`) - site_authority: converted from quality_nsr.SiteAuthority, applied in Qstar. + * `productReviewPDemoteSite` (*type:* `integer()`, *default:* `nil`) - Product review demotion/promotion confidences. (Times 1000 and floored) + * `crapsNewUrlSignals` (*type:* `String.t`, *default:* `nil`) - For craps_[url|pattern]_signals, please avoid accessing these fields directly, even in minor ways like checking has_craps_*. Instead, please use methods from quality/navboost/craps/craps-lossy-compression.h or talk to dice-team. + * `productReviewPReviewPage` (*type:* `integer()`, *default:* `nil`) - Fields product_review_p_review_page and product_review_p_uhq_page are for promoting/demoting HQ/LQ review pages in NGS. See go/pr-boosts for details. The possibility of a page being a review page. + * `productReviewPDemotePage` (*type:* `integer()`, *default:* `nil`) - + * `pqData` (*type:* `integer()`, *default:* `nil`) - Encoded page-level PQ signals. + * `unauthoritativeScore` (*type:* `integer()`, *default:* `nil`) - Unauthoritative score. Used as one of the web page quality qstar signals. + * `scamness` (*type:* `integer()`, *default:* `nil`) - Scam model score. Used as one of the web page quality qstar signals. Value range from 0 to 1023. + * `pairwiseqScoringData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.PairwiseQScoringData.t`, *default:* `nil`) - PairwiseQ data for QTJ. This field is *not* propagated to shards, but is populated at serving time by go/web-signal-joins. See b/175762140 + * `crapsUnscaledIpPriorBadFraction` (*type:* `integer()`, *default:* `nil`) - + * `experimentalQstarSignal` (*type:* `number()`, *default:* `nil`) - This field is *not* propagated to shards. It is meant to be populated at serving time using one of the versions present in the `experimental_nsr_team_wsj_data` field above (using the `ExperimentalNsrTeamDataOverridesParams` opti to populate it; see http://source/search?q=ExperimentalNsrTeamDataOverridesParams%20file:ascorer.proto). The purpose of this field is to be read by an experimental Q* component, in order to quickly run LEs with new components. See go/0DayLEs for details. + * `vlqNsr` (*type:* `integer()`, *default:* `nil`) - NSR for low-quality videos, converted from quality_nsr.NsrData.vlq_nsr. + * `crapsNewHostSignals` (*type:* `String.t`, *default:* `nil`) - + * `lowQuality` (*type:* `integer()`, *default:* `nil`) - S2V low quality score: converted from quality_nsr.NsrData, applied in Qstar. See quality_nsr::util::ConvertNsrDataToLowQuality. + * `babyPandaV2Demotion` (*type:* `integer()`, *default:* `nil`) - New BabyPanda demotion, applied on top of Panda. This is meant to replace |baby_panda_demotion|. + * `productReviewPPromoteSite` (*type:* `integer()`, *default:* `nil`) - + * `experimentalQstarSiteSignal` (*type:* `number()`, *default:* `nil`) - This field is *not* propagated to shards. It is meant to be populated at serving time using one of the versions present in the `experimental_nsr_team_wsj_data` field above (using the `ExperimentalNsrTeamDataOverridesParams` opti to populate it; see http://source/search?q=ExperimentalNsrTeamDataOverridesParams%20file:ascorer.proto). The purpose of this field is to be read by an experimental Q* component, in order to quickly run LEs with new site components. See go/0DayLEs for details. + * `babyPandaDemotion` (*type:* `integer()`, *default:* `nil`) - baby_panda_demotion: converted from QualityBoost.rendered.boost. + * `productReviewPUhqPage` (*type:* `integer()`, *default:* `nil`) - The possibility of a page being a high quality review page. + * `nsrVersionedData` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.NSRVersionedItem.t)`, *default:* `nil`) - Versioned NSR score to be used in continuous evaluation of the upcoming NSR version and assess quality impact on various slices. + * `experimentalNsrTeamData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.QualityNsrExperimentalNsrTeamData.t`, *default:* `nil`) - This field is *not* propagated to shards, but it's populated at serving time by go/web-signal-joins (see b/207344056). See go/0DayLEs for details. This is only meant to be used during LEs, it should *not* be used for launches. + * `navDemotion` (*type:* `integer()`, *default:* `nil`) - nav_demotion: converted from QualityBoost.nav_demoted.boost. + * `pairwiseqVersionedData` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.PairwiseQVersionedItem.t)`, *default:* `nil`) - Versioned PairwiseQ score to be used in continuous evaluation of the upcoming PairwiseQ versions and assess quality impact on various slices. + * `pqDataProto` (*type:* `GoogleApi.ContentWarehouse.V1.Model.QualityNsrPQData.t`, *default:* `nil`) - Stripped page-level signals, not present in the encoded field 'pq_data'. + * `nsrConfidence` (*type:* `integer()`, *default:* `nil`) - NSR confidence score: converted from quality_nsr.NsrData. + * `exactMatchDomainDemotion` (*type:* `integer()`, *default:* `nil`) - Page quality signals converted from fields in proto QualityBoost in quality/q2/proto/quality-boost.proto. To save indexing space, we convert the float values in [0, 1] to integers in range [0, 1023] (use 10 bits). exact_match_domain_demotion: converted from QualityBoost.emd.boost. + * `serpDemotion` (*type:* `integer()`, *default:* `nil`) - serp demotion: applied in Qstar. + * `experimentalNsrTeamWsjData` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.QualityNsrExperimentalNsrTeamWSJData.t)`, *default:* `nil`) - This field is *not* propagated to shards, but it's populated at serving time by go/web-signal-joins (see b/207344056). See go/0DayLEs for details. This is only meant to be used during LEs, it should *not* be used for launches. + * `productReviewPPromotePage` (*type:* `integer()`, *default:* `nil`) - + * `crapsNewPatternSignals` (*type:* `String.t`, *default:* `nil`) - + * `experimentalQstarDeltaSignal` (*type:* `number()`, *default:* `nil`) - This field is *not* propagated to shards. It is meant to be populated at serving time using one of the versions present in the `experimental_nsr_team_wsj_data` field above (using the `ExperimentalNsrTeamDataOverridesParams` opti to populate it; see http://source/search?q=ExperimentalNsrTeamDataOverridesParams%20file:ascorer.proto). The purpose of this field is to be read by an experimental Q* component, in order to quickly run LEs with new delta components. See go/0DayLEs for details. + * `pandaDemotion` (*type:* `integer()`, *default:* `nil`) - This is the encoding of Panda fields in the proto SiteQualityFeatures in quality/q2/proto/site_quality_features.proto. The encoding/decoding is performed using functions from quality_coati::coati_util. + * `anchorMismatchDemotion` (*type:* `integer()`, *default:* `nil`) - anchor_mismatch_demotion: converted from QualityBoost.mismatched.boost. + * `topicEmbeddingsVersionedData` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.QualityAuthorityTopicEmbeddingsVersionedItem.t)`, *default:* `nil`) - Versioned TopicEmbeddings data to be populated later into superroot / used directly in scorers. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :authorityPromotion => integer() | nil, + :crapsAbsoluteHostSignals => integer() | nil, + :nsrOverrideBid => number() | nil, + :siteAuthority => integer() | nil, + :productReviewPDemoteSite => integer() | nil, + :crapsNewUrlSignals => String.t() | nil, + :productReviewPReviewPage => integer() | nil, + :productReviewPDemotePage => integer() | nil, + :pqData => integer() | nil, + :unauthoritativeScore => integer() | nil, + :scamness => integer() | nil, + :pairwiseqScoringData => + GoogleApi.ContentWarehouse.V1.Model.PairwiseQScoringData.t() | nil, + :crapsUnscaledIpPriorBadFraction => integer() | nil, + :experimentalQstarSignal => number() | nil, + :vlqNsr => integer() | nil, + :crapsNewHostSignals => String.t() | nil, + :lowQuality => integer() | nil, + :babyPandaV2Demotion => integer() | nil, + :productReviewPPromoteSite => integer() | nil, + :experimentalQstarSiteSignal => number() | nil, + :babyPandaDemotion => integer() | nil, + :productReviewPUhqPage => integer() | nil, + :nsrVersionedData => + list(GoogleApi.ContentWarehouse.V1.Model.NSRVersionedItem.t()) | nil, + :experimentalNsrTeamData => + GoogleApi.ContentWarehouse.V1.Model.QualityNsrExperimentalNsrTeamData.t() | nil, + :navDemotion => integer() | nil, + :pairwiseqVersionedData => + list(GoogleApi.ContentWarehouse.V1.Model.PairwiseQVersionedItem.t()) | nil, + :pqDataProto => GoogleApi.ContentWarehouse.V1.Model.QualityNsrPQData.t() | nil, + :nsrConfidence => integer() | nil, + :exactMatchDomainDemotion => integer() | nil, + :serpDemotion => integer() | nil, + :experimentalNsrTeamWsjData => + list(GoogleApi.ContentWarehouse.V1.Model.QualityNsrExperimentalNsrTeamWSJData.t()) + | nil, + :productReviewPPromotePage => integer() | nil, + :crapsNewPatternSignals => String.t() | nil, + :experimentalQstarDeltaSignal => number() | nil, + :pandaDemotion => integer() | nil, + :anchorMismatchDemotion => integer() | nil, + :topicEmbeddingsVersionedData => + list( + GoogleApi.ContentWarehouse.V1.Model.QualityAuthorityTopicEmbeddingsVersionedItem.t() + ) + | nil + } + + field(:authorityPromotion) + field(:crapsAbsoluteHostSignals) + field(:nsrOverrideBid) + field(:siteAuthority) + field(:productReviewPDemoteSite) + field(:crapsNewUrlSignals) + field(:productReviewPReviewPage) + field(:productReviewPDemotePage) + field(:pqData) + field(:unauthoritativeScore) + field(:scamness) + field(:pairwiseqScoringData, as: GoogleApi.ContentWarehouse.V1.Model.PairwiseQScoringData) + field(:crapsUnscaledIpPriorBadFraction) + field(:experimentalQstarSignal) + field(:vlqNsr) + field(:crapsNewHostSignals) + field(:lowQuality) + field(:babyPandaV2Demotion) + field(:productReviewPPromoteSite) + field(:experimentalQstarSiteSignal) + field(:babyPandaDemotion) + field(:productReviewPUhqPage) + field(:nsrVersionedData, as: GoogleApi.ContentWarehouse.V1.Model.NSRVersionedItem, type: :list) + + field(:experimentalNsrTeamData, + as: GoogleApi.ContentWarehouse.V1.Model.QualityNsrExperimentalNsrTeamData + ) + + field(:navDemotion) + + field(:pairwiseqVersionedData, + as: GoogleApi.ContentWarehouse.V1.Model.PairwiseQVersionedItem, + type: :list + ) + + field(:pqDataProto, as: GoogleApi.ContentWarehouse.V1.Model.QualityNsrPQData) + field(:nsrConfidence) + field(:exactMatchDomainDemotion) + field(:serpDemotion) + + field(:experimentalNsrTeamWsjData, + as: GoogleApi.ContentWarehouse.V1.Model.QualityNsrExperimentalNsrTeamWSJData, + type: :list + ) + + field(:productReviewPPromotePage) + field(:crapsNewPatternSignals) + field(:experimentalQstarDeltaSignal) + field(:pandaDemotion) + field(:anchorMismatchDemotion) + + field(:topicEmbeddingsVersionedData, + as: GoogleApi.ContentWarehouse.V1.Model.QualityAuthorityTopicEmbeddingsVersionedItem, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CompressedQualitySignals do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CompressedQualitySignals.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CompressedQualitySignals do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/concepts_concept_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/concepts_concept_id.ex new file mode 100644 index 0000000000..e4e07cbb02 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/concepts_concept_id.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ConceptsConceptId do + @moduledoc """ + + + ## Attributes + + * `conceptId` (*type:* `String.t`, *default:* `nil`) - + * `id` (*type:* `String.t`, *default:* `nil`) - uint64 bring lots of issues, and string a better practice. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conceptId => String.t() | nil, + :id => String.t() | nil + } + + field(:conceptId) + field(:id) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.ConceptsConceptId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ConceptsConceptId.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.ConceptsConceptId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/content_attributions.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/content_attributions.ex new file mode 100644 index 0000000000..ce4749043d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/content_attributions.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ContentAttributions do + @moduledoc """ + The following protobuf is used to store an attribution from one page to (usually) one other page, giving credit for the content. This information is used during ranking to promote the attributed page. This protobuf is copied from a quality_contra::SelectedAttribution. See //quality/contra/authorship/attribution and https://qwiki.corp.google.com/display/Q/ContentTrackingContentAttribution. + + ## Attributes + + * `freshdocsOutgoing` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.ContentAttributionsOutgoingAttribution.t)`, *default:* `nil`) - Selected outgoing attributions extracted on FreshDocs. + * `offlineOutgoing` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.ContentAttributionsOutgoingAttribution.t)`, *default:* `nil`) - Selected outgoing attributions extracted via offline MR jobs. + * `onlineOutgoing` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.ContentAttributionsOutgoingAttribution.t)`, *default:* `nil`) - Selected outgoing attributions extracted online on Alexandria. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :freshdocsOutgoing => + list(GoogleApi.ContentWarehouse.V1.Model.ContentAttributionsOutgoingAttribution.t()) + | nil, + :offlineOutgoing => + list(GoogleApi.ContentWarehouse.V1.Model.ContentAttributionsOutgoingAttribution.t()) + | nil, + :onlineOutgoing => + list(GoogleApi.ContentWarehouse.V1.Model.ContentAttributionsOutgoingAttribution.t()) + | nil + } + + field(:freshdocsOutgoing, + as: GoogleApi.ContentWarehouse.V1.Model.ContentAttributionsOutgoingAttribution, + type: :list + ) + + field(:offlineOutgoing, + as: GoogleApi.ContentWarehouse.V1.Model.ContentAttributionsOutgoingAttribution, + type: :list + ) + + field(:onlineOutgoing, + as: GoogleApi.ContentWarehouse.V1.Model.ContentAttributionsOutgoingAttribution, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.ContentAttributions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ContentAttributions.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.ContentAttributions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/content_attributions_outgoing_attribution.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/content_attributions_outgoing_attribution.ex new file mode 100644 index 0000000000..47cc5342f4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/content_attributions_outgoing_attribution.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ContentAttributionsOutgoingAttribution do + @moduledoc """ + This is a copy of quality_contra::SelectedAttribution::SelectedInfo. The url is converted to docid and other fields are copied directly. + + ## Attributes + + * `bestEvidenceType` (*type:* `String.t`, *default:* `nil`) - + * `docid` (*type:* `String.t`, *default:* `nil`) - + * `properties` (*type:* `integer()`, *default:* `nil`) - + * `usableForClustering` (*type:* `boolean()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bestEvidenceType => String.t() | nil, + :docid => String.t() | nil, + :properties => integer() | nil, + :usableForClustering => boolean() | nil + } + + field(:bestEvidenceType) + field(:docid) + field(:properties) + field(:usableForClustering) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.ContentAttributionsOutgoingAttribution do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ContentAttributionsOutgoingAttribution.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.ContentAttributionsOutgoingAttribution do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/content_aware_crops_indexing.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/content_aware_crops_indexing.ex new file mode 100644 index 0000000000..3918dbf793 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/content_aware_crops_indexing.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ContentAwareCropsIndexing do + @moduledoc """ + + + ## Attributes + + * `mustangBytes` (*type:* `String.t`, *default:* `nil`) - Compact representation for Mustang storage. See image/search/utils/packed_crops.h for details on the packing format. + * `mustangBytesVersion` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :mustangBytes => String.t() | nil, + :mustangBytesVersion => integer() | nil + } + + field(:mustangBytes) + field(:mustangBytesVersion) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.ContentAwareCropsIndexing do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ContentAwareCropsIndexing.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.ContentAwareCropsIndexing do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_lexical_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_lexical_metadata.ex new file mode 100644 index 0000000000..2c0b137783 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_lexical_metadata.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CopleyLexicalMetadata do + @moduledoc """ + Contains lexical metadata for a given reference. For example, this proto will be used to store locale-specific Lexical mids for contact relationships (e.g. /g/11gv0vypg4 is the mid for mother in english and /g/11gmy_gv87 is for mother in french) as an extension to QRefAnnotation::other_metadata, when available. + + ## Attributes + + * `canonicalLexicalMid` (*type:* `String.t`, *default:* `nil`) - Mid for an entity that has lexical data (a LexiconEntry). See https://g3doc.corp.google.com/nlp/generation/g3doc/lexical_data.md for for more information about lexical data. This is the canonical mid for this entity (eg. it would be for "mother" in EN even if user referred to "mom"). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canonicalLexicalMid => String.t() | nil + } + + field(:canonicalLexicalMid) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CopleyLexicalMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CopleyLexicalMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CopleyLexicalMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_personal_reference.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_personal_reference.ex new file mode 100644 index 0000000000..c608feb2ff --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_personal_reference.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CopleyPersonalReference do + @moduledoc """ + Represents a reference made by a user that refers to some personal entity. + + ## Attributes + + * `personalReferenceType` (*type:* `String.t`, *default:* `nil`) - The manner in which the entity was referenced (e.g. "my hotel", "the airport"). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :personalReferenceType => String.t() | nil + } + + field(:personalReferenceType) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CopleyPersonalReference do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CopleyPersonalReference.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CopleyPersonalReference do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_personal_reference_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_personal_reference_metadata.ex new file mode 100644 index 0000000000..5c69b29e8f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_personal_reference_metadata.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CopleyPersonalReferenceMetadata do + @moduledoc """ + General message used to store metadata about references to personal entities, even if those entities cannot be resolved. + + ## Attributes + + * `referenceScore` (*type:* `number()`, *default:* `nil`) - The strength of the personal reference. For example "my flight" may receive a high reference_score, whereas "the airport" may receive a low score. + * `references` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CopleyPersonalReference.t)`, *default:* `nil`) - A list of all references made. Empty if no personal references exist. Multiple references can be present when multiple references were made in a single query, or the type of reference was ambiguous. + * `subreferenceMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceMetadata.t`, *default:* `nil`) - Subreference metadata for all compound references on this span. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :referenceScore => number() | nil, + :references => + list(GoogleApi.ContentWarehouse.V1.Model.CopleyPersonalReference.t()) | nil, + :subreferenceMetadata => + GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceMetadata.t() | nil + } + + field(:referenceScore) + field(:references, as: GoogleApi.ContentWarehouse.V1.Model.CopleyPersonalReference, type: :list) + field(:subreferenceMetadata, as: GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceMetadata) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CopleyPersonalReferenceMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CopleyPersonalReferenceMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CopleyPersonalReferenceMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_source_type_list.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_source_type_list.ex new file mode 100644 index 0000000000..af981e2b74 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_source_type_list.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CopleySourceTypeList do + @moduledoc """ + + + ## Attributes + + * `sourceTypeMetadata` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CopleySourceTypeMetadata.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :sourceTypeMetadata => + list(GoogleApi.ContentWarehouse.V1.Model.CopleySourceTypeMetadata.t()) | nil + } + + field(:sourceTypeMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.CopleySourceTypeMetadata, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CopleySourceTypeList do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CopleySourceTypeList.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CopleySourceTypeList do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_source_type_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_source_type_metadata.ex new file mode 100644 index 0000000000..e214310f94 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_source_type_metadata.ex @@ -0,0 +1,81 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CopleySourceTypeMetadata do + @moduledoc """ + Contains the source and type information related to a personal entity, for example if it's an hotel or a restaurant (type) and if it comes from gmail, calendar, etc. (source). Next ID: 13 + + ## Attributes + + * `contactAnnotationId` (*type:* `String.t`, *default:* `nil`) - Annotation ID of a contact annotation, e.g. a relationship set via Assistant. This ID is generated by People Write Server. It is used to delete Contact Annotations via People API. + * `displayableName` (*type:* `String.t`, *default:* `nil`) - + * `emailIdentifier` (*type:* `String.t`, *default:* `nil`) - Only used if personal_data_provenance == PERSONAL_SOURCE_GMAIL. Used to create a link to the source email in the form: mail.google.com/mail/u/0/?extsrc=sync&client=h&plid={email_identifier} + * `eventId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.EventIdMessage.t`, *default:* `nil`) - Populated for some footprints data sources; uniquely identifies the footprint that generated the personal data that this provenance is attached to. + * `localDiscoverySettingsMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.PersonalizationSettingsApiProtoLocalDiscoveryLocalDiscoverySettingsMetadata.t`, *default:* `nil`) - + * `personalDataProvenance` (*type:* `String.t`, *default:* `nil`) - + * `personalDataType` (*type:* `String.t`, *default:* `nil`) - + * `provenanceCategory` (*type:* `list(String.t)`, *default:* `nil`) - + * `sensitivity` (*type:* `GoogleApi.ContentWarehouse.V1.Model.KnowledgeAnswersSensitivitySensitivity.t`, *default:* `nil`) - Sensitivity applying to this copley annotation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contactAnnotationId => String.t() | nil, + :displayableName => String.t() | nil, + :emailIdentifier => String.t() | nil, + :eventId => GoogleApi.ContentWarehouse.V1.Model.EventIdMessage.t() | nil, + :localDiscoverySettingsMetadata => + GoogleApi.ContentWarehouse.V1.Model.PersonalizationSettingsApiProtoLocalDiscoveryLocalDiscoverySettingsMetadata.t() + | nil, + :personalDataProvenance => String.t() | nil, + :personalDataType => String.t() | nil, + :provenanceCategory => list(String.t()) | nil, + :sensitivity => + GoogleApi.ContentWarehouse.V1.Model.KnowledgeAnswersSensitivitySensitivity.t() | nil + } + + field(:contactAnnotationId) + field(:displayableName) + field(:emailIdentifier) + field(:eventId, as: GoogleApi.ContentWarehouse.V1.Model.EventIdMessage) + + field(:localDiscoverySettingsMetadata, + as: + GoogleApi.ContentWarehouse.V1.Model.PersonalizationSettingsApiProtoLocalDiscoveryLocalDiscoverySettingsMetadata + ) + + field(:personalDataProvenance) + field(:personalDataType) + field(:provenanceCategory, type: :list) + + field(:sensitivity, + as: GoogleApi.ContentWarehouse.V1.Model.KnowledgeAnswersSensitivitySensitivity + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CopleySourceTypeMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CopleySourceTypeMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CopleySourceTypeMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_subreference_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_subreference_metadata.ex new file mode 100644 index 0000000000..eae2f5f110 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_subreference_metadata.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceMetadata do + @moduledoc """ + Represents the most compound resolved entities and most nested unresolved references for a span. Useful for punting. + + ## Attributes + + * `mostCompoundResolvedEntities` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceResolution.t)`, *default:* `nil`) - Resolved entities are sorted from highest resolution score to lowest. + * `mostNestedUnresolvedReference` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceReference.t`, *default:* `nil`) - This is a merged representation of the compound reference having the most_compound_resolved_entities as an argument. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :mostCompoundResolvedEntities => + list(GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceResolution.t()) | nil, + :mostNestedUnresolvedReference => + GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceReference.t() | nil + } + + field(:mostCompoundResolvedEntities, + as: GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceResolution, + type: :list + ) + + field(:mostNestedUnresolvedReference, + as: GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceReference + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_subreference_reference.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_subreference_reference.ex new file mode 100644 index 0000000000..492f9ceb62 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_subreference_reference.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceReference do + @moduledoc """ + Represents a reference that may be part of a larger compound reference. For example, "my brother's birthday" will have a subreference that may have references for "my brother". + + ## Attributes + + * `personalReferenceTypes` (*type:* `list(String.t)`, *default:* `nil`) - Type of reference. There may be multiple for a single reference (e.g. relationship and contact). + * `referenceScore` (*type:* `number()`, *default:* `nil`) - Highest reference score for any references merged in this span. + * `relationshipLexicalInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CopleyLexicalMetadata.t`, *default:* `nil`) - Only set for unresolved relationship references and can be used to get the canonical word for the relationship (e.g. "mother") in TTS. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :personalReferenceTypes => list(String.t()) | nil, + :referenceScore => number() | nil, + :relationshipLexicalInfo => + GoogleApi.ContentWarehouse.V1.Model.CopleyLexicalMetadata.t() | nil + } + + field(:personalReferenceTypes, type: :list) + field(:referenceScore) + field(:relationshipLexicalInfo, as: GoogleApi.ContentWarehouse.V1.Model.CopleyLexicalMetadata) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceReference do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceReference.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceReference do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_subreference_resolution.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_subreference_resolution.ex new file mode 100644 index 0000000000..f41de4b9dd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/copley_subreference_resolution.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceResolution do + @moduledoc """ + Represents a resolution that may be part of a larger compound reference. For example, "my brother's birthday" will have a subreference that may have resolutions for "my brother". + + ## Attributes + + * `mid` (*type:* `String.t`, *default:* `nil`) - Can be used with PKG Service for looking up metadata about this entity at fulfillment/GenX time. + * `name` (*type:* `String.t`, *default:* `nil`) - Name of the entity represented by this resolution. + * `resolutionScore` (*type:* `number()`, *default:* `nil`) - A resolution score of 0 indicates that it did not resolve to a real entity. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :mid => String.t() | nil, + :name => String.t() | nil, + :resolutionScore => number() | nil + } + + field(:mid) + field(:name) + field(:resolutionScore) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceResolution do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceResolution.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CopleySubreferenceResolution do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/corpus_selection_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/corpus_selection_info.ex new file mode 100644 index 0000000000..f94e64e237 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/corpus_selection_info.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CorpusSelectionInfo do + @moduledoc """ + + + ## Attributes + + * `corpus` (*type:* `String.t`, *default:* `nil`) - + * `corpusScore` (*type:* `number()`, *default:* `nil`) - Corpus specific score for an image + * `isSelectedForIndexing` (*type:* `boolean()`, *default:* `nil`) - Whether an image was selected for indexing. + * `referrerDocid` (*type:* `list(String.t)`, *default:* `nil`) - Set of referrers indexed with the image. + * `referrerUrls` (*type:* `list(String.t)`, *default:* `nil`) - Set of referrer urls indexed with the image. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :corpus => String.t() | nil, + :corpusScore => number() | nil, + :isSelectedForIndexing => boolean() | nil, + :referrerDocid => list(String.t()) | nil, + :referrerUrls => list(String.t()) | nil + } + + field(:corpus) + field(:corpusScore) + field(:isSelectedForIndexing) + field(:referrerDocid, type: :list) + field(:referrerUrls, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CorpusSelectionInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CorpusSelectionInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CorpusSelectionInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_click_distribution.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_click_distribution.ex new file mode 100644 index 0000000000..fa8c5e8f90 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_click_distribution.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CountryClickDistribution do + @moduledoc """ + + + ## Attributes + + * `confidence` (*type:* `float()`, *default:* `nil`) - To store confidence in the distribution in cases when total is not set. + * `item` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CountryClickDistributionItem.t)`, *default:* `nil`) - + * `total` (*type:* `float()`, *default:* `nil`) - To store total clicks on this page/domain. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidence => float() | nil, + :item => + list(GoogleApi.ContentWarehouse.V1.Model.CountryClickDistributionItem.t()) | nil, + :total => float() | nil + } + + field(:confidence) + field(:item, as: GoogleApi.ContentWarehouse.V1.Model.CountryClickDistributionItem, type: :list) + field(:total) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CountryClickDistribution do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CountryClickDistribution.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CountryClickDistribution do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_click_distribution_item.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_click_distribution_item.ex new file mode 100644 index 0000000000..8b1de03339 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_click_distribution_item.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CountryClickDistributionItem do + @moduledoc """ + + + ## Attributes + + * `doubleValue` (*type:* `float()`, *default:* `nil`) - + * `name` (*type:* `String.t`, *default:* `nil`) - + * `value` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :doubleValue => float() | nil, + :name => String.t() | nil, + :value => integer() | nil + } + + field(:doubleValue) + field(:name) + field(:value) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CountryClickDistributionItem do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CountryClickDistributionItem.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CountryClickDistributionItem do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_country_attachment.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_country_attachment.ex new file mode 100644 index 0000000000..ed1e4d76a1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_country_attachment.ex @@ -0,0 +1,170 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CountryCountryAttachment do + @moduledoc """ + If you add new fields to this message, do not use any tag value less than the "Next free tag" below. The lower tag values might be missing in this file, but they were used in past for some field, so cannot be used again. Next free tag: 44 + + ## Attributes + + * `clickDistribution` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CountryClickDistribution.t`, *default:* `nil`) - Store weighted click distribution for page level country-id classification. + * `isValidForCountryRestrict` (*type:* `boolean()`, *default:* `nil`) - Set to true if the local_countries field can be used for country restricts as well. + * `fromSgDomains` (*type:* `boolean()`, *default:* `nil`) - + * `metroLocationId` (*type:* `list(String.t)`, *default:* `nil`) - Metro level data. metro_location_id stores geotokens for metro restricts. + * `documentLocationSource` (*type:* `String.t`, *default:* `nil`) - Specifies the origin of `geo_locations`. Right now, it can either come from deprecated Docloc system or the new Brainloc system when Docloc doesn't have sufficient evidence. + * `metroIdList` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CountryMetroNBFeature.t)`, *default:* `nil`) - Metro locations: list of NavBoost feature V2 associated with a doc, along with the enclosing province. Metro locations with new tags. + * `fromRestricts` (*type:* `boolean()`, *default:* `nil`) - + * `geoLocations` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CountryGeoLocations.t`, *default:* `nil`) - New MetroID: Now called GeoLocations since the locations could be sublocalities, cities or states. GeoLocations are always more fine grained than country. TODO (jayeshv): Once new MetroID/GeoLocations is launched everywhere, deleted old MetroID related fields. + * `sitename` (*type:* `String.t`, *default:* `nil`) - Domain name of keys in filtering metro reducer class, used only by the intermediate mapreduces to produce filtered data. + * `debug` (*type:* `String.t`, *default:* `nil`) - A non critical field to store debug info for a country attachment. Used in experiments and for debugging. + * `fromUgc` (*type:* `boolean()`, *default:* `nil`) - + * `countryidFromUgc` (*type:* `boolean()`, *default:* `nil`) - Is true if the country attachment was computed through the UGC pipeline. + * `fromWmx` (*type:* `boolean()`, *default:* `nil`) - + * `fromTld` (*type:* `boolean()`, *default:* `nil`) - + * `global` (*type:* `boolean()`, *default:* `nil`) - + * `salientCountrySet` (*type:* `GoogleApi.ContentWarehouse.V1.Model.QualitySalientCountriesSalientCountrySet.t`, *default:* `nil`) - + * `localCountryCodes` (*type:* `list(integer())`, *default:* `nil`) - Fields that actually store the country id in docjoins. The format of this data is defined in //i18n/identifiers/stableinternalregionconverter.cc. Converter defined there can be used to convert it to RegionCode format. + * `urlPatternBasedCountry` (*type:* `integer()`, *default:* `nil`) - + * `existNextLevel` (*type:* `boolean()`, *default:* `nil`) - + * `superGlobal` (*type:* `boolean()`, *default:* `nil`) - Super global pages get lesser demotion than global pages. A document can only be either global or super_global but not both. + * `provinceGeotokenList` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CountryProvinceGeotoken.t)`, *default:* `nil`) - + * `wmxCountry` (*type:* `String.t`, *default:* `nil`) - Country specified for a web-site through webmaster console. + * `userVisibleLocalCountry` (*type:* `integer()`, *default:* `nil`) - This is the country id we show to users on the result page. This is kept different from country demotion country id because we dont want to expose our backoff and url based detection algorithm - also we want to be ultra conservative in showing this. + * `salientCountries` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CountrySalientCountry.t)`, *default:* `nil`) - [Experimental]: Top salient countries for a doc. If a country can not be found on this field it can be considered that this doc is not relevant to it. + * `userVisibleCountryFromLogs` (*type:* `String.t`, *default:* `nil`) - This is used to store the visible country id computed from logs data + * `restrictCountries` (*type:* `list(String.t)`, *default:* `nil`) - List of two-letter(lower-case) countrycodes(e.g. us) valid for restricts. Typically cloned out of local_countries if is_valid_for_country_restrict is set to true. + * `fromLanguageFallback` (*type:* `boolean()`, *default:* `nil`) - Booleans to keep track of where the country-id of the page came from. These are used for debugging and/or unittests, and cleared in production. + * `fromUrlPattern` (*type:* `boolean()`, *default:* `nil`) - + * `metroNavboost` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CountryMetroNBFeature.t)`, *default:* `nil`) - Metro navboost: list of (NavBoost feature V2, navboost float) pairs. + * `relatedCountries` (*type:* `list(String.t)`, *default:* `nil`) - two-letter(lower-case) countrycode, e.g. us countries that is related to, but not local to + * `debugSourceUrl` (*type:* `list(String.t)`, *default:* `nil`) - Set to the signal source URLs when merging country signals in Alexandria during sitemoves. Essentially if sites A and B move to C, and we merge A and B's signal to C, in the countryattachment signal C will have URL A and B as source_url. Only used for debugging and it doesn't show up in docjoins. + * `localCountries` (*type:* `list(String.t)`, *default:* `nil`) - two-letter(lower-case) countrycode, e.g. us countries that is local to + * `relatedCountryCodes` (*type:* `list(integer())`, *default:* `nil`) - + * `weightAboveIdealForLocalness` (*type:* `float()`, *default:* `nil`) - If result is global, store weight above ideal, as a confidence signal. Used in query localness, cleared in production CountryAttachment. + * `urlPatternBasedLanguage` (*type:* `integer()`, *default:* `nil`) - Language and country extracted using the URL pattern map. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clickDistribution => + GoogleApi.ContentWarehouse.V1.Model.CountryClickDistribution.t() | nil, + :isValidForCountryRestrict => boolean() | nil, + :fromSgDomains => boolean() | nil, + :metroLocationId => list(String.t()) | nil, + :documentLocationSource => String.t() | nil, + :metroIdList => + list(GoogleApi.ContentWarehouse.V1.Model.CountryMetroNBFeature.t()) | nil, + :fromRestricts => boolean() | nil, + :geoLocations => GoogleApi.ContentWarehouse.V1.Model.CountryGeoLocations.t() | nil, + :sitename => String.t() | nil, + :debug => String.t() | nil, + :fromUgc => boolean() | nil, + :countryidFromUgc => boolean() | nil, + :fromWmx => boolean() | nil, + :fromTld => boolean() | nil, + :global => boolean() | nil, + :salientCountrySet => + GoogleApi.ContentWarehouse.V1.Model.QualitySalientCountriesSalientCountrySet.t() | nil, + :localCountryCodes => list(integer()) | nil, + :urlPatternBasedCountry => integer() | nil, + :existNextLevel => boolean() | nil, + :superGlobal => boolean() | nil, + :provinceGeotokenList => + list(GoogleApi.ContentWarehouse.V1.Model.CountryProvinceGeotoken.t()) | nil, + :wmxCountry => String.t() | nil, + :userVisibleLocalCountry => integer() | nil, + :salientCountries => + list(GoogleApi.ContentWarehouse.V1.Model.CountrySalientCountry.t()) | nil, + :userVisibleCountryFromLogs => String.t() | nil, + :restrictCountries => list(String.t()) | nil, + :fromLanguageFallback => boolean() | nil, + :fromUrlPattern => boolean() | nil, + :metroNavboost => + list(GoogleApi.ContentWarehouse.V1.Model.CountryMetroNBFeature.t()) | nil, + :relatedCountries => list(String.t()) | nil, + :debugSourceUrl => list(String.t()) | nil, + :localCountries => list(String.t()) | nil, + :relatedCountryCodes => list(integer()) | nil, + :weightAboveIdealForLocalness => float() | nil, + :urlPatternBasedLanguage => integer() | nil + } + + field(:clickDistribution, as: GoogleApi.ContentWarehouse.V1.Model.CountryClickDistribution) + field(:isValidForCountryRestrict) + field(:fromSgDomains) + field(:metroLocationId, type: :list) + field(:documentLocationSource) + field(:metroIdList, as: GoogleApi.ContentWarehouse.V1.Model.CountryMetroNBFeature, type: :list) + field(:fromRestricts) + field(:geoLocations, as: GoogleApi.ContentWarehouse.V1.Model.CountryGeoLocations) + field(:sitename) + field(:debug) + field(:fromUgc) + field(:countryidFromUgc) + field(:fromWmx) + field(:fromTld) + field(:global) + + field(:salientCountrySet, + as: GoogleApi.ContentWarehouse.V1.Model.QualitySalientCountriesSalientCountrySet + ) + + field(:localCountryCodes, type: :list) + field(:urlPatternBasedCountry) + field(:existNextLevel) + field(:superGlobal) + + field(:provinceGeotokenList, + as: GoogleApi.ContentWarehouse.V1.Model.CountryProvinceGeotoken, + type: :list + ) + + field(:wmxCountry) + field(:userVisibleLocalCountry) + + field(:salientCountries, + as: GoogleApi.ContentWarehouse.V1.Model.CountrySalientCountry, + type: :list + ) + + field(:userVisibleCountryFromLogs) + field(:restrictCountries, type: :list) + field(:fromLanguageFallback) + field(:fromUrlPattern) + + field(:metroNavboost, as: GoogleApi.ContentWarehouse.V1.Model.CountryMetroNBFeature, type: :list) + + field(:relatedCountries, type: :list) + field(:debugSourceUrl, type: :list) + field(:localCountries, type: :list) + field(:relatedCountryCodes, type: :list) + field(:weightAboveIdealForLocalness) + field(:urlPatternBasedLanguage) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CountryCountryAttachment do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CountryCountryAttachment.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CountryCountryAttachment do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_geo_location.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_geo_location.ex new file mode 100644 index 0000000000..d5a46ea85a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_geo_location.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CountryGeoLocation do + @moduledoc """ + Stores one location and all meta-data associated with that location. + + ## Attributes + + * `clickRadius50Percent` (*type:* `integer()`, *default:* `nil`) - The radius (in miles) around the assigned location that the document gets 50% of its clicks. + * `confidence` (*type:* `number()`, *default:* `nil`) - Confidence on the location. Ranges in [0.0, 1.0]. Cleared during index creation. + * `confidencePercent` (*type:* `integer()`, *default:* `nil`) - Confidence mapped to [0, 100]. Converted to integer for efficient storage. Populated during index creation. + * `internalId` (*type:* `integer()`, *default:* `nil`) - Used for compressed docloc data. In compressed data, instead of location_info, only an integer ID for that LocationInfo is stored. A separate lookup table is used to get full LocationInfo from the internal ID. + * `locationInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CountryLocationInfo.t`, *default:* `nil`) - + * `propagatedFromASubpage` (*type:* `boolean()`, *default:* `nil`) - True if this location is assigned to one of the subpages, and not to the page itself. If the total number of locations assigned to all the subpages of a page is small (usually up to 5), then that page also gets assigned those locations, and this flag is set for those locations. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clickRadius50Percent => integer() | nil, + :confidence => number() | nil, + :confidencePercent => integer() | nil, + :internalId => integer() | nil, + :locationInfo => GoogleApi.ContentWarehouse.V1.Model.CountryLocationInfo.t() | nil, + :propagatedFromASubpage => boolean() | nil + } + + field(:clickRadius50Percent) + field(:confidence) + field(:confidencePercent) + field(:internalId) + field(:locationInfo, as: GoogleApi.ContentWarehouse.V1.Model.CountryLocationInfo) + field(:propagatedFromASubpage) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CountryGeoLocation do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CountryGeoLocation.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CountryGeoLocation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_geo_locations.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_geo_locations.ex new file mode 100644 index 0000000000..e2adfebbea --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_geo_locations.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CountryGeoLocations do + @moduledoc """ + List of locations assigned to a document. + + ## Attributes + + * `geoLocation` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CountryGeoLocation.t)`, *default:* `nil`) - + * `isNonLocationSpecific` (*type:* `boolean()`, *default:* `nil`) - This will be set to true for documents which receive several clicks but are not assigned any location because the click distribution is flat. Typical examples are global sites like facebook.com, chains like walmart.com, informational sites like wikipedia.org etc. This flag is not propagated to deeper pages since this signal is meant to indicate that a website or a part of website is conclusively non-local, so propagating this information to deeper pages does not make sense. If this flag is set, then the only possible geo_location will be the ones which are propagated_from_a_subpage. + * `propagationDepthFromParent` (*type:* `integer()`, *default:* `nil`) - Depth of the URL from it's nearest parent in GeoLocation data. Webpages inherhit locations from their parent pages. For example, if foo.com/a is assigned location L1, and foo.com/a/b is not assigned any location, then http://www.foo.com/a/b inherits location L1 from it's nearest parent foo.com/a in GeoLocation data. This attribute is the distance from the nearest parent which is present in GeoLocation data. In this particular case, it will be 1. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :geoLocation => list(GoogleApi.ContentWarehouse.V1.Model.CountryGeoLocation.t()) | nil, + :isNonLocationSpecific => boolean() | nil, + :propagationDepthFromParent => integer() | nil + } + + field(:geoLocation, as: GoogleApi.ContentWarehouse.V1.Model.CountryGeoLocation, type: :list) + field(:isNonLocationSpecific) + field(:propagationDepthFromParent) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CountryGeoLocations do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CountryGeoLocations.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CountryGeoLocations do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_location_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_location_info.ex new file mode 100644 index 0000000000..213a977a49 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_location_info.ex @@ -0,0 +1,74 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CountryLocationInfo do + @moduledoc """ + This represents one location. + + ## Attributes + + * `center` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t`, *default:* `nil`) - The latitude and longitude of the conceptual center of the location. For cities, this would be the center of the downtown, or maybe the location of city hall. For states and countries it might be the capital city. But there are no guarantees and this may be any random point inside the location. + * `city` (*type:* `String.t`, *default:* `nil`) - + * `country` (*type:* `String.t`, *default:* `nil`) - Human readable name hierarchy. Only the relevant fields will be present. For example for city GeoLocations, sub_locality field will not be present. Cleared during index creation. + * `county` (*type:* `String.t`, *default:* `nil`) - + * `enclosingStateFeatureId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - Oyster feature ID of the enclosing state. Cleared during index creation. + * `featureId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - Oyster feature ID of the location. Cleared during index creation. + * `state` (*type:* `String.t`, *default:* `nil`) - + * `stateIdFprint` (*type:* `integer()`, *default:* `nil`) - 32 bit fingerprint of the feature id of the state of this location. For cities and sub-localities it will be the enclosing state. For state locations, it will be fingerprint of the feture-id of the location itself. Populated during index creation. + * `subLocality` (*type:* `String.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - Type of the location (sub-locality, city, state etc). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :center => GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t() | nil, + :city => String.t() | nil, + :country => String.t() | nil, + :county => String.t() | nil, + :enclosingStateFeatureId => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :featureId => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :state => String.t() | nil, + :stateIdFprint => integer() | nil, + :subLocality => String.t() | nil, + :type => String.t() | nil + } + + field(:center, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto) + field(:city) + field(:country) + field(:county) + field(:enclosingStateFeatureId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:featureId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:state) + field(:stateIdFprint) + field(:subLocality) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CountryLocationInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CountryLocationInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CountryLocationInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_metro_nb_feature.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_metro_nb_feature.ex new file mode 100644 index 0000000000..268e2a1dc3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_metro_nb_feature.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CountryMetroNBFeature do + @moduledoc """ + A metro feature, keyed by NavBoost feature id V2. This can be a metro id, a boost, or extended in the future to add probabilities or weights. + + ## Attributes + + * `enclosingProvinceGeotoken` (*type:* `integer()`, *default:* `nil`) - The enclosing_province_geotoken is a 32 bit fingerprint of the state encosing the (metro) id. MetroId's can span multiple states. Enclosing geotoken is filled in with the state name for disambiguation. ProvinceGeotoken field is different as it indicates an "interest". Format: 32 bit fingerprint(__state__country). + * `id` (*type:* `integer()`, *default:* `nil`) - A 32 bit navboost v2 feature id encoding (country, language, metro). NavBoosterUtils class (google3/quality/navboost/nav_booster_utils.h) provides functions to decode this feature. + * `navboost` (*type:* `number()`, *default:* `nil`) - This is the multiplier to apply to the result for this locale & query. NOTE: This is for serving purposes only and should not be populated in the index. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enclosingProvinceGeotoken => integer() | nil, + :id => integer() | nil, + :navboost => number() | nil + } + + field(:enclosingProvinceGeotoken) + field(:id) + field(:navboost) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CountryMetroNBFeature do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CountryMetroNBFeature.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CountryMetroNBFeature do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_province_geotoken.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_province_geotoken.ex new file mode 100644 index 0000000000..5f68a03cc4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_province_geotoken.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CountryProvinceGeotoken do + @moduledoc """ + A 32 bit fingerprint of a state level geotoken. The geotoken is in the following format: __state__country. These indicate a page is of interest to these states/regions of a country. The use of message is to enable easy additions of probabilities or weights per metro id in the future. + + ## Attributes + + * `geotoken` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :geotoken => integer() | nil + } + + field(:geotoken) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CountryProvinceGeotoken do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CountryProvinceGeotoken.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CountryProvinceGeotoken do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_salient_country.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_salient_country.ex new file mode 100644 index 0000000000..49eeb52d5f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/country_salient_country.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CountrySalientCountry do + @moduledoc """ + Salient Countries is an estimated probability (salience) of a doc to be relevant to a country. On this message, countries are represented as int32 (the format of this data is defined in i18n/identifiers/stableinternalregionconverter.cc). Salience is a value in range [0.0 - 1.0] in which 1.0 represents a high likelihood to be relevant to the country + + ## Attributes + + * `compressedSalience` (*type:* `integer()`, *default:* `nil`) - + * `countryCode` (*type:* `integer()`, *default:* `nil`) - + * `salience` (*type:* `number()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :compressedSalience => integer() | nil, + :countryCode => integer() | nil, + :salience => number() | nil + } + + field(:compressedSalience) + field(:countryCode) + field(:salience) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CountrySalientCountry do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CountrySalientCountry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CountrySalientCountry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_multiple_component_distribution.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_multiple_component_distribution.ex new file mode 100644 index 0000000000..81169b2ffa --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_multiple_component_distribution.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateMultipleComponentDistribution do + @moduledoc """ + Proto contains parameters for a multiple component distributions, where each component has non-negative weight and the sum of component weights is 1. + + ## Attributes + + * `components` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateSingleComponentDistribution.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :components => + list( + GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateSingleComponentDistribution.t() + ) + | nil + } + + field(:components, + as: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateSingleComponentDistribution, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateMultipleComponentDistribution do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateMultipleComponentDistribution.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateMultipleComponentDistribution do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_single_component_distribution.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_single_component_distribution.ex new file mode 100644 index 0000000000..469a10f1ee --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_single_component_distribution.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateSingleComponentDistribution do + @moduledoc """ + Proto contains parameters of a single component distribution. + + ## Attributes + + * `logScaling` (*type:* `number()`, *default:* `nil`) - Scaling factor to ensure the approximated posterior to have the same scale as the product of prior and likelihood. This value is used to compute posterior weights. Uses log scale to provide a wider range. This field is for internal use only. + * `type` (*type:* `String.t`, *default:* `nil`) - The type indicates the type of the distribution. + * `weight` (*type:* `number()`, *default:* `nil`) - The weight is only used in multiple component scenarios. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :logScaling => number() | nil, + :type => String.t() | nil, + :weight => number() | nil + } + + field(:logScaling) + field(:type) + field(:weight) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateSingleComponentDistribution do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateSingleComponentDistribution.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateSingleComponentDistribution do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_url_change.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_url_change.ex new file mode 100644 index 0000000000..7e3a5e4c1b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_url_change.ex @@ -0,0 +1,84 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlChange do + @moduledoc """ + NEXT_TAG: 13 + + ## Attributes + + * `additionalChangesMerged` (*type:* `integer()`, *default:* `nil`) - Duplicate UrlChanges crawled within a specified time range will be merged together. UrlChanges are considered duplicates if the simhash, simhash_is_trusted, simhash_v2, simhash_v2_is_trusted, and shingle_simhash are the same. additional_changes_merged indiciates the number of duplicate UrlChanges merged into this UrlChange. + * `fractionalTileChange` (*type:* `float()`, *default:* `nil`) - Deprecated fields. The fraction of tiles (0 to 1) that changed. + * `interval` (*type:* `integer()`, *default:* `nil`) - The length in seconds of the change. + * `offDomainLinksChange` (*type:* `boolean()`, *default:* `nil`) - Whether the content of the off-domain links changed. + * `offDomainLinksCount` (*type:* `integer()`, *default:* `nil`) - The new count of off-domain links, if they changed. + * `onDomainLinksCount` (*type:* `integer()`, *default:* `nil`) - The new count of on-domain links, if the count changed. + * `onDomainLinksCountChange` (*type:* `boolean()`, *default:* `nil`) - Whether the number of on-domain links changed. + * `shingleSimhash` (*type:* `GoogleApi.ContentWarehouse.V1.Model.IndexingConverterShingleFingerprint.t`, *default:* `nil`) - The old simhash value obtained from shingles. + * `simhash` (*type:* `String.t`, *default:* `nil`) - The simhash-v1 value. Use of simhash-v1 is deprecated, and newer UrlChange should only contain simhash-v2. During this transition period, UrlChange can contain either simhash or simhash_v2. It is possible that previous UrlChange only contain simhash-v1 and the next UrlChange only contain simhash-v2. In this case, we skip that interval in our changerate computation. [go/changerate-simhash-v2-migration] + * `simhashIsTrusted` (*type:* `boolean()`, *default:* `nil`) - Whether the simhash-v1 should be trusted. + * `simhashV2` (*type:* `String.t`, *default:* `nil`) - The simhash-v2 value. + * `simhashV2IsTrusted` (*type:* `boolean()`, *default:* `nil`) - Whether the simhash-v2 value should be trusted. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :additionalChangesMerged => integer() | nil, + :fractionalTileChange => float() | nil, + :interval => integer() | nil, + :offDomainLinksChange => boolean() | nil, + :offDomainLinksCount => integer() | nil, + :onDomainLinksCount => integer() | nil, + :onDomainLinksCountChange => boolean() | nil, + :shingleSimhash => + GoogleApi.ContentWarehouse.V1.Model.IndexingConverterShingleFingerprint.t() | nil, + :simhash => String.t() | nil, + :simhashIsTrusted => boolean() | nil, + :simhashV2 => String.t() | nil, + :simhashV2IsTrusted => boolean() | nil + } + + field(:additionalChangesMerged) + field(:fractionalTileChange) + field(:interval) + field(:offDomainLinksChange) + field(:offDomainLinksCount) + field(:onDomainLinksCount) + field(:onDomainLinksCountChange) + + field(:shingleSimhash, + as: GoogleApi.ContentWarehouse.V1.Model.IndexingConverterShingleFingerprint + ) + + field(:simhash) + field(:simhashIsTrusted) + field(:simhashV2) + field(:simhashV2IsTrusted) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlChange do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlChange.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlChange do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_url_changerate.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_url_changerate.ex new file mode 100644 index 0000000000..7c73baf1d5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_url_changerate.ex @@ -0,0 +1,111 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlChangerate do + @moduledoc """ + The next available field number is 22. To access the best estimate of change period, please use GetChangePeriod in predict-change-rate.h to select between this and other change period estimates below. + + ## Attributes + + * `approximatedPosterior` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateMultipleComponentDistribution.t`, *default:* `nil`) - The approximated posterior distribution. + * `averageChangeSignificance` (*type:* `float()`, *default:* `nil`) - The "significance" of the average change we saw of this document (from 0 to 1). Influenced by content changes. This can be used for prioritizing the crawl (higher significance first). + * `changeperiod` (*type:* `integer()`, *default:* `nil`) - //////////////////////////////////////////////////////////////////////////// The classic changerate estimation. //////////////////////////////////////////////////////////////////////////// The classic estimate of change period (in seconds). It is computed by inserted a "fake" change and no-change interval as a prior distribution. This field is generally not used and should NOT be accessed directly. See above for correct method for determining the change period estimate. + * `confidence` (*type:* `float()`, *default:* `nil`) - The confidence (between 0 and 1) in the changeperiod guess. + * `globalBasedChangePeriod` (*type:* `integer()`, *default:* `nil`) - //////////////////////////////////////////////////////////////////////////// The changerate estimation based on the global prior. //////////////////////////////////////////////////////////////////////////// The global-based changeperiod. This is our estimate (in seconds) for the average time between changes. It is computed using the new prior method based on global_based_prior_period and the global_based_prior_strength specified below. This is used for computing pattern priors. Use pattern_based_change_period or changeperiod fields for all other purposes. + * `globalBasedChangePeriodConfidence` (*type:* `float()`, *default:* `nil`) - The 'confidence' of the global-based changeperiod. This is the n-th root of the posterior evaluated at MAP point, where n is the number of history intervals. For now, it is hard to interpret the meaning of the absolute values of 'average' posterior cross different sets of data. + * `globalBasedPriorPeriod` (*type:* `float()`, *default:* `nil`) - The 2 parameters below specify the prior employed in calculating the global_based_change_period. These values are precomputed through an offline analysis and specified via flags. + * `globalBasedPriorStrength` (*type:* `float()`, *default:* `nil`) - + * `lastChangeSignificance` (*type:* `float()`, *default:* `nil`) - The "significance" of the last change we saw of this document (from 0 to 1). Influenced by content changes, etc. This can be used for prioritizing the crawl (higher significance first). + * `lastChanged` (*type:* `integer()`, *default:* `nil`) - The last time (unix timestamp) we saw a changed copy of the document. Provided iff we have seen the page change. + * `lastFetched` (*type:* `integer()`, *default:* `nil`) - The last time (unix timestamp) we saw a fetched copy of the document. + * `numIntervals` (*type:* `integer()`, *default:* `nil`) - The number of intervals we've seen for this document (where an interval is two different versions). + * `patternBasedChangePeriod` (*type:* `integer()`, *default:* `nil`) - //////////////////////////////////////////////////////////////////////////// The changerate estimation based on the pattern prior. //////////////////////////////////////////////////////////////////////////// The pattern-based changeperiod. This is our estimate (in seconds) for the average time between changes. It is calculated based on the pattern_based_prior_period and pattern_based_prior_strength below. This quantity will eventually replace the old changeperiod calculation. + * `patternBasedChangePeriodConfidence` (*type:* `float()`, *default:* `nil`) - The same as global_based_change_period_confidence, except it is computed using pattern based priors. + * `patternBasedLowerChangePeriod` (*type:* `integer()`, *default:* `nil`) - The lower edge of a confidence interval for the pattern-based change period. + * `patternBasedPriorPeriod` (*type:* `float()`, *default:* `nil`) - The 2 parameters below specify the prior employed in calculating the pattern_based_change_period. These values are calculated in a separate process and looked up based on the URL pattern. + * `patternBasedPriorStrength` (*type:* `float()`, *default:* `nil`) - + * `patternChangePeriodVersion` (*type:* `integer()`, *default:* `nil`) - The version number of the algorithm, refer to ChangePeriodVersion for more information. + * `type` (*type:* `integer()`, *default:* `nil`) - //////////////////////////////////////////////////////////////////////////// Basic information of a document. //////////////////////////////////////////////////////////////////////////// The type of the document determined by crawl histories, refer to TYPE for more information. + * `ugcChangePeriod` (*type:* `integer()`, *default:* `nil`) - //////////////////////////////////////////////////////////////////////////// The UGC changerate estimation. //////////////////////////////////////////////////////////////////////////// Information on change period generated from user generated content (UGC) change history. + * `ugcChangePeriodConfidence` (*type:* `float()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :approximatedPosterior => + GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateMultipleComponentDistribution.t() + | nil, + :averageChangeSignificance => float() | nil, + :changeperiod => integer() | nil, + :confidence => float() | nil, + :globalBasedChangePeriod => integer() | nil, + :globalBasedChangePeriodConfidence => float() | nil, + :globalBasedPriorPeriod => float() | nil, + :globalBasedPriorStrength => float() | nil, + :lastChangeSignificance => float() | nil, + :lastChanged => integer() | nil, + :lastFetched => integer() | nil, + :numIntervals => integer() | nil, + :patternBasedChangePeriod => integer() | nil, + :patternBasedChangePeriodConfidence => float() | nil, + :patternBasedLowerChangePeriod => integer() | nil, + :patternBasedPriorPeriod => float() | nil, + :patternBasedPriorStrength => float() | nil, + :patternChangePeriodVersion => integer() | nil, + :type => integer() | nil, + :ugcChangePeriod => integer() | nil, + :ugcChangePeriodConfidence => float() | nil + } + + field(:approximatedPosterior, + as: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateMultipleComponentDistribution + ) + + field(:averageChangeSignificance) + field(:changeperiod) + field(:confidence) + field(:globalBasedChangePeriod) + field(:globalBasedChangePeriodConfidence) + field(:globalBasedPriorPeriod) + field(:globalBasedPriorStrength) + field(:lastChangeSignificance) + field(:lastChanged) + field(:lastFetched) + field(:numIntervals) + field(:patternBasedChangePeriod) + field(:patternBasedChangePeriodConfidence) + field(:patternBasedLowerChangePeriod) + field(:patternBasedPriorPeriod) + field(:patternBasedPriorStrength) + field(:patternChangePeriodVersion) + field(:type) + field(:ugcChangePeriod) + field(:ugcChangePeriodConfidence) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlChangerate do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlChangerate.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlChangerate do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_url_history.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_url_history.ex new file mode 100644 index 0000000000..30192f919c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_url_history.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlHistory do + @moduledoc """ + + + ## Attributes + + * `change` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlChange.t)`, *default:* `nil`) - All the changes we've seen for this URL. + * `latestVersion` (*type:* `GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlVersion.t`, *default:* `nil`) - The latest version we've seen. + * `url` (*type:* `String.t`, *default:* `nil`) - This field in only set in 'url_history' column of Union repository to avoid having to read CompositeDocs. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :change => + list(GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlChange.t()) | nil, + :latestVersion => + GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlVersion.t() | nil, + :url => String.t() | nil + } + + field(:change, as: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlChange, type: :list) + field(:latestVersion, as: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlVersion) + field(:url) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlHistory do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlHistory.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlHistory do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_url_version.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_url_version.ex new file mode 100644 index 0000000000..ac19464602 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crawler_changerate_url_version.ex @@ -0,0 +1,90 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlVersion do + @moduledoc """ + NEXT_TAG: 15 + + ## Attributes + + * `additionalChangesMerged` (*type:* `integer()`, *default:* `nil`) - Same as the field in UrlChange. This allows us to merge identical UrlVersions into a single UrlVersion. + * `contentType` (*type:* `integer()`, *default:* `nil`) - The content type of the page. + * `isImsNotModified` (*type:* `boolean()`, *default:* `nil`) - Whether this is an IMS response (a 304, not modified). + * `lastModified` (*type:* `integer()`, *default:* `nil`) - The date from the LastModified header, if present. + * `offDomainLinksChecksum` (*type:* `integer()`, *default:* `nil`) - The checksum of all the off-domain links on the page. + * `offDomainLinksCount` (*type:* `integer()`, *default:* `nil`) - The count of all the off-domain links on the page. + * `onDomainLinksCount` (*type:* `integer()`, *default:* `nil`) - The count of all the on-domain links on the page. We aren't worried about the contents themselves, since they might often change (e.g., session ids). We assume that a change in the number of links is significant, however. + * `shingleSimhash` (*type:* `GoogleApi.ContentWarehouse.V1.Model.IndexingConverterShingleFingerprint.t`, *default:* `nil`) - The simhash value obtained from shingles. + * `simhash` (*type:* `String.t`, *default:* `nil`) - The simhash-v1 value. The simhash-v1 is now deprecated and new UrlVersions should only populate simhash-v2. During migration phase from using simhash-v1 to simhash-v2, it is possible that previous UrlChange only contain simhash-v1 and the next UrlChange / UrlVersion could only contain simhash-v2. In this case, we skip that interval in our changerate computation. [go/changerate-simhash-v2-migration] + * `simhashIsTrusted` (*type:* `boolean()`, *default:* `nil`) - Whether the simhash-v1 should be trusted. + * `simhashV2` (*type:* `String.t`, *default:* `nil`) - The simhash-v2 value. + * `simhashV2IsTrusted` (*type:* `boolean()`, *default:* `nil`) - Whether the simhash-v2 value should be trusted. + * `tile` (*type:* `list(integer())`, *default:* `nil`) - The tiles of the document body. We use int32s instead of int64s (the norm) in order to save space. Since rare inaccuracy doesn't really matter, we've decided this is an okay tradeoff. + * `timestamp` (*type:* `integer()`, *default:* `nil`) - The timestamp we crawled the page. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :additionalChangesMerged => integer() | nil, + :contentType => integer() | nil, + :isImsNotModified => boolean() | nil, + :lastModified => integer() | nil, + :offDomainLinksChecksum => integer() | nil, + :offDomainLinksCount => integer() | nil, + :onDomainLinksCount => integer() | nil, + :shingleSimhash => + GoogleApi.ContentWarehouse.V1.Model.IndexingConverterShingleFingerprint.t() | nil, + :simhash => String.t() | nil, + :simhashIsTrusted => boolean() | nil, + :simhashV2 => String.t() | nil, + :simhashV2IsTrusted => boolean() | nil, + :tile => list(integer()) | nil, + :timestamp => integer() | nil + } + + field(:additionalChangesMerged) + field(:contentType) + field(:isImsNotModified) + field(:lastModified) + field(:offDomainLinksChecksum) + field(:offDomainLinksCount) + field(:onDomainLinksCount) + + field(:shingleSimhash, + as: GoogleApi.ContentWarehouse.V1.Model.IndexingConverterShingleFingerprint + ) + + field(:simhash) + field(:simhashIsTrusted) + field(:simhashV2) + field(:simhashV2IsTrusted) + field(:tile, type: :list) + field(:timestamp) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlVersion do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlVersion.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CrawlerChangerateUrlVersion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crowding_per_doc_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crowding_per_doc_data.ex new file mode 100644 index 0000000000..a8af80ea5e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crowding_per_doc_data.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CrowdingPerDocData do + @moduledoc """ + + + ## Attributes + + * `newscluster` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.CrowdingPerDocDataNewsCluster.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :newscluster => + list(GoogleApi.ContentWarehouse.V1.Model.CrowdingPerDocDataNewsCluster.t()) | nil + } + + field(:newscluster, + as: GoogleApi.ContentWarehouse.V1.Model.CrowdingPerDocDataNewsCluster, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CrowdingPerDocData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CrowdingPerDocData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CrowdingPerDocData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crowding_per_doc_data_news_cluster.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crowding_per_doc_data_news_cluster.ex new file mode 100644 index 0000000000..0a01870f8c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/crowding_per_doc_data_news_cluster.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.CrowdingPerDocDataNewsCluster do + @moduledoc """ + For crowding in news we need to keep data about the last X clustering iterations around. + + ## Attributes + + * `ClusterId` (*type:* `String.t`, *default:* `nil`) - Fingerprint combination of all urls in a cluster + * `ClusterSize` (*type:* `integer()`, *default:* `nil`) - This is the X in the "and X related >>" link on headlines and search results + * `ClusterTimeStamp` (*type:* `integer()`, *default:* `nil`) - When was this clustered (needed for keeping last X iterations around and discarding earlier ones) + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ClusterId => String.t() | nil, + :ClusterSize => integer() | nil, + :ClusterTimeStamp => integer() | nil + } + + field(:ClusterId) + field(:ClusterSize) + field(:ClusterTimeStamp) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.CrowdingPerDocDataNewsCluster do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.CrowdingPerDocDataNewsCluster.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.CrowdingPerDocDataNewsCluster do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/deep_crop_indexing.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/deep_crop_indexing.ex new file mode 100644 index 0000000000..297f45e79f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/deep_crop_indexing.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DeepCropIndexing do + @moduledoc """ + + + ## Attributes + + * `cropBytes` (*type:* `String.t`, *default:* `nil`) - Compact representation for indexing, see creatism::CropBitmap for details on the packing format. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cropBytes => String.t() | nil + } + + field(:cropBytes) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DeepCropIndexing do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DeepCropIndexing.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DeepCropIndexing do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/deep_crop_pixels.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/deep_crop_pixels.ex new file mode 100644 index 0000000000..d74a5bda10 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/deep_crop_pixels.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DeepCropPixels do + @moduledoc """ + + + ## Attributes + + * `x0` (*type:* `integer()`, *default:* `nil`) - Pixels version of the DeepCropIndexing bytes, this corresponds to the crop box for a given image (based input image size and desired aspect ratio). + * `x1` (*type:* `integer()`, *default:* `nil`) - + * `y0` (*type:* `integer()`, *default:* `nil`) - + * `y1` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :x0 => integer() | nil, + :x1 => integer() | nil, + :y0 => integer() | nil, + :y1 => integer() | nil + } + + field(:x0) + field(:x1) + field(:y0) + field(:y1) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DeepCropPixels do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DeepCropPixels.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DeepCropPixels do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/doc_properties.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/doc_properties.ex new file mode 100644 index 0000000000..c2d9291a1e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/doc_properties.ex @@ -0,0 +1,86 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DocProperties do + @moduledoc """ + NOTE: In segindexer, the docproperties of a document may be reused from a previous cycle if its content is not changed. If you add a new field to DocProperties, make sure it is taken care (i.e., gets copied from a previous cycle to the current document) in CDocProperties::EndDocument(). + + ## Attributes + + * `avgTermWeight` (*type:* `integer()`, *default:* `nil`) - The average weighted font size of a term in the doc body + * `badTitle` (*type:* `boolean()`, *default:* `nil`) - Missing or meaningless title + * `badtitleinfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DocPropertiesBadTitleInfo.t)`, *default:* `nil`) - + * `languages` (*type:* `list(integer())`, *default:* `nil`) - A Language enum value. See: go/language-enum + * `leadingtext` (*type:* `GoogleApi.ContentWarehouse.V1.Model.SnippetsLeadingtextLeadingTextInfo.t`, *default:* `nil`) - Leading text information generated by google3/quality/snippets/leadingtext/leadingtext-detector.cc + * `numPunctuations` (*type:* `integer()`, *default:* `nil`) - + * `numTags` (*type:* `integer()`, *default:* `nil`) - + * `numTokens` (*type:* `integer()`, *default:* `nil`) - The number of tokens, tags and punctuations in the tokenized contents. This is an approximation of the number of tokens, tags and punctuations we end up with in mustang, but is inexact since we drop some tokens in mustang and also truncate docs at a max cap. + * `proseRestrict` (*type:* `list(String.t)`, *default:* `nil`) - The restricts for CSE structured search. + * `restricts` (*type:* `list(String.t)`, *default:* `nil`) - + * `timestamp` (*type:* `String.t`, *default:* `nil`) - The time CDocProperties::StartDocument() is called, encoded as seconds past the epoch (Jan 1, 1970). This value is always refreshed and not reused. + * `title` (*type:* `String.t`, *default:* `nil`) - Extracted from the title tag of the content. This is typically extracted by TitleMetaCollector defined at google3/segindexer/title-meta-collector.h. Please see its documentation for the format and other caveats. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :avgTermWeight => integer() | nil, + :badTitle => boolean() | nil, + :badtitleinfo => + list(GoogleApi.ContentWarehouse.V1.Model.DocPropertiesBadTitleInfo.t()) | nil, + :languages => list(integer()) | nil, + :leadingtext => + GoogleApi.ContentWarehouse.V1.Model.SnippetsLeadingtextLeadingTextInfo.t() | nil, + :numPunctuations => integer() | nil, + :numTags => integer() | nil, + :numTokens => integer() | nil, + :proseRestrict => list(String.t()) | nil, + :restricts => list(String.t()) | nil, + :timestamp => String.t() | nil, + :title => String.t() | nil + } + + field(:avgTermWeight) + field(:badTitle) + + field(:badtitleinfo, + as: GoogleApi.ContentWarehouse.V1.Model.DocPropertiesBadTitleInfo, + type: :list + ) + + field(:languages, type: :list) + field(:leadingtext, as: GoogleApi.ContentWarehouse.V1.Model.SnippetsLeadingtextLeadingTextInfo) + field(:numPunctuations) + field(:numTags) + field(:numTokens) + field(:proseRestrict, type: :list) + field(:restricts, type: :list) + field(:timestamp) + field(:title) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DocProperties do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DocProperties.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DocProperties do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/doc_properties_bad_title_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/doc_properties_bad_title_info.ex new file mode 100644 index 0000000000..eb51319edf --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/doc_properties_bad_title_info.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DocPropertiesBadTitleInfo do + @moduledoc """ + Bad title information. + + ## Attributes + + * `score` (*type:* `number()`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :score => number() | nil, + :type => String.t() | nil + } + + field(:score) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DocPropertiesBadTitleInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DocPropertiesBadTitleInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DocPropertiesBadTitleInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_compressed_feature.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_compressed_feature.ex new file mode 100644 index 0000000000..a624a7585f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_compressed_feature.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiCompressedFeature do + @moduledoc """ + Protocol buffer for storing compressed feature. + + ## Attributes + + * `featureName` (*type:* `String.t`, *default:* `nil`) - + * `inRangeBitstream` (*type:* `String.t`, *default:* `nil`) - in_range_bitstream is the string produced by range coder, while out_of_range_bitstream corresponds to the overflow stream, which is used whenever a quantized value is out of range. See https://cs.corp.google.com/piper///depot/google3/research/vision/piedpiper/brain/python/layers/entropy_models.py?l=225&cl=234825412 + * `outOfRangeBitstream` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :featureName => String.t() | nil, + :inRangeBitstream => String.t() | nil, + :outOfRangeBitstream => String.t() | nil + } + + field(:featureName) + field(:inRangeBitstream) + field(:outOfRangeBitstream) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiCompressedFeature do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiCompressedFeature.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiCompressedFeature do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_dense_feature_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_dense_feature_data.ex new file mode 100644 index 0000000000..efc5cd904c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_dense_feature_data.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiDenseFeatureData do + @moduledoc """ + + + ## Attributes + + * `extra` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t)`, *default:* `nil`) - If extra is present it must be of the same length as value. + * `generalExtra` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t`, *default:* `nil`) - + * `value` (*type:* `list(number())`, *default:* `nil`) - Dense data. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :extra => list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t()) | nil, + :generalExtra => GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t() | nil, + :value => list(number()) | nil + } + + field(:extra, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra, type: :list) + field(:generalExtra, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra) + field(:value, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiDenseFeatureData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiDenseFeatureData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiDenseFeatureData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_feature_extra.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_feature_extra.ex new file mode 100644 index 0000000000..240f3fd1d2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_feature_extra.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra do + @moduledoc """ + + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_feature_set_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_feature_set_data.ex new file mode 100644 index 0000000000..df4ce47e2e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_feature_set_data.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetData do + @moduledoc """ + + + ## Attributes + + * `extra` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t)`, *default:* `nil`) - Extra information for this particular FeatureSetData (example timestamp of this frame in the video). (Almost never used). + * `feature` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetDataFeatureSetElement.t)`, *default:* `nil`) - The following can have multiple FeatureSetElement(s) Each of these FeatureSetElement correspond to the various feature groups. One concrete example is the way these features are generated - example audio, video or OCR. + * `label` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetElement.t)`, *default:* `nil`) - Labels for this particular FeatureSetData. (Almost never used). Only interesting when you have (for example) frame level labels. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :extra => list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t()) | nil, + :feature => + list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetDataFeatureSetElement.t()) + | nil, + :label => list(GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetElement.t()) | nil + } + + field(:extra, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra, type: :list) + + field(:feature, + as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetDataFeatureSetElement, + type: :list + ) + + field(:label, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetElement, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_feature_set_data_feature_set_element.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_feature_set_data_feature_set_element.ex new file mode 100644 index 0000000000..f3628875de --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_feature_set_data_feature_set_element.ex @@ -0,0 +1,82 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetDataFeatureSetElement do + @moduledoc """ + A FeatureSetElement stores the features coming from a single group. + + ## Attributes + + * `compressed` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiCompressedFeature.t`, *default:* `nil`) - + * `dense` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiDenseFeatureData.t`, *default:* `nil`) - + * `indexed` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiIndexedFeatureData.t`, *default:* `nil`) - + * `name` (*type:* `String.t`, *default:* `nil`) - A name for the feature group: example "AUDIO", "VIDEO", "OCR", etc. + * `quantized` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedDenseFeatureData.t`, *default:* `nil`) - + * `quantizedByteDense` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedByteDenseFeatureData.t`, *default:* `nil`) - + * `quantizedByteIndexed` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedByteIndexedFeatureData.t`, *default:* `nil`) - + * `sparse` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiSparseFeatureData.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :compressed => GoogleApi.ContentWarehouse.V1.Model.DrishtiCompressedFeature.t() | nil, + :dense => GoogleApi.ContentWarehouse.V1.Model.DrishtiDenseFeatureData.t() | nil, + :indexed => GoogleApi.ContentWarehouse.V1.Model.DrishtiIndexedFeatureData.t() | nil, + :name => String.t() | nil, + :quantized => + GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedDenseFeatureData.t() | nil, + :quantizedByteDense => + GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedByteDenseFeatureData.t() | nil, + :quantizedByteIndexed => + GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedByteIndexedFeatureData.t() | nil, + :sparse => GoogleApi.ContentWarehouse.V1.Model.DrishtiSparseFeatureData.t() | nil + } + + field(:compressed, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiCompressedFeature) + field(:dense, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiDenseFeatureData) + field(:indexed, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiIndexedFeatureData) + field(:name) + field(:quantized, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedDenseFeatureData) + + field(:quantizedByteDense, + as: GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedByteDenseFeatureData + ) + + field(:quantizedByteIndexed, + as: GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedByteIndexedFeatureData + ) + + field(:sparse, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiSparseFeatureData) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetDataFeatureSetElement do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetDataFeatureSetElement.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetDataFeatureSetElement do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_feature_set_data_sequence.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_feature_set_data_sequence.ex new file mode 100644 index 0000000000..de1cdfd961 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_feature_set_data_sequence.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetDataSequence do + @moduledoc """ + This represents a sequence (ordered) of FeatureSetData elements. + + ## Attributes + + * `element` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetData.t)`, *default:* `nil`) - FeatureSetData contains the features. In most scenarios, you only have one element. However, multiple elements are appropriate in case of videos where each element may correspond to a frame in the video. + * `extra` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t)`, *default:* `nil`) - Some extra information about this FeatureSetDataSequence. (Almost never used). + * `label` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetElement.t)`, *default:* `nil`) - Global (video-level) labels. In most cases, you only have one LabelSetElement. All the labels will be stored in this single LabelSetElement. Scenarios where you may have multiple LabelSetElement(s) is (for example) when you want to differentiate the labels into various sub-groups - eg, central vs relevant, kg-ids vs queries, etc. + * `timestamp` (*type:* `list(String.t)`, *default:* `nil`) - If set, must be same length as element. Each entry is the timestamp in microseconds where the FeatureSetData element was extracted. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :element => list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetData.t()) | nil, + :extra => list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t()) | nil, + :label => list(GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetElement.t()) | nil, + :timestamp => list(String.t()) | nil + } + + field(:element, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetData, type: :list) + field(:extra, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra, type: :list) + field(:label, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetElement, type: :list) + field(:timestamp, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetDataSequence do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetDataSequence.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureSetDataSequence do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_indexed_feature_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_indexed_feature_data.ex new file mode 100644 index 0000000000..7ab62437d1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_indexed_feature_data.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiIndexedFeatureData do + @moduledoc """ + + + ## Attributes + + * `extra` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t)`, *default:* `nil`) - If extra is present it must be of the same length as index and value. + * `generalExtra` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t`, *default:* `nil`) - + * `index` (*type:* `list(String.t)`, *default:* `nil`) - Indexed data. index and value must be of the same length. + * `value` (*type:* `list(number())`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :extra => list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t()) | nil, + :generalExtra => GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t() | nil, + :index => list(String.t()) | nil, + :value => list(number()) | nil + } + + field(:extra, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra, type: :list) + field(:generalExtra, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra) + field(:index, type: :list) + field(:value, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiIndexedFeatureData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiIndexedFeatureData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiIndexedFeatureData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_label_set_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_label_set_data.ex new file mode 100644 index 0000000000..680525aaa0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_label_set_data.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetData do + @moduledoc """ + + + ## Attributes + + * `extra` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t)`, *default:* `nil`) - + * `generalExtra` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t`, *default:* `nil`) - + * `targetClass` (*type:* `list(String.t)`, *default:* `nil`) - + * `targetClassName` (*type:* `list(String.t)`, *default:* `nil`) - + * `targetValue` (*type:* `list(number())`, *default:* `nil`) - + * `targetWeight` (*type:* `list(number())`, *default:* `nil`) - + * `weight` (*type:* `number()`, *default:* `nil`) - Weight assigned to this set of labels. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :extra => list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t()) | nil, + :generalExtra => GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t() | nil, + :targetClass => list(String.t()) | nil, + :targetClassName => list(String.t()) | nil, + :targetValue => list(number()) | nil, + :targetWeight => list(number()) | nil, + :weight => number() | nil + } + + field(:extra, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra, type: :list) + field(:generalExtra, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra) + field(:targetClass, type: :list) + field(:targetClassName, type: :list) + field(:targetValue, type: :list) + field(:targetWeight, type: :list) + field(:weight) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_label_set_element.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_label_set_element.ex new file mode 100644 index 0000000000..3407b4384d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_label_set_element.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetElement do + @moduledoc """ + + + ## Attributes + + * `label` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetData.t`, *default:* `nil`) - + * `name` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :label => GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetData.t() | nil, + :name => String.t() | nil + } + + field(:label, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetData) + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetElement do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetElement.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiLabelSetElement do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_quantized_byte_dense_feature_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_quantized_byte_dense_feature_data.ex new file mode 100644 index 0000000000..16a4b39d18 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_quantized_byte_dense_feature_data.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedByteDenseFeatureData do + @moduledoc """ + Proto message to store quantized dense feature data. + + ## Attributes + + * `extra` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t)`, *default:* `nil`) - If extra is present it must be of the same length as value. + * `generalExtra` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - Quantized values for the feature. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :extra => list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t()) | nil, + :generalExtra => GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t() | nil, + :value => String.t() | nil + } + + field(:extra, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra, type: :list) + field(:generalExtra, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedByteDenseFeatureData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedByteDenseFeatureData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedByteDenseFeatureData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_quantized_byte_indexed_feature_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_quantized_byte_indexed_feature_data.ex new file mode 100644 index 0000000000..385597fa98 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_quantized_byte_indexed_feature_data.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedByteIndexedFeatureData do + @moduledoc """ + Proto message to store quantized indexed feature data. + + ## Attributes + + * `extra` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t)`, *default:* `nil`) - If extra is present it must be of the same length as value. + * `generalExtra` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t`, *default:* `nil`) - + * `index` (*type:* `list(String.t)`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - Quantized values for the feature. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :extra => list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t()) | nil, + :generalExtra => GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t() | nil, + :index => list(String.t()) | nil, + :value => String.t() | nil + } + + field(:extra, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra, type: :list) + field(:generalExtra, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra) + field(:index, type: :list) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedByteIndexedFeatureData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedByteIndexedFeatureData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedByteIndexedFeatureData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_quantized_dense_feature_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_quantized_dense_feature_data.ex new file mode 100644 index 0000000000..ec4a19495e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_quantized_dense_feature_data.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedDenseFeatureData do + @moduledoc """ + + + ## Attributes + + * `extra` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t)`, *default:* `nil`) - If extra is present it must be of the same length as value. + * `generalExtra` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t`, *default:* `nil`) - + * `value` (*type:* `list(String.t)`, *default:* `nil`) - Quantized Dense data. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :extra => list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t()) | nil, + :generalExtra => GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t() | nil, + :value => list(String.t()) | nil + } + + field(:extra, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra, type: :list) + field(:generalExtra, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra) + field(:value, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedDenseFeatureData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedDenseFeatureData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiQuantizedDenseFeatureData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_sparse_feature_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_sparse_feature_data.ex new file mode 100644 index 0000000000..b77006f20b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_sparse_feature_data.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiSparseFeatureData do + @moduledoc """ + + + ## Attributes + + * `extra` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t)`, *default:* `nil`) - If extra is present it must be of the same length as label and value. + * `generalExtra` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t`, *default:* `nil`) - + * `label` (*type:* `list(String.t)`, *default:* `nil`) - Indexed data. label and value must be of the same length. + * `value` (*type:* `list(number())`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :extra => list(GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t()) | nil, + :generalExtra => GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra.t() | nil, + :label => list(String.t()) | nil, + :value => list(number()) | nil + } + + field(:extra, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra, type: :list) + field(:generalExtra, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiFeatureExtra) + field(:label, type: :list) + field(:value, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiSparseFeatureData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiSparseFeatureData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiSparseFeatureData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_encoded_thumbnail.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_encoded_thumbnail.ex new file mode 100644 index 0000000000..35da333ec6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_encoded_thumbnail.ex @@ -0,0 +1,70 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperEncodedThumbnail do + @moduledoc """ + The attributes of encoded thumbnail images. Next id: 10. + + ## Attributes + + * `byteSize` (*type:* `String.t`, *default:* `nil`) - Image size in bytes. Meaningful when contents are not stored inline (e.g., via `image_blob_id`). + * `crc32c` (*type:* `integer()`, *default:* `nil`) - CRC-32 checksum of the image bytes. Can be used for data integrity check. + * `encodingQuality` (*type:* `integer()`, *default:* `nil`) - JPEG/WEBP quality factor in range [0,100]. + * `encodingType` (*type:* `String.t`, *default:* `nil`) - Image encoding type. + * `height` (*type:* `integer()`, *default:* `nil`) - + * `imageBlobId` (*type:* `String.t`, *default:* `nil`) - The Blob ID of the thumbnail image in the Blobstore. We recommend absolute IDs with universe prefix if this field is passed across systems. The owner of this blob is also responsible for data Wipeout compliance. + * `imageBytes` (*type:* `String.t`, *default:* `nil`) - Encoded thumbnail bytes. Prefer this over `image_string` as we are not supposed to store image bytes in a proto string field. + * `imageString` (*type:* `String.t`, *default:* `nil`) - Please migrate to `image_bytes`. + * `width` (*type:* `integer()`, *default:* `nil`) - Thumbnail resolution. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :byteSize => String.t() | nil, + :crc32c => integer() | nil, + :encodingQuality => integer() | nil, + :encodingType => String.t() | nil, + :height => integer() | nil, + :imageBlobId => String.t() | nil, + :imageBytes => String.t() | nil, + :imageString => String.t() | nil, + :width => integer() | nil + } + + field(:byteSize) + field(:crc32c) + field(:encodingQuality) + field(:encodingType) + field(:height) + field(:imageBlobId) + field(:imageBytes) + field(:imageString) + field(:width) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperEncodedThumbnail do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperEncodedThumbnail.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperEncodedThumbnail do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_moving_thumbnail.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_moving_thumbnail.ex new file mode 100644 index 0000000000..65ba049140 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_moving_thumbnail.ex @@ -0,0 +1,98 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperMovingThumbnail do + @moduledoc """ + LINT: LEGACY_NAMES MovingThumbnail is defined as a short video clip that represents the whole video content. Next id: 17. + + ## Attributes + + * `beginTimestampMs` (*type:* `integer()`, *default:* `nil`) - The begin timestamp in milliseconds. + * `durationMs` (*type:* `integer()`, *default:* `nil`) - The duration of the moving thumbnail in milliseconds. Note that the duration may not be the difference between begin_timestamp_ms and end_timestamp_ms, esp when the moving thumbnail covers multiple clips from the video. + * `encodedGifAnimation` (*type:* `String.t`, *default:* `nil`) - + * `encodedVideoString` (*type:* `String.t`, *default:* `nil`) - The encoded video string. + * `encodedWebpAnimation` (*type:* `String.t`, *default:* `nil`) - The encoded WebP animation. + * `endTimestampMs` (*type:* `integer()`, *default:* `nil`) - The end timestamp in milliseconds. + * `height` (*type:* `integer()`, *default:* `nil`) - Pixel height of the moving thumbnail. + * `id` (*type:* `String.t`, *default:* `nil`) - MovingThumbnail id (e.g., the video id). + * `movingThumbnailerVersion` (*type:* `String.t`, *default:* `nil`) - If set, this is the algorithm version used to generate this moving thumbnail. + * `name` (*type:* `String.t`, *default:* `nil`) - MovingThumbnail name. + * `score` (*type:* `number()`, *default:* `nil`) - The score of the moving thumbnail. + * `scoreComponents` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperMovingThumbnailScoreComponents.t`, *default:* `nil`) - + * `thumbnails` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnail.t)`, *default:* `nil`) - A set of single frame thumbnails in the MovingThumbnail. + * `type` (*type:* `String.t`, *default:* `nil`) - MovingThumbnail type. + * `webpQualityLevel` (*type:* `number()`, *default:* `nil`) - The actual quality of the Webp animation. Note this value may not be equal to the quality value requested in the animation creator's options. This is because other requirements, such as the max file size, may force the creator to lower the actual quality value. + * `width` (*type:* `integer()`, *default:* `nil`) - Pixel width of the moving thumbnail. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :beginTimestampMs => integer() | nil, + :durationMs => integer() | nil, + :encodedGifAnimation => String.t() | nil, + :encodedVideoString => String.t() | nil, + :encodedWebpAnimation => String.t() | nil, + :endTimestampMs => integer() | nil, + :height => integer() | nil, + :id => String.t() | nil, + :movingThumbnailerVersion => String.t() | nil, + :name => String.t() | nil, + :score => number() | nil, + :scoreComponents => + GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperMovingThumbnailScoreComponents.t() + | nil, + :thumbnails => + list(GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnail.t()) | nil, + :type => String.t() | nil, + :webpQualityLevel => number() | nil, + :width => integer() | nil + } + + field(:beginTimestampMs) + field(:durationMs) + field(:encodedGifAnimation) + field(:encodedVideoString) + field(:encodedWebpAnimation) + field(:endTimestampMs) + field(:height) + field(:id) + field(:movingThumbnailerVersion) + field(:name) + field(:score) + + field(:scoreComponents, + as: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperMovingThumbnailScoreComponents + ) + + field(:thumbnails, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnail, type: :list) + field(:type) + field(:webpQualityLevel) + field(:width) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperMovingThumbnail do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperMovingThumbnail.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperMovingThumbnail do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_moving_thumbnail_score_components.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_moving_thumbnail_score_components.ex new file mode 100644 index 0000000000..e4204a26c5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_moving_thumbnail_score_components.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperMovingThumbnailScoreComponents do + @moduledoc """ + Sum of individual score components within a moving thumbnail. Used as input for weight fitting. + + ## Attributes + + * `audienceRewindRatioScore` (*type:* `number()`, *default:* `nil`) - + * `iconicFaceScore` (*type:* `number()`, *default:* `nil`) - + * `matchingScore` (*type:* `number()`, *default:* `nil`) - + * `motionScore` (*type:* `number()`, *default:* `nil`) - + * `titleMatchingScore` (*type:* `number()`, *default:* `nil`) - + * `videoThumbQualityScore` (*type:* `number()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :audienceRewindRatioScore => number() | nil, + :iconicFaceScore => number() | nil, + :matchingScore => number() | nil, + :motionScore => number() | nil, + :titleMatchingScore => number() | nil, + :videoThumbQualityScore => number() | nil + } + + field(:audienceRewindRatioScore) + field(:iconicFaceScore) + field(:matchingScore) + field(:motionScore) + field(:titleMatchingScore) + field(:videoThumbQualityScore) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperMovingThumbnailScoreComponents do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperMovingThumbnailScoreComponents.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperMovingThumbnailScoreComponents do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_thumbnail.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_thumbnail.ex new file mode 100644 index 0000000000..fbb876c1e9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_thumbnail.ex @@ -0,0 +1,111 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnail do + @moduledoc """ + The attributes of a video thumbnail. + + ## Attributes + + * `denseFeatures` (*type:* `list(number())`, *default:* `nil`) - Thumbnail dense features + * `encodedImageString` (*type:* `String.t`, *default:* `nil`) - Thumbnail image as an encoded image. Deprecated, use encoded_thumbnails instead. + * `encodedImageStringSmall` (*type:* `String.t`, *default:* `nil`) - Thumbnail image as an encoded image with smaller resolution. Deprecated, use encoded_thumbnails instead. + * `encodedThumbnails` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperEncodedThumbnail.t)`, *default:* `nil`) - Encoded thumbnail images. + * `id` (*type:* `String.t`, *default:* `nil`) - Thumbnail id. + * `ocrText` (*type:* `String.t`, *default:* `nil`) - Text in video thumbnails that was detected by OCR. + * `qualityScores` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnailQualityScore.t)`, *default:* `nil`) - Thumbnail quality scores. + * `shouldUpdateDefaultThumbnail` (*type:* `boolean()`, *default:* `nil`) - If true, this thumbnail should update default thumbnail. + * `thumbnailerModelVersion` (*type:* `String.t`, *default:* `nil`) - Thumbnailer Version. + * `timestampMs` (*type:* `integer()`, *default:* `nil`) - Thumbnail timestamp in milliseconds. + * `type` (*type:* `String.t`, *default:* `nil`) - Thumbnail type. + * `userReportedThumbnail` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportUserReportedThumbnail.t`, *default:* `nil`) - + * `userReportedThumbnails` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportUserReportedThumbnail.t)`, *default:* `nil`) - All user reported thumbnails of interest. + * `version` (*type:* `integer()`, *default:* `nil`) - Thumbnail version, i.e., the unix time in seconds when the thumbnail was created. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :denseFeatures => list(number()) | nil, + :encodedImageString => String.t() | nil, + :encodedImageStringSmall => String.t() | nil, + :encodedThumbnails => + list(GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperEncodedThumbnail.t()) | nil, + :id => String.t() | nil, + :ocrText => String.t() | nil, + :qualityScores => + list(GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnailQualityScore.t()) | nil, + :shouldUpdateDefaultThumbnail => boolean() | nil, + :thumbnailerModelVersion => String.t() | nil, + :timestampMs => integer() | nil, + :type => String.t() | nil, + :userReportedThumbnail => + GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportUserReportedThumbnail.t() + | nil, + :userReportedThumbnails => + list( + GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportUserReportedThumbnail.t() + ) + | nil, + :version => integer() | nil + } + + field(:denseFeatures, type: :list) + field(:encodedImageString) + field(:encodedImageStringSmall) + + field(:encodedThumbnails, + as: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperEncodedThumbnail, + type: :list + ) + + field(:id) + field(:ocrText) + + field(:qualityScores, + as: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnailQualityScore, + type: :list + ) + + field(:shouldUpdateDefaultThumbnail) + field(:thumbnailerModelVersion) + field(:timestampMs) + field(:type) + + field(:userReportedThumbnail, + as: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportUserReportedThumbnail + ) + + field(:userReportedThumbnails, + as: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportUserReportedThumbnail, + type: :list + ) + + field(:version) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnail do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnail.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnail do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_thumbnail_quality_score.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_thumbnail_quality_score.ex new file mode 100644 index 0000000000..ea3ca0b397 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_thumbnail_quality_score.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnailQualityScore do + @moduledoc """ + + + ## Attributes + + * `score` (*type:* `number()`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :score => number() | nil, + :type => String.t() | nil + } + + field(:score) + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnailQualityScore do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnailQualityScore.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnailQualityScore do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_user_report_human_label.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_user_report_human_label.ex new file mode 100644 index 0000000000..7475b5b0b2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_user_report_human_label.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportHumanLabel do + @moduledoc """ + Proto holding values for details about human labels. + + ## Attributes + + * `racyLevel` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :racyLevel => String.t() | nil + } + + field(:racyLevel) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportHumanLabel do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportHumanLabel.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportHumanLabel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_user_report_model_score.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_user_report_model_score.ex new file mode 100644 index 0000000000..f8f409923a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_user_report_model_score.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportModelScore do + @moduledoc """ + Proto holding values for details about score and the source model. + + ## Attributes + + * `modelName` (*type:* `String.t`, *default:* `nil`) - + * `score` (*type:* `number()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :modelName => String.t() | nil, + :score => number() | nil + } + + field(:modelName) + field(:score) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportModelScore do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportModelScore.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportModelScore do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_user_report_user_reported_thumbnail.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_user_report_user_reported_thumbnail.ex new file mode 100644 index 0000000000..bdc7398310 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_user_report_user_reported_thumbnail.ex @@ -0,0 +1,90 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportUserReportedThumbnail do + @moduledoc """ + Proto holding values for user reported thumbnails. Next id: 12 + + ## Attributes + + * `denseFeatures` (*type:* `list(number())`, *default:* `nil`) - + * `duration` (*type:* `integer()`, *default:* `nil`) - Number of days in which volume is calculated. + * `humanLabel` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportHumanLabel.t`, *default:* `nil`) - + * `impressions` (*type:* `integer()`, *default:* `nil`) - Daily aggregared impressions for the reported video. + * `needHumanLabel` (*type:* `boolean()`, *default:* `nil`) - Whether the thumbnail needs a human label. + * `rawHumanLabels` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportHumanLabel.t)`, *default:* `nil`) - + * `reportScore` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportModelScore.t`, *default:* `nil`) - + * `reportType` (*type:* `String.t`, *default:* `nil`) - + * `score` (*type:* `GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportModelScore.t`, *default:* `nil`) - + * `useCase` (*type:* `String.t`, *default:* `nil`) - + * `volume` (*type:* `integer()`, *default:* `nil`) - Number of reports. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :denseFeatures => list(number()) | nil, + :duration => integer() | nil, + :humanLabel => + GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportHumanLabel.t() | nil, + :impressions => integer() | nil, + :needHumanLabel => boolean() | nil, + :rawHumanLabels => + list(GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportHumanLabel.t()) | nil, + :reportScore => + GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportModelScore.t() | nil, + :reportType => String.t() | nil, + :score => + GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportModelScore.t() | nil, + :useCase => String.t() | nil, + :volume => integer() | nil + } + + field(:denseFeatures, type: :list) + field(:duration) + field(:humanLabel, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportHumanLabel) + field(:impressions) + field(:needHumanLabel) + + field(:rawHumanLabels, + as: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportHumanLabel, + type: :list + ) + + field(:reportScore, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportModelScore) + field(:reportType) + field(:score, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportModelScore) + field(:useCase) + field(:volume) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportUserReportedThumbnail do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportUserReportedThumbnail.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperUserReportUserReportedThumbnail do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_video_thumbnail.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_video_thumbnail.ex new file mode 100644 index 0000000000..95d1374dc3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/drishti_vesper_video_thumbnail.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperVideoThumbnail do + @moduledoc """ + Video level container for thumbnail with its attributes, e.g., timestamp, id, quality scores, annotations, or features. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - Video id. + * `movingThumbnails` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperMovingThumbnail.t)`, *default:* `nil`) - + * `thumbnails` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnail.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :movingThumbnails => + list(GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperMovingThumbnail.t()) | nil, + :thumbnails => + list(GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnail.t()) | nil + } + + field(:id) + + field(:movingThumbnails, + as: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperMovingThumbnail, + type: :list + ) + + field(:thumbnails, as: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperThumbnail, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperVideoThumbnail do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperVideoThumbnail.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.DrishtiVesperVideoThumbnail do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_deep_link_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_deep_link_data.ex new file mode 100644 index 0000000000..585cad641d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_deep_link_data.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.EmbedsDeepLinkData do + @moduledoc """ + Deep-linking data is used to construct a deep-link URI for an activity or frame's embed, such that on click, the user is taken to the right place in a mobile app. If the app is not installed, the user is taken to the app store. If not on mobile, an analogous web uri is used. + + ## Attributes + + * `appId` (*type:* `String.t`, *default:* `nil`) - Application ID (or project ID) from Google API Console. + * `client` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.EmbedsPackagingServiceClient.t)`, *default:* `nil`) - The data for a Google API Console client is entered by a developer during client registration and is stored in PackagingService. + * `deepLinkId` (*type:* `String.t`, *default:* `nil`) - The ID for non-URL content. Embeds may either have no analogous web presence or prefer a native mobile experience if supported. In the case of no web presence, instead of setting the "url" field of an embed, such developers will set this field and other content fields, e.g. thumbnail, title, description. If set, this field is used to construct the deep-link URI. Note that the native experience is preferred over the web link and the web link is used as a fallback. + * `url` (*type:* `String.t`, *default:* `nil`) - Analogous web presence. Used as desktop fallback or when no native link data is present. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appId => String.t() | nil, + :client => + list(GoogleApi.ContentWarehouse.V1.Model.EmbedsPackagingServiceClient.t()) | nil, + :deepLinkId => String.t() | nil, + :url => String.t() | nil + } + + field(:appId) + + field(:client, as: GoogleApi.ContentWarehouse.V1.Model.EmbedsPackagingServiceClient, type: :list) + + field(:deepLinkId) + field(:url) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.EmbedsDeepLinkData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.EmbedsDeepLinkData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.EmbedsDeepLinkData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_embed_client_item.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_embed_client_item.ex new file mode 100644 index 0000000000..9809f60ddc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_embed_client_item.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.EmbedsEmbedClientItem do + @moduledoc """ + Represents an embedded object in an update. This is a wrapper class that can contain a single specific item proto in an extension field. Think of it as a base class like `Message` in Java. Each item proto must declare that it extends this proto: message ExampleObject { option (item_type) = EXAMPLE_OBJECT; extend EmbedClientItem { optional ExampleObject example_object = ; } } See go/es-embeds for details. + + ## Attributes + + * `canonicalId` (*type:* `String.t`, *default:* `nil`) - The canonical ID of the embed. If absent, the canonical ID is equal to the ID; if present, then the canonical ID represents an "equivalence class" of embeds which really refer to the same object. (For example, the URLs http://www.foo.com/ and http://foo.com/ refer to the same object) This field may be updated periodically by background processes. + * `deepLinkData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.EmbedsDeepLinkData.t`, *default:* `nil`) - Deep-linking data to take the user to the right place in a mobile app. This is only used for preview and attribution. Links that are specific to a given embed type should live on that specific embed's proto by using Link. See http://goto.google.com/mariana-design. + * `id` (*type:* `String.t`, *default:* `nil`) - The ID of the embed. This corresponds to the schema.org ID, as represented in the ItemScope.id field. + * `provenance` (*type:* `GoogleApi.ContentWarehouse.V1.Model.EmbedsProvenance.t`, *default:* `nil`) - The provenance of the embed, populated when the embed originated from a web fetch. The provenance captures information about the web page the embed had originated, like the URL that was retrieved and the retrieved URL's canonical form. This is useful in the case where the URL shared by the URL redirects (e.g., in the case of a shortened URL). + * `renderId` (*type:* `String.t`, *default:* `nil`) - The ID used to identify the embed during rendering. This field will match ID, if set, otherwise it will be the ID of the parent activity. This field is only populated on the server for client use and is not persisted to storage. + * `signature` (*type:* `String.t`, *default:* `nil`) - Signature of the embed, used for verification. + * `transientData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.EmbedsTransientData.t`, *default:* `nil`) - Transient generic data that will not be saved on the server. + * `type` (*type:* `list(String.t)`, *default:* `nil`) - The first value in `type` determines which extension field will be set. When creating an EmbedClientItem, you only need to set the first (primary) type in this field. When the server receives the item, it will populate the full type list using the parent annotations in the ItemType enum. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canonicalId => String.t() | nil, + :deepLinkData => GoogleApi.ContentWarehouse.V1.Model.EmbedsDeepLinkData.t() | nil, + :id => String.t() | nil, + :provenance => GoogleApi.ContentWarehouse.V1.Model.EmbedsProvenance.t() | nil, + :renderId => String.t() | nil, + :signature => String.t() | nil, + :transientData => GoogleApi.ContentWarehouse.V1.Model.EmbedsTransientData.t() | nil, + :type => list(String.t()) | nil + } + + field(:canonicalId) + field(:deepLinkData, as: GoogleApi.ContentWarehouse.V1.Model.EmbedsDeepLinkData) + field(:id) + field(:provenance, as: GoogleApi.ContentWarehouse.V1.Model.EmbedsProvenance) + field(:renderId) + field(:signature) + field(:transientData, as: GoogleApi.ContentWarehouse.V1.Model.EmbedsTransientData) + field(:type, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.EmbedsEmbedClientItem do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.EmbedsEmbedClientItem.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.EmbedsEmbedClientItem do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_packaging_service_client.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_packaging_service_client.ex new file mode 100644 index 0000000000..7ae69710fd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_packaging_service_client.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.EmbedsPackagingServiceClient do + @moduledoc """ + Developers register a client in Google API Console to get the deep-linking feature on Google+ posts or frames about their apps. The client data is stored in this proto. + + ## Attributes + + * `androidPackageName` (*type:* `String.t`, *default:* `nil`) - Android app's package name to generate the deep-link URI. + * `iosAppStoreId` (*type:* `String.t`, *default:* `nil`) - iOS app's App Store ID to generate the App Store URL when app is not installed on device. + * `iosBundleId` (*type:* `String.t`, *default:* `nil`) - iOS app's bundle ID to generate the deep-link URI. + * `type` (*type:* `String.t`, *default:* `nil`) - Type of Google API Console client. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :androidPackageName => String.t() | nil, + :iosAppStoreId => String.t() | nil, + :iosBundleId => String.t() | nil, + :type => String.t() | nil + } + + field(:androidPackageName) + field(:iosAppStoreId) + field(:iosBundleId) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.EmbedsPackagingServiceClient do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.EmbedsPackagingServiceClient.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.EmbedsPackagingServiceClient do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_provenance.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_provenance.ex new file mode 100644 index 0000000000..9309579e79 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_provenance.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.EmbedsProvenance do + @moduledoc """ + This field records where the ItemScope was retrieved, if it was created via a web fetch. + + ## Attributes + + * `annotationBlob` (*type:* `String.t`, *default:* `nil`) - Annotation blob from Annotation Service. + * `canonicalUrl` (*type:* `String.t`, *default:* `nil`) - Canonical url of the retrieved_url, if one was resolved during retrieval, for example, if a rel="canonical" link tag was provided in the retrieved web page. + * `inputUrl` (*type:* `String.t`, *default:* `nil`) - The url originally passed in the PRS request, which should be used to re-discover the content. Note that this URL may be a forwarding service or link shortener (bit.ly), so it should not be assumed to be canonical, but should be used for navigation back to the original source of the itemscope. + * `itemtype` (*type:* `list(String.t)`, *default:* `nil`) - Contains exact types as parsed, whether or not we recognized that type at parse time. If an itemscope is created by merging SchemaOrg markup and open graph markup then the first itemtype would be schemaorg type, the second would be open graph and so on. example: http://schema.org/VideoObject, og:video.movie Plain text; usually a URL + * `retrievedTimestampMsec` (*type:* `String.t`, *default:* `nil`) - The server retrieved timestamp (in msec). + * `retrievedUrl` (*type:* `String.t`, *default:* `nil`) - The final URL that was the actual source of the itemscope, after any redirects. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :annotationBlob => String.t() | nil, + :canonicalUrl => String.t() | nil, + :inputUrl => String.t() | nil, + :itemtype => list(String.t()) | nil, + :retrievedTimestampMsec => String.t() | nil, + :retrievedUrl => String.t() | nil + } + + field(:annotationBlob) + field(:canonicalUrl) + field(:inputUrl) + field(:itemtype, type: :list) + field(:retrievedTimestampMsec) + field(:retrievedUrl) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.EmbedsProvenance do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.EmbedsProvenance.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.EmbedsProvenance do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_transient_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_transient_data.ex new file mode 100644 index 0000000000..18ae6f0a42 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/embeds_transient_data.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.EmbedsTransientData do + @moduledoc """ + Transient generic data that will not be saved on the server. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.EmbedsTransientData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.EmbedsTransientData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.EmbedsTransientData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/event_id_message.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/event_id_message.ex new file mode 100644 index 0000000000..29c5ffb651 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/event_id_message.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.EventIdMessage do + @moduledoc """ + An EventId is a 128 bit identifier that uniquely identifies an event, such as a query. The event time recorded to the nearest microsecond, along with information about the process generating the event, ensures that all EventIds are unique. Details of this EventId are described in a design document: http://www/eng/designdocs/sawmill/adlogs.html + + ## Attributes + + * `processId` (*type:* `integer()`, *default:* `nil`) - process_id is an integer that identifies the process on this machine that generated this event. This id is calculated once when the server generates its first event, and may change if the process is migrated to a different host. This field has a very specific format mandated by the logs collection infrastructure, which is subject to change WITHOUT NOTICE. As of 2013-01-09, this format is: uint32 process_id = (time(NULL) << 24) + (getpid() & 0xFFFFFF); If you are generating an extended_pid directly, you MUST use one of the maintained library implementations in order to generate it properly: C++ //borg/borgletlib:extended_pid; call borg::ExtendedPid() Python //borg/borgletlib/python:pyextendedpid; call ExtendedPid() Go //borg/borgletlib/go:extendedpid; call Get() Java //java/com/google/common/logging; call EventId.getPid() If you think that you need to parse the values of this field, please contact logs-collection-dev@ to discuss your requirement. + * `serverIp` (*type:* `integer()`, *default:* `nil`) - server_ip is the IPv4 address or http://go/ghostid of the machine running the server that created this event message. This allows us to distinguish between events that occur at the same time on different servers. Format: 10.1.2.3 is stored as 0x0a010203, and GHostId 1 as 0x00000001. + * `timeUsec` (*type:* `String.t`, *default:* `nil`) - time_usec is the number of microseconds since the epoch (i.e., since 1970-01-01 00:00:00 UTC) as an int64: 1e6 * (unix time) + microseconds. Applications must ensure that EventIdMessages have increasing times, artificially increasing time_usec to one greater than the previous value if necessary. Alternate implementations were considered: 1. storing unix time and microseconds separately would require a bit more storage, and the convenience of having a single value representing the time seemed more useful than having trivial access to a unix time. 2. storing unix time in the upper 32 bits would allow for more precision - up to 4G events/second, but it wouldn't print nicely as a decimal value and it seems unlikely that any single server would ever sustain more than 1M events/second. 3. Java-compatible time uses millis - this would limit servers to 1000 events per second - too small. Other names for this field were considered, including time, time_stamp, and utime. We felt that including the units in the name would tend to produce more readable code. utime might be interpreted as user time. unix timestamp * 1e6 + microseconds + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :processId => integer() | nil, + :serverIp => integer() | nil, + :timeUsec => String.t() | nil + } + + field(:processId) + field(:serverIp) + field(:timeUsec) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.EventIdMessage do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.EventIdMessage.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.EventIdMessage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response.ex new file mode 100644 index 0000000000..bef8465102 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponse do + @moduledoc """ + the extra info response from ascorer used to build snippets in GWS experiments + + ## Attributes + + * `matchinfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseMatchInfo.t`, *default:* `nil`) - + * `querysubitem` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseQuerySubitem.t)`, *default:* `nil`) - + * `tidbit` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseTidbit.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :matchinfo => + GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseMatchInfo.t() | nil, + :querysubitem => + list(GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseQuerySubitem.t()) + | nil, + :tidbit => + list(GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseTidbit.t()) | nil + } + + field(:matchinfo, as: GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseMatchInfo) + + field(:querysubitem, + as: GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseQuerySubitem, + type: :list + ) + + field(:tidbit, + as: GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseTidbit, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponse do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response_match_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response_match_info.ex new file mode 100644 index 0000000000..4650502405 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response_match_info.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseMatchInfo do + @moduledoc """ + + + ## Attributes + + * `titleMatches` (*type:* `String.t`, *default:* `nil`) - bitvector of query items matching the title + * `urlMatches` (*type:* `String.t`, *default:* `nil`) - bitvector of query items matching the url + * `weightedItems` (*type:* `String.t`, *default:* `nil`) - bitvector of query items considered by chooser + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :titleMatches => String.t() | nil, + :urlMatches => String.t() | nil, + :weightedItems => String.t() | nil + } + + field(:titleMatches) + field(:urlMatches) + field(:weightedItems) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseMatchInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseMatchInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseMatchInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response_query_subitem.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response_query_subitem.ex new file mode 100644 index 0000000000..f64bc7c768 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response_query_subitem.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseQuerySubitem do + @moduledoc """ + A query term, phrase, or synonym. An original query term or phrase is called an "item". Each item may have more than one "subitem" if there are synonyms. In rare cases a subitem may correspond to multiple items, such as the subitem "cia" in the query [central intelligence agency]. + + ## Attributes + + * `isHighlighted` (*type:* `boolean()`, *default:* `nil`) - Additional information from the SnippetQuery. + * `isOptional` (*type:* `boolean()`, *default:* `nil`) - + * `isOriginal` (*type:* `boolean()`, *default:* `nil`) - true iff this subitem was an original query term or phrase. Can only be false if want_all_query_subitems == true in the request. + * `items` (*type:* `integer()`, *default:* `nil`) - a bitvector of the query items corresponding to this subitem. Typically only one bit is set, but see comment above. + * `text` (*type:* `String.t`, *default:* `nil`) - text associated with this query item + * `weight` (*type:* `integer()`, *default:* `nil`) - the weight of this query item, as calculated by SubitemWeight(): https://qwiki.corp.google.com/display/Q/SnippetWeights + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isHighlighted => boolean() | nil, + :isOptional => boolean() | nil, + :isOriginal => boolean() | nil, + :items => integer() | nil, + :text => String.t() | nil, + :weight => integer() | nil + } + + field(:isHighlighted) + field(:isOptional) + field(:isOriginal) + field(:items) + field(:text) + field(:weight) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseQuerySubitem do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseQuerySubitem.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseQuerySubitem do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response_tidbit.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response_tidbit.ex new file mode 100644 index 0000000000..909628d9c2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response_tidbit.ex @@ -0,0 +1,68 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseTidbit do + @moduledoc """ + + + ## Attributes + + * `anchorinfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseTidbitAnchorInfo.t`, *default:* `nil`) - + * `begin` (*type:* `integer()`, *default:* `nil`) - For tidbits only: position of tidbit in the document. More specifically, tidbit is found at [begin, end) in the document's tokens. + * `end` (*type:* `integer()`, *default:* `nil`) - + * `items` (*type:* `String.t`, *default:* `nil`) - a bitvector of each query term within this tidbit + * `score` (*type:* `number()`, *default:* `nil`) - the score for this tidbit if there was one this is returned for Snippets and Tidbits and is only meaningful for comparing between objects of the same type (snippet to snippet, tidbit to tidbit) + * `text` (*type:* `String.t`, *default:* `nil`) - the tidbit text, with search terms already highlighted + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :anchorinfo => + GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseTidbitAnchorInfo.t() | nil, + :begin => integer() | nil, + :end => integer() | nil, + :items => String.t() | nil, + :score => number() | nil, + :text => String.t() | nil, + :type => String.t() | nil + } + + field(:anchorinfo, + as: GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseTidbitAnchorInfo + ) + + field(:begin) + field(:end) + field(:items) + field(:score) + field(:text) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseTidbit do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseTidbit.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseTidbit do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response_tidbit_anchor_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response_tidbit_anchor_info.ex new file mode 100644 index 0000000000..54e0337e24 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/extra_snippet_info_response_tidbit_anchor_info.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseTidbitAnchorInfo do + @moduledoc """ + this information is specific to anchors and is only returned if type == ANCHOR + + ## Attributes + + * `offdomainCount` (*type:* `integer()`, *default:* `nil`) - + * `ondomainCount` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :offdomainCount => integer() | nil, + :ondomainCount => integer() | nil + } + + field(:offdomainCount) + field(:ondomainCount) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseTidbitAnchorInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseTidbitAnchorInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseTidbitAnchorInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/face_indexing.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/face_indexing.ex new file mode 100644 index 0000000000..14a8ad4e23 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/face_indexing.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FaceIndexing do + @moduledoc """ + + + ## Attributes + + * `mustangBytes` (*type:* `String.t`, *default:* `nil`) - Always use image/search/utils/face_proto_util.h for packing and unpacking these values. + * `mustangBytesVersion` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :mustangBytes => String.t() | nil, + :mustangBytesVersion => integer() | nil + } + + field(:mustangBytes) + field(:mustangBytesVersion) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FaceIndexing do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FaceIndexing.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FaceIndexing do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_binary_classification.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_binary_classification.ex new file mode 100644 index 0000000000..7a7c8c3759 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_binary_classification.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FatcatCompactBinaryClassification do + @moduledoc """ + + + ## Attributes + + * `binaryClassifier` (*type:* `String.t`, *default:* `nil`) - Either binary_classifier will be set, using the enum above, or binary_classifier_name will be set, if it is not one of the classifiers in the enum - never both. + * `binaryClassifierName` (*type:* `String.t`, *default:* `nil`) - + * `discreteFraction` (*type:* `integer()`, *default:* `nil`) - A CompactDocClassification will not usually have a weight. For a CompactSiteClassification, this value will be 0...127 corresponding to 0.0...1.0, indicating fraction of the site that this label applies to + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :binaryClassifier => String.t() | nil, + :binaryClassifierName => String.t() | nil, + :discreteFraction => integer() | nil + } + + field(:binaryClassifier) + field(:binaryClassifierName) + field(:discreteFraction) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactBinaryClassification do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FatcatCompactBinaryClassification.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactBinaryClassification do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_doc_classification.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_doc_classification.ex new file mode 100644 index 0000000000..4cbd4f2cdb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_doc_classification.ex @@ -0,0 +1,79 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FatcatCompactDocClassification do + @moduledoc """ + The result of PetacatAnnotator. Each result contains: 1. RephilClusters; 2. At most 5 verticals from each taxonomy, sorted by the probabilities in descending order. 3. Binary classification results about page types and sensitive content. The types of taxonomies include: verticals4, geo, verticals4_geo, products_services, icm_im_audiences and icm_im_audiences_dev. + + ## Attributes + + * `binary` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.FatcatCompactBinaryClassification.t)`, *default:* `nil`) - + * `clusters` (*type:* `GoogleApi.ContentWarehouse.V1.Model.FatcatCompactRephilClusters.t`, *default:* `nil`) - + * `epoch` (*type:* `String.t`, *default:* `nil`) - + * `langCode` (*type:* `String.t`, *default:* `nil`) - + * `rephilModelId` (*type:* `integer()`, *default:* `nil`) - The id of the Rephil model used to generate the Rephil clusters. If it is absent, Rephil 4 is assumed. + * `taxonomic` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.FatcatCompactTaxonomicClassification.t)`, *default:* `nil`) - + * `url` (*type:* `String.t`, *default:* `nil`) - not needed if the url is the sstable / bigtable key used during intermediate processing only + * `weight` (*type:* `String.t`, *default:* `nil`) - The relative weight of this doc within a site, typically something like pagerank or navboost impressions. May be a large number (like an actual pageviews estimate), not limited to a small range. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :binary => + list(GoogleApi.ContentWarehouse.V1.Model.FatcatCompactBinaryClassification.t()) | nil, + :clusters => GoogleApi.ContentWarehouse.V1.Model.FatcatCompactRephilClusters.t() | nil, + :epoch => String.t() | nil, + :langCode => String.t() | nil, + :rephilModelId => integer() | nil, + :taxonomic => + list(GoogleApi.ContentWarehouse.V1.Model.FatcatCompactTaxonomicClassification.t()) + | nil, + :url => String.t() | nil, + :weight => String.t() | nil + } + + field(:binary, + as: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactBinaryClassification, + type: :list + ) + + field(:clusters, as: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactRephilClusters) + field(:epoch) + field(:langCode) + field(:rephilModelId) + + field(:taxonomic, + as: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactTaxonomicClassification, + type: :list + ) + + field(:url) + field(:weight) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactDocClassification do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FatcatCompactDocClassification.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactDocClassification do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_rephil_clusters.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_rephil_clusters.ex new file mode 100644 index 0000000000..477bc41989 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_rephil_clusters.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FatcatCompactRephilClusters do + @moduledoc """ + + + ## Attributes + + * `cluster` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.FatcatCompactRephilClustersCluster.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cluster => + list(GoogleApi.ContentWarehouse.V1.Model.FatcatCompactRephilClustersCluster.t()) | nil + } + + field(:cluster, + as: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactRephilClustersCluster, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactRephilClusters do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FatcatCompactRephilClusters.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactRephilClusters do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_rephil_clusters_cluster.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_rephil_clusters_cluster.ex new file mode 100644 index 0000000000..58e81de2fb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_rephil_clusters_cluster.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FatcatCompactRephilClustersCluster do + @moduledoc """ + + + ## Attributes + + * `discreteWeight` (*type:* `integer()`, *default:* `nil`) - 0...127 corresponds to 0.0 - 1.0 + * `id` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :discreteWeight => integer() | nil, + :id => integer() | nil + } + + field(:discreteWeight) + field(:id) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactRephilClustersCluster do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FatcatCompactRephilClustersCluster.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactRephilClustersCluster do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_taxonomic_classification.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_taxonomic_classification.ex new file mode 100644 index 0000000000..ebe7e45535 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_taxonomic_classification.ex @@ -0,0 +1,68 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FatcatCompactTaxonomicClassification do + @moduledoc """ + A version of this proto for logging is available at cs/symbol:logged_fatcat.LoggedCompactTaxonomicClassification + + ## Attributes + + * `category` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.FatcatCompactTaxonomicClassificationCategory.t)`, *default:* `nil`) - + * `classifierVersion` (*type:* `String.t`, *default:* `nil`) - + * `taxonomy` (*type:* `String.t`, *default:* `nil`) - Either taxonomy will be set, using the enum above, or taxonomy_name will be set (if the taxonomy is not one of the ones in the enum) - never both + * `taxonomyName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :category => + list( + GoogleApi.ContentWarehouse.V1.Model.FatcatCompactTaxonomicClassificationCategory.t() + ) + | nil, + :classifierVersion => String.t() | nil, + :taxonomy => String.t() | nil, + :taxonomyName => String.t() | nil + } + + field(:category, + as: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactTaxonomicClassificationCategory, + type: :list + ) + + field(:classifierVersion) + field(:taxonomy) + field(:taxonomyName) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactTaxonomicClassification do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FatcatCompactTaxonomicClassification.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactTaxonomicClassification do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_taxonomic_classification_category.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_taxonomic_classification_category.ex new file mode 100644 index 0000000000..3a78d49983 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/fatcat_compact_taxonomic_classification_category.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FatcatCompactTaxonomicClassificationCategory do + @moduledoc """ + A taxonomic category. A classification consists of weight (totalling 1.0) distributed among one or more categories. + + ## Attributes + + * `discreteWeight` (*type:* `integer()`, *default:* `nil`) - go/petacat-faq#how-should-i-interpret-classification-weights Discrete to reduce size. Range is [0,127], corresponding to [0.0,1.0]. + * `id` (*type:* `integer()`, *default:* `nil`) - The category's ID, e.g. 20 for /Sports in the go/verticals4 taxonomy. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :discreteWeight => integer() | nil, + :id => integer() | nil + } + + field(:discreteWeight) + field(:id) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactTaxonomicClassificationCategory do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FatcatCompactTaxonomicClassificationCategory.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.FatcatCompactTaxonomicClassificationCategory do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_contact_detail_hash.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_contact_detail_hash.ex new file mode 100644 index 0000000000..cd884b82e7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_contact_detail_hash.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FocusBackendContactDetailHash do + @moduledoc """ + http://go/contact-detail-hash. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - + * `value` (*type:* `integer()`, *default:* `nil`) - The hash here will be a 16-bit weak hash to avoid reverse engineering for decoding the actual contact detail. The hash value is computed by the fingerprint of the raw contact detail mod 2^16. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil, + :value => integer() | nil + } + + field(:type) + field(:value) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FocusBackendContactDetailHash do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FocusBackendContactDetailHash.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FocusBackendContactDetailHash do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_contact_pointer.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_contact_pointer.ex new file mode 100644 index 0000000000..d0d227330b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_contact_pointer.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FocusBackendContactPointer do + @moduledoc """ + A contact pointer that represents a contact (http://go/assistant-contact-id). + + ## Attributes + + * `annotationId` (*type:* `String.t`, *default:* `nil`) - The annotation ID. Annotations are only allowed to point to annotations that do not themselves have a pointer (avoids any possibilty of loops). Cast this field to string in javascript to make it compile in js. + * `deviceRawContactId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceRawContactId.t`, *default:* `nil`) - The raw contact ID from an active mobile device of the user. + * `focusContactId` (*type:* `String.t`, *default:* `nil`) - The contact ID from the Focus backend. Cast this field to string in javascript to make it compile in js. + * `otherContactId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.FocusBackendOtherContactId.t`, *default:* `nil`) - Additional contact ids that are not actively used to match contact pointers to contacts. + * `secondaryId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.FocusBackendSecondaryContactId.t`, *default:* `nil`) - The secondary identifier of contact. It will be used when the primary ID doesn't match any contact. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :annotationId => String.t() | nil, + :deviceRawContactId => + GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceRawContactId.t() | nil, + :focusContactId => String.t() | nil, + :otherContactId => + GoogleApi.ContentWarehouse.V1.Model.FocusBackendOtherContactId.t() | nil, + :secondaryId => + GoogleApi.ContentWarehouse.V1.Model.FocusBackendSecondaryContactId.t() | nil + } + + field(:annotationId) + + field(:deviceRawContactId, + as: GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceRawContactId + ) + + field(:focusContactId) + field(:otherContactId, as: GoogleApi.ContentWarehouse.V1.Model.FocusBackendOtherContactId) + field(:secondaryId, as: GoogleApi.ContentWarehouse.V1.Model.FocusBackendSecondaryContactId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FocusBackendContactPointer do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FocusBackendContactPointer.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FocusBackendContactPointer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_device_contact_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_device_contact_id.ex new file mode 100644 index 0000000000..4b2b04dfdc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_device_contact_id.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceContactId do + @moduledoc """ + //////////////////// DeviceContactId ////////////////////// Used by Device Contacts only. For more details see go/fbs-support-for-device-contacts. + + ## Attributes + + * `ContactId` (*type:* `String.t`, *default:* `nil`) - DeviceContact Id. + * `DeviceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceId.t`, *default:* `nil`) - Device Id. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ContactId => String.t() | nil, + :DeviceId => GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceId.t() | nil + } + + field(:ContactId) + field(:DeviceId, as: GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceContactId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceContactId.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceContactId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_device_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_device_id.ex new file mode 100644 index 0000000000..a15d27e083 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_device_id.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceId do + @moduledoc """ + //////////////////// DeviceId ////////////////////// Used by Device Contacts only. For more details see go/fbs-support-for-device-contacts. + + ## Attributes + + * `AndroidDeviceId` (*type:* `String.t`, *default:* `nil`) - The GServices id on Android. See go/android-id. + * `Hash` (*type:* `String.t`, *default:* `nil`) - DeviceId.Hash is a SHA256 of some attribute of the user and device. For Android devices: Hash = SHA256(gaia_account_name + “:” + “1” + “:” + (android id - LSB)); For iOS devices: Hash = TOLOWER(HEX(GMCSComputeUserDeviceToken(userId, iOsDeviceId)) For more details see go/client-instance-id. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :AndroidDeviceId => String.t() | nil, + :Hash => String.t() | nil + } + + field(:AndroidDeviceId) + field(:Hash) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceId.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_device_raw_contact_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_device_raw_contact_id.ex new file mode 100644 index 0000000000..437c1dfa8e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_device_raw_contact_id.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceRawContactId do + @moduledoc """ + //////////////////// DeviceRawContactId ////////////////////// Used by Device Contacts Only. The Raw ID as assigned to the original contact on the device. For more details see go/fbs-support-for-device-contacts. + + ## Attributes + + * `DeviceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceId.t`, *default:* `nil`) - + * `RawContactId` (*type:* `String.t`, *default:* `nil`) - Raw ID assigned by the device. Cast this field to string in javascript to make it compile in js. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :DeviceId => GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceId.t() | nil, + :RawContactId => String.t() | nil + } + + field(:DeviceId, as: GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceId) + field(:RawContactId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceRawContactId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceRawContactId.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceRawContactId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_other_contact_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_other_contact_id.ex new file mode 100644 index 0000000000..9c217f30c1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_other_contact_id.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FocusBackendOtherContactId do + @moduledoc """ + Additional contact ids that are not actively used to match contact pointers to contacts. There may be overlap with primary or secondary contact ids. + + ## Attributes + + * `deviceContactId` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceContactId.t)`, *default:* `nil`) - Device contact ID, when available: - The annotation points to a device contact, and the device contact id was correctly populated when the annotation was created. Note that the device contact id is populated once per device contact on a device. It is distinct from RawContactId - a single device contact may have multiple raw contact ids. - The annotation points to a Focus contact that was merged with device contact information in Starlight. When the annotation was created, a device contact id was available on the merged person object. - The contact annotation was created from April 2021 onwards. All prior annotations do not populate this field. ContactPointer creation relies on the client caller to correctly populate the device contact id, and does not enforce any assumptions on availability of this field. This field is repeated because in rare cases Starlight may merge device contact information across different devices into a single merged person object. WARNING: Use with extreme caution! This ID is not stable. For more details see go/fbs-support-for-device-contacts. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceContactId => + list(GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceContactId.t()) | nil + } + + field(:deviceContactId, + as: GoogleApi.ContentWarehouse.V1.Model.FocusBackendDeviceContactId, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FocusBackendOtherContactId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FocusBackendOtherContactId.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FocusBackendOtherContactId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_secondary_contact_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_secondary_contact_id.ex new file mode 100644 index 0000000000..0ef5e8ca4f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/focus_backend_secondary_contact_id.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FocusBackendSecondaryContactId do + @moduledoc """ + The secondary ID of a contact. + + ## Attributes + + * `contactDetailHash` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.FocusBackendContactDetailHash.t)`, *default:* `nil`) - The hashes of the contact details (e.g. phone number and email address). + * `contactName` (*type:* `String.t`, *default:* `nil`) - The contact's full name, not hashed. + * `contactNameHash` (*type:* `String.t`, *default:* `nil`) - The hash of contact's full name, generated using Fingerprint2011(). Cast this field to string in javascript to make it compile in js. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contactDetailHash => + list(GoogleApi.ContentWarehouse.V1.Model.FocusBackendContactDetailHash.t()) | nil, + :contactName => String.t() | nil, + :contactNameHash => String.t() | nil + } + + field(:contactDetailHash, + as: GoogleApi.ContentWarehouse.V1.Model.FocusBackendContactDetailHash, + type: :list + ) + + field(:contactName) + field(:contactNameHash) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FocusBackendSecondaryContactId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FocusBackendSecondaryContactId.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FocusBackendSecondaryContactId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_citation.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_citation.ex new file mode 100644 index 0000000000..b39e783225 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_citation.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FreebaseCitation do + @moduledoc """ + Citation contains the information needed to correctly attribute the source of data. + + ## Attributes + + * `dataset` (*type:* `String.t`, *default:* `nil`) - Mid of the dataset. + * `isAttributionRequired` (*type:* `boolean()`, *default:* `nil`) - If set to true, the citation is required to be displayed when the data is used. + * `project` (*type:* `String.t`, *default:* `nil`) - Name of the project of the data's origin. + * `provider` (*type:* `String.t`, *default:* `nil`) - The name of the provider of this information. + * `statement` (*type:* `String.t`, *default:* `nil`) - A human readable statement of attribution. + * `uri` (*type:* `String.t`, *default:* `nil`) - Uri link associated with this data. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataset => String.t() | nil, + :isAttributionRequired => boolean() | nil, + :project => String.t() | nil, + :provider => String.t() | nil, + :statement => String.t() | nil, + :uri => String.t() | nil + } + + field(:dataset) + field(:isAttributionRequired) + field(:project) + field(:provider) + field(:statement) + field(:uri) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebaseCitation do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FreebaseCitation.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebaseCitation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_id.ex new file mode 100644 index 0000000000..cfc1aa37b1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_id.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FreebaseId do + @moduledoc """ + An Id contains the identifiers used to reference this topic (entity) in the Knowledge Graph. The Knowledge Graph supports several forms of identifiers: - "mids" (machine ids) that are assigned at creation time, and support a resolution mechanism that tracks topics after they are merged (for more about mids, see go/kg-mid), - "ids" are human-readable ids (HRIDs) that are derived from a namespace hierarchy stored in Knowledge Graph, and a set of rules, - "guids" are low-level ids historically used in Freebase (pre-Knowledge Graph, deprecated). Only the mid and id are supplied here. Note that mids can be converted to guids or uint64s (see //metaweb/util/mid/mid.h). + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - "id" may be a human readable ID (HRID) or a MID. Originally it was intended to always be a human readable ID, but that convention was not always followed so clients should be wary. Not every topic has an id. + * `mid` (*type:* `String.t`, *default:* `nil`) - The "mid" should be used whenever a globally unique, primary key into the Knowledge Graph is needed. These keys are always prefixed with the "/m" and "/g", (and more rarely the "/x" and "/t") namespaces, and are alphanumeric strings consisting of lowercase letters excluding vowels, numbers and the underscore character. (Applications should not assume a constant length for these strings as Livegraph reserves the right to extend the number of characters to accommodate more topics.) + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :mid => String.t() | nil + } + + field(:id) + field(:mid) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebaseId do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FreebaseId.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebaseId do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_lat_long.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_lat_long.ex new file mode 100644 index 0000000000..2d037817e2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_lat_long.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FreebaseLatLong do + @moduledoc """ + Represents a geopoint, which is one of the possible Value types. + + ## Attributes + + * `latDeg` (*type:* `number()`, *default:* `nil`) - + * `longDeg` (*type:* `number()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :latDeg => number() | nil, + :longDeg => number() | nil + } + + field(:latDeg) + field(:longDeg) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebaseLatLong do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FreebaseLatLong.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebaseLatLong do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_measurement.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_measurement.ex new file mode 100644 index 0000000000..c9c68b5613 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_measurement.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurement do + @moduledoc """ + Represents a measurements, which is one of the possible Value types. A measurement value like "5.2 meter^2 / second" would be represented as: magnitude: 5.2 unit { unit_mid: "/m/mid_for_meter" power: 2 } unit { unit_mid: "/m/mid_for_second" power: -1 } + + ## Attributes + + * `magnitude` (*type:* `number()`, *default:* `nil`) - + * `unit` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurementUnit.t)`, *default:* `nil`) - Repeated units are interpreted as a product. i.e. (meter ^ 1) * (second ^ -2) + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :magnitude => number() | nil, + :unit => list(GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurementUnit.t()) | nil + } + + field(:magnitude) + field(:unit, as: GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurementUnit, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurement do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurement.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurement do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_measurement_unit.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_measurement_unit.ex new file mode 100644 index 0000000000..c264a39527 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_measurement_unit.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurementUnit do + @moduledoc """ + + + ## Attributes + + * `power` (*type:* `integer()`, *default:* `nil`) - + * `unit` (*type:* `GoogleApi.ContentWarehouse.V1.Model.FreebaseId.t`, *default:* `nil`) - + * `unitMid` (*type:* `String.t`, *default:* `nil`) - Deprecated fields. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :power => integer() | nil, + :unit => GoogleApi.ContentWarehouse.V1.Model.FreebaseId.t() | nil, + :unitMid => String.t() | nil + } + + field(:power) + field(:unit, as: GoogleApi.ContentWarehouse.V1.Model.FreebaseId) + field(:unitMid) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurementUnit do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurementUnit.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurementUnit do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_nested_struct.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_nested_struct.ex new file mode 100644 index 0000000000..ff842ce4eb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_nested_struct.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FreebaseNestedStruct do + @moduledoc """ + List of { predicate, { object } } to be processed as a Nested Struct. Nested Struct can be recursive. NestedStruct.property_value(i).value(j) may have nested_struct field. + + ## Attributes + + * `propertyValue` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.FreebasePropertyValue.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :propertyValue => + list(GoogleApi.ContentWarehouse.V1.Model.FreebasePropertyValue.t()) | nil + } + + field(:propertyValue, as: GoogleApi.ContentWarehouse.V1.Model.FreebasePropertyValue, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebaseNestedStruct do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FreebaseNestedStruct.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebaseNestedStruct do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_property_value.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_property_value.ex new file mode 100644 index 0000000000..a59f0d8ce8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_property_value.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FreebasePropertyValue do + @moduledoc """ + A PropertyValue associates properties with values in the context of a topic. + + ## Attributes + + * `property` (*type:* `GoogleApi.ContentWarehouse.V1.Model.FreebaseId.t`, *default:* `nil`) - The id of the property. + * `totalValueCount` (*type:* `String.t`, *default:* `nil`) - Indicates the total values that exist for this property, even if they aren't all present in the value field, due to truncation. + * `value` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.FreebaseValue.t)`, *default:* `nil`) - The value associated with the property for the containing topic. + * `valueStatus` (*type:* `String.t`, *default:* `nil`) - If ValueStatus is not set at all, the implication is that there are well-known value(s), specified in the "value" field. (It should be considered malformed data to have value_status set when len(values) > 0.) + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :property => GoogleApi.ContentWarehouse.V1.Model.FreebaseId.t() | nil, + :totalValueCount => String.t() | nil, + :value => list(GoogleApi.ContentWarehouse.V1.Model.FreebaseValue.t()) | nil, + :valueStatus => String.t() | nil + } + + field(:property, as: GoogleApi.ContentWarehouse.V1.Model.FreebaseId) + field(:totalValueCount) + field(:value, as: GoogleApi.ContentWarehouse.V1.Model.FreebaseValue, type: :list) + field(:valueStatus) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebasePropertyValue do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FreebasePropertyValue.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebasePropertyValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_topic.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_topic.ex new file mode 100644 index 0000000000..0474c1f038 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_topic.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FreebaseTopic do + @moduledoc """ + A Topic represents a Knowledge Graph entity with its associated properties and their values. + + ## Attributes + + * `id` (*type:* `GoogleApi.ContentWarehouse.V1.Model.FreebaseId.t`, *default:* `nil`) - The id (mid and human-readable id) of the topic. The id will always be present and will contain a mid value for topics in the topic sstable. + * `propertyValue` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.FreebasePropertyValue.t)`, *default:* `nil`) - The property-value bindings associated with the topic. Note that in the case where a property is relevant to a topic based on its type, but no values of that property are present for the topic, the PropertyValue will simply not appear, rather than being present with a null value, or empty repeated value list. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => GoogleApi.ContentWarehouse.V1.Model.FreebaseId.t() | nil, + :propertyValue => + list(GoogleApi.ContentWarehouse.V1.Model.FreebasePropertyValue.t()) | nil + } + + field(:id, as: GoogleApi.ContentWarehouse.V1.Model.FreebaseId) + + field(:propertyValue, as: GoogleApi.ContentWarehouse.V1.Model.FreebasePropertyValue, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebaseTopic do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FreebaseTopic.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebaseTopic do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_value.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_value.ex new file mode 100644 index 0000000000..aeca8e4d6e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/freebase_value.ex @@ -0,0 +1,121 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.FreebaseValue do + @moduledoc """ + Values are effectively a union of several possible Knowledge Graph types: simple primitive datatypes such as booleans, integers and floats, references to other Knowledge Graph topics (by id), or "compound values" which are expressed as embedded topics with associated properties and values. Values occur in indexed order (if any). + + ## Attributes + + * `boolValue` (*type:* `boolean()`, *default:* `nil`) - key, uri, or datetime. Present when value is bool. + * `citation` (*type:* `GoogleApi.ContentWarehouse.V1.Model.FreebaseCitation.t`, *default:* `nil`) - Citation data for this value. See: http://go/kg-clap + * `compoundValue` (*type:* `GoogleApi.ContentWarehouse.V1.Model.FreebaseTopic.t`, *default:* `nil`) - Compound values are those that contain either a number of simple valued facets (such as a latitude/longitude pair), or "mediator" topics representing multi-dimensional relationships between topics. In both cases we represent them here with an embedded topic, although the topic's identity is somewhat secondary to the property/value pairs it contains. (The identity is still made available so that it can be used to perform updates to that mediator on the Knowledge Graph.) + * `deletionProvenance` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.StorageGraphBfgTripleProvenance.t)`, *default:* `nil`) - Deletion provenance for this value. + * `displayLang` (*type:* `String.t`, *default:* `nil`) - The lang of the display_value field. + * `displayValue` (*type:* `String.t`, *default:* `nil`) - The display value of this value. This is a i18n-aware formatted value if present. + * `expectedProto` (*type:* `String.t`, *default:* `nil`) - An optional name for a proto field. + * `floatValue` (*type:* `float()`, *default:* `nil`) - Present when value is float. + * `idValue` (*type:* `GoogleApi.ContentWarehouse.V1.Model.FreebaseId.t`, *default:* `nil`) - Present when value is an id. + * `index` (*type:* `String.t`, *default:* `nil`) - Index of the value relative to the containing property (if any). Knowledge Graph supports a loose notion of indexing: some non-unique properties may have indices, while others may not. Furthermore, for a single property, some values may have indices (such as the top 5 actors in a film), while others may not (the film's supporting cast). Un-indexed values will appear at the end of the repeated value list. This field contains the index value only when is present in the Knowledge Graph. + * `intValue` (*type:* `String.t`, *default:* `nil`) - Present when value is int. + * `lang` (*type:* `String.t`, *default:* `nil`) - Whenever the value is text with TYPE_TEXT, the lang field is populated with the III LanguageCode associated with the string_value field. + * `latLongValue` (*type:* `GoogleApi.ContentWarehouse.V1.Model.FreebaseLatLong.t`, *default:* `nil`) - + * `measurementValue` (*type:* `GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurement.t`, *default:* `nil`) - + * `nestedStruct` (*type:* `GoogleApi.ContentWarehouse.V1.Model.FreebaseNestedStruct.t`, *default:* `nil`) - Populated if this value holds NestedStruct. 'type' field needs to be set to TYPE_NESTED_STRUCT. + * `provenance` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.StorageGraphBfgTripleProvenance.t)`, *default:* `nil`) - Provenance for this value. + * `rawValue` (*type:* `String.t`, *default:* `nil`) - Similar to string_value/etc but contains raw bytes. + * `stringValue` (*type:* `String.t`, *default:* `nil`) - Present when value is text, enum, + * `subgraphId` (*type:* `list(String.t)`, *default:* `nil`) - + * `timestamp` (*type:* `String.t`, *default:* `nil`) - The ISO-8601 timestamp corresponding to when this value was created (when it was written to the Knowledge Graph). Deprecated in favor of timestamp_usec. + * `timestampUsec` (*type:* `String.t`, *default:* `nil`) - The microsecond timestamp corresponding to when this value was created. + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :boolValue => boolean() | nil, + :citation => GoogleApi.ContentWarehouse.V1.Model.FreebaseCitation.t() | nil, + :compoundValue => GoogleApi.ContentWarehouse.V1.Model.FreebaseTopic.t() | nil, + :deletionProvenance => + list(GoogleApi.ContentWarehouse.V1.Model.StorageGraphBfgTripleProvenance.t()) | nil, + :displayLang => String.t() | nil, + :displayValue => String.t() | nil, + :expectedProto => String.t() | nil, + :floatValue => float() | nil, + :idValue => GoogleApi.ContentWarehouse.V1.Model.FreebaseId.t() | nil, + :index => String.t() | nil, + :intValue => String.t() | nil, + :lang => String.t() | nil, + :latLongValue => GoogleApi.ContentWarehouse.V1.Model.FreebaseLatLong.t() | nil, + :measurementValue => GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurement.t() | nil, + :nestedStruct => GoogleApi.ContentWarehouse.V1.Model.FreebaseNestedStruct.t() | nil, + :provenance => + list(GoogleApi.ContentWarehouse.V1.Model.StorageGraphBfgTripleProvenance.t()) | nil, + :rawValue => String.t() | nil, + :stringValue => String.t() | nil, + :subgraphId => list(String.t()) | nil, + :timestamp => String.t() | nil, + :timestampUsec => String.t() | nil, + :type => String.t() | nil + } + + field(:boolValue) + field(:citation, as: GoogleApi.ContentWarehouse.V1.Model.FreebaseCitation) + field(:compoundValue, as: GoogleApi.ContentWarehouse.V1.Model.FreebaseTopic) + + field(:deletionProvenance, + as: GoogleApi.ContentWarehouse.V1.Model.StorageGraphBfgTripleProvenance, + type: :list + ) + + field(:displayLang) + field(:displayValue) + field(:expectedProto) + field(:floatValue) + field(:idValue, as: GoogleApi.ContentWarehouse.V1.Model.FreebaseId) + field(:index) + field(:intValue) + field(:lang) + field(:latLongValue, as: GoogleApi.ContentWarehouse.V1.Model.FreebaseLatLong) + field(:measurementValue, as: GoogleApi.ContentWarehouse.V1.Model.FreebaseMeasurement) + field(:nestedStruct, as: GoogleApi.ContentWarehouse.V1.Model.FreebaseNestedStruct) + + field(:provenance, + as: GoogleApi.ContentWarehouse.V1.Model.StorageGraphBfgTripleProvenance, + type: :list + ) + + field(:rawValue) + field(:stringValue) + field(:subgraphId, type: :list) + field(:timestamp) + field(:timestampUsec) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebaseValue do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.FreebaseValue.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.FreebaseValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/g_document_base.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/g_document_base.ex new file mode 100644 index 0000000000..913200fcd3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/g_document_base.ex @@ -0,0 +1,137 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GDocumentBase do + @moduledoc """ + Next id: 127 + + ## Attributes + + * `ContentExpiryTime` (*type:* `integer()`, *default:* `nil`) - unix secs from epoch + * `DisplayUrl` (*type:* `String.t`, *default:* `nil`) - Sometimes the URL displayed in search results should be different from what gets indexed (e.g. in enterprise, content management systems). If this value is not set, we default to the regular URL. + * `DocId` (*type:* `String.t`, *default:* `nil`) - 64-bit docid of the document (usually fingerprint of URL, but not always). WARNING: This does NOT uniquely identify a document ANYMORE. For a unique identifier across all documents in production please refer to the field 'id().key()' listed above. + * `ExternalFeedMetadata` (*type:* `String.t`, *default:* `nil`) - + * `ExternalHttpMetadata` (*type:* `String.t`, *default:* `nil`) - Enterprise-specific external metadata. See http://engdoc/eng/designdocs/enterprise/enterprise_indexing_metadata.html + * `FilterForSafeSearch` (*type:* `integer()`, *default:* `nil`) - Deprecated, do not use, this field is not populated since 2012. + * `IPAddr` (*type:* `String.t`, *default:* `nil`) - IP addr in binary (allows for IPv6) + * `NoArchiveReason` (*type:* `integer()`, *default:* `nil`) - + * `NoFollowReason` (*type:* `integer()`, *default:* `nil`) - + * `NoImageIndexReason` (*type:* `integer()`, *default:* `nil`) - + * `NoImageframeOverlayReason` (*type:* `integer()`, *default:* `nil`) - + * `NoIndexReason` (*type:* `integer()`, *default:* `nil`) - When these reasons are set to a non zero value, the document should not be indexed, or show a snippet, or show a cache, etc. These reasons are bit maps of indexing.converter.RobotsInfo.RobotedReasons enum values reflecting the places where the restriction was found. + * `NoPreviewReason` (*type:* `integer()`, *default:* `nil`) - + * `NoSnippetReason` (*type:* `integer()`, *default:* `nil`) - + * `NoTranslateReason` (*type:* `integer()`, *default:* `nil`) - + * `Pagerank` (*type:* `integer()`, *default:* `nil`) - This field is long-deprecated in favour of Pagerank_NS, it is no longer maintained and can break at any moment. + * `PagerankNS` (*type:* `integer()`, *default:* `nil`) - Pagerank-NearestSeeds is a pagerank score for the doc, calculated using NearestSeeds method. This is the production PageRank value teams should use. + * `Repid` (*type:* `String.t`, *default:* `nil`) - is the webmirror representative id of the canonical url. Urls with the same repid are considered as dups in webmirror. WARNING: use this field with caution! The webmirror duprules change frequently, so this value only reflects the duprules at the time when the canonical's docjoin is built. + * `ScienceMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.ScienceCitation.t`, *default:* `nil`) - Citation data for science articles. + * `URL` (*type:* `String.t`, *default:* `nil`) - WARNING: the URL does NOT uniquely identify a document ANYMORE. For a unique identifier across all documents in production please refer to the field 'id().key()' listed above. Reason: foo.bar:/http and foo.bar:/http:SMARTPHONE share the same URL, but the body of the two documents might differ because of different crawl-context (desktop vs. smartphone in this example). + * `URLAfterRedirects` (*type:* `String.t`, *default:* `nil`) - + * `URLEncoding` (*type:* `integer()`, *default:* `nil`) - See webutil/urlencoding + * `content` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseContent.t`, *default:* `nil`) - + * `directory` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseDirectory.t)`, *default:* `nil`) - + * `ecnFp` (*type:* `String.t`, *default:* `nil`) - 96-bit fingerprint of the canonical url's webmirror equivalence class name as of when this cdoc was exported. + * `id` (*type:* `GoogleApi.ContentWarehouse.V1.Model.IndexingCrawlerIdServingDocumentIdentifier.t`, *default:* `nil`) - The primary identifier of a production document is the document key given in the ServingDocumentIdentifier, which is the same as the row-key in Alexandria, and represents a URL and its crawling context. In your production code, please always assume that the document key is the only way to uniquely identify a document. ## Recommended way of reading: const string& doc_key = cdoc.doc().id().key(); ## CHECK(!doc_key.empty()); More background information can be found in google3/indexing/crawler_id/servingdocumentidentifier.proto The ServingDocumentIdentifier uniquely identifies a document in serving and also distinguishes between experimental vs. production documents. The SDI is also used as an input for the union/muppet key generation in serving. + * `localsearchDocInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.LocalsearchDocInfo.t`, *default:* `nil`) - Localsearch-specific data. + * `oceanDocInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.OceanDocInfo.t`, *default:* `nil`) - Ocean-specific data. + * `originalcontent` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseOriginalContent.t`, *default:* `nil`) - + * `userAgentName` (*type:* `String.t`, *default:* `nil`) - The user agent name used to crawl the URL. See //crawler/engine/webmirror_user_agents.h for the list of user-agents (e.g. crawler::WebmirrorUserAgents::kGoogleBot). NOTE: This field is copied from the first WEBMIRROR FetchReplyClientInfo in trawler_fetch_info column. We leave this field unpopulated if no WEBMIRROR FecthReplyClientInfo is found. As the submission of cl/51488336, Alexandria starts to populate this field. However, docjoins from freshdocs (or any other source), won't have this field populated, because we believe no one needs to read this field from freshdocs docjoins. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ContentExpiryTime => integer() | nil, + :DisplayUrl => String.t() | nil, + :DocId => String.t() | nil, + :ExternalFeedMetadata => String.t() | nil, + :ExternalHttpMetadata => String.t() | nil, + :FilterForSafeSearch => integer() | nil, + :IPAddr => String.t() | nil, + :NoArchiveReason => integer() | nil, + :NoFollowReason => integer() | nil, + :NoImageIndexReason => integer() | nil, + :NoImageframeOverlayReason => integer() | nil, + :NoIndexReason => integer() | nil, + :NoPreviewReason => integer() | nil, + :NoSnippetReason => integer() | nil, + :NoTranslateReason => integer() | nil, + :Pagerank => integer() | nil, + :PagerankNS => integer() | nil, + :Repid => String.t() | nil, + :ScienceMetadata => GoogleApi.ContentWarehouse.V1.Model.ScienceCitation.t() | nil, + :URL => String.t() | nil, + :URLAfterRedirects => String.t() | nil, + :URLEncoding => integer() | nil, + :content => GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseContent.t() | nil, + :directory => + list(GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseDirectory.t()) | nil, + :ecnFp => String.t() | nil, + :id => + GoogleApi.ContentWarehouse.V1.Model.IndexingCrawlerIdServingDocumentIdentifier.t() + | nil, + :localsearchDocInfo => GoogleApi.ContentWarehouse.V1.Model.LocalsearchDocInfo.t() | nil, + :oceanDocInfo => GoogleApi.ContentWarehouse.V1.Model.OceanDocInfo.t() | nil, + :originalcontent => + GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseOriginalContent.t() | nil, + :userAgentName => String.t() | nil + } + + field(:ContentExpiryTime) + field(:DisplayUrl) + field(:DocId) + field(:ExternalFeedMetadata) + field(:ExternalHttpMetadata) + field(:FilterForSafeSearch) + field(:IPAddr) + field(:NoArchiveReason) + field(:NoFollowReason) + field(:NoImageIndexReason) + field(:NoImageframeOverlayReason) + field(:NoIndexReason) + field(:NoPreviewReason) + field(:NoSnippetReason) + field(:NoTranslateReason) + field(:Pagerank) + field(:PagerankNS) + field(:Repid) + field(:ScienceMetadata, as: GoogleApi.ContentWarehouse.V1.Model.ScienceCitation) + field(:URL) + field(:URLAfterRedirects) + field(:URLEncoding) + field(:content, as: GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseContent) + field(:directory, as: GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseDirectory, type: :list) + field(:ecnFp) + field(:id, as: GoogleApi.ContentWarehouse.V1.Model.IndexingCrawlerIdServingDocumentIdentifier) + field(:localsearchDocInfo, as: GoogleApi.ContentWarehouse.V1.Model.LocalsearchDocInfo) + field(:oceanDocInfo, as: GoogleApi.ContentWarehouse.V1.Model.OceanDocInfo) + field(:originalcontent, as: GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseOriginalContent) + field(:userAgentName) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GDocumentBase do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GDocumentBase.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GDocumentBase do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/g_document_base_content.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/g_document_base_content.ex new file mode 100644 index 0000000000..2730890e7b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/g_document_base_content.ex @@ -0,0 +1,82 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseContent do + @moduledoc """ + Main content section + + ## Attributes + + * `AuthMethod` (*type:* `integer()`, *default:* `nil`) - + * `ContentLength` (*type:* `integer()`, *default:* `nil`) - The actual length of the content: If Representation is compressed, this equals to Content.UncompressedLength; otherwise it is the length of the representation string. + * `ContentType` (*type:* `integer()`, *default:* `nil`) - See enum ContentType in //depot/google3/webutil/http/content-type.proto. + * `CrawlTime` (*type:* `String.t`, *default:* `nil`) - Seconds since Unix epoch. + * `Encoding` (*type:* `integer()`, *default:* `nil`) - See //depot/google3/i18n/encodings/public/encodings.h Encoding of representation + * `HasHttpHeader` (*type:* `boolean()`, *default:* `nil`) - Set to false if Representation does not contain HTTP headers. + * `Language` (*type:* `integer()`, *default:* `nil`) - A Language enum value. See: go/language-enum Default is english + * `OriginalEncoding` (*type:* `integer()`, *default:* `nil`) - If OriginalEncoding is present, the body part of the Representation was converted to UTF-8, Encoding was set to UTF8, and OriginalEncoding was set to the original encoding before conversion. However, the HTTP headers part of the content might not be valid UTF-8. -1=an invalid value + * `Representation` (*type:* `String.t`, *default:* `nil`) - Possibly compressed for old documents. It is not compressed for docjoins produced by Raffia after ~2012. + * `UncompressedLength` (*type:* `integer()`, *default:* `nil`) - Historically present if Representation is compressed. + * `VisualType` (*type:* `integer()`, *default:* `nil`) - Whether the content was visual right-to-left, and if so, what type of visual document it is. Must be one of the values in enum VisualType from google3/repository/rtl/visualtype.h Default is NOT_VISUAL_DOCUMENT. See http://wiki/Main/RtlLanguages for background. + * `crawledFileSize` (*type:* `integer()`, *default:* `nil`) - Crawled file size of the original document. + * `encodedGeometryAnnotations` (*type:* `String.t`, *default:* `nil`) - GeometryAnnotations, encoded with GeometryUtil::DeltaEncode() to reduce disk space usage. Use GeometryUtil::DeltaDecode() to decode this field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :AuthMethod => integer() | nil, + :ContentLength => integer() | nil, + :ContentType => integer() | nil, + :CrawlTime => String.t() | nil, + :Encoding => integer() | nil, + :HasHttpHeader => boolean() | nil, + :Language => integer() | nil, + :OriginalEncoding => integer() | nil, + :Representation => String.t() | nil, + :UncompressedLength => integer() | nil, + :VisualType => integer() | nil, + :crawledFileSize => integer() | nil, + :encodedGeometryAnnotations => String.t() | nil + } + + field(:AuthMethod) + field(:ContentLength) + field(:ContentType) + field(:CrawlTime) + field(:Encoding) + field(:HasHttpHeader) + field(:Language) + field(:OriginalEncoding) + field(:Representation) + field(:UncompressedLength) + field(:VisualType) + field(:crawledFileSize) + field(:encodedGeometryAnnotations) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseContent do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseContent.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseContent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/g_document_base_directory.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/g_document_base_directory.ex new file mode 100644 index 0000000000..ba80c57768 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/g_document_base_directory.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseDirectory do + @moduledoc """ + The Directory proto group holds snippet and title metadata which is made available to the snippet code. The proto group was originally created for metadata coming from the Google Web Directory (gwd) project. It has since come to be used to hold metadata from gwd and other sources. + + ## Attributes + + * `Category` (*type:* `String.t`, *default:* `nil`) - encoded in UTF8 + * `Description` (*type:* `String.t`, *default:* `nil`) - encoded in UTF8 + * `DescriptionScore` (*type:* `number()`, *default:* `nil`) - + * `Identifier` (*type:* `String.t`, *default:* `nil`) - "gwd", etc. + * `Language` (*type:* `integer()`, *default:* `nil`) - go/language-enum + * `Title` (*type:* `String.t`, *default:* `nil`) - encoded in UTF8 + * `TitleScore` (*type:* `number()`, *default:* `nil`) - Deprecated; do not use. There is no code populating these fields as of Oct 2017. + * `URL` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Category => String.t() | nil, + :Description => String.t() | nil, + :DescriptionScore => number() | nil, + :Identifier => String.t() | nil, + :Language => integer() | nil, + :Title => String.t() | nil, + :TitleScore => number() | nil, + :URL => String.t() | nil + } + + field(:Category) + field(:Description) + field(:DescriptionScore) + field(:Identifier) + field(:Language) + field(:Title) + field(:TitleScore) + field(:URL) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseDirectory do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseDirectory.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseDirectory do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/g_document_base_original_content.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/g_document_base_original_content.ex new file mode 100644 index 0000000000..e9044c370a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/g_document_base_original_content.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseOriginalContent do + @moduledoc """ + The original, unconverted document, typically PDF or Word. Copied from OriginalDoc field of doclogs. Unlike "Content", this does not contain any HTTP headers. The content may be compressed using the same method as "Content". In practice it is only compressed in the Teragoogle index. It is never compressed in docjoins because those are compressed at the sstable level. In doclogs content will only be compressed if the Trawler fetchreply is also compressed--which is currently never and unlikely to change for performance reasons. + + ## Attributes + + * `Representation` (*type:* `String.t`, *default:* `nil`) - + * `UncompressedLength` (*type:* `integer()`, *default:* `nil`) - present iff rep is compressed + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Representation => String.t() | nil, + :UncompressedLength => integer() | nil + } + + field(:Representation) + field(:UncompressedLength) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseOriginalContent do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseOriginalContent.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GDocumentBaseOriginalContent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/generic_snippet_response.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/generic_snippet_response.ex new file mode 100644 index 0000000000..59f88ef16a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/generic_snippet_response.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GenericSnippetResponse do + @moduledoc """ + The generic version of a snippet response + + ## Attributes + + * `debugInfo` (*type:* `list(String.t)`, *default:* `nil`) - Per-doc debug information. + * `info` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - Servlet-specific response info. + * `snippet` (*type:* `list(String.t)`, *default:* `nil`) - Lines of the snippet HTML. Typically gws concatenates these and lets the browser wrap. The values include trailing spaces, so inserting additional spaces is not necessary. However, for very old browsers, gws may insert break tags after each snippet line. This field is confusing and poorly named; "snippet_line" would be better. In particular, note that this does not return multiple snippets for a result. Nor are these fields the individual tidbits of the snippet. + * `title` (*type:* `String.t`, *default:* `nil`) - The title HTML. It may contain tags to denote query term matches. It may be already truncated and "..." is put instead (note that truncation does not always happen at the very end of the title text). However the existence of "..." does not guarantee that the snippet generation algorithm truncated it; e.g. webmasters themselves can write "...". + * `wwwSnippetResponse` (*type:* `GoogleApi.ContentWarehouse.V1.Model.WWWSnippetResponse.t`, *default:* `nil`) - Snippet-specific members (tag ids 16+, must be optional!) Example: optional NewContentResponse new_response; + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :debugInfo => list(String.t()) | nil, + :info => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :snippet => list(String.t()) | nil, + :title => String.t() | nil, + :wwwSnippetResponse => GoogleApi.ContentWarehouse.V1.Model.WWWSnippetResponse.t() | nil + } + + field(:debugInfo, type: :list) + field(:info, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + field(:snippet, type: :list) + field(:title) + field(:wwwSnippetResponse, as: GoogleApi.ContentWarehouse.V1.Model.WWWSnippetResponse) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GenericSnippetResponse do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GenericSnippetResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GenericSnippetResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geo_ondemand_assistant_supported_actions.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geo_ondemand_assistant_supported_actions.ex new file mode 100644 index 0000000000..e55effe989 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geo_ondemand_assistant_supported_actions.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeoOndemandAssistantSupportedActions do + @moduledoc """ + Actions supported by Madden for a local entity. + + ## Attributes + + * `allowsGuestCheckout` (*type:* `boolean()`, *default:* `nil`) - Whether this local entity allows guest checkout for reservations. + * `isAsynchronousRestaurantReservation` (*type:* `boolean()`, *default:* `nil`) - Whether or not this local entity supports asynchronous restaurant reservations, through the above restaurant_reservation_url. + * `restaurantReservationUrl` (*type:* `String.t`, *default:* `nil`) - URL for the Madden restaurant reservation flow, e.g. for display in a WebView. Not populated if restaurant reservations are not supported for the local entity. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowsGuestCheckout => boolean() | nil, + :isAsynchronousRestaurantReservation => boolean() | nil, + :restaurantReservationUrl => String.t() | nil + } + + field(:allowsGuestCheckout) + field(:isAsynchronousRestaurantReservation) + field(:restaurantReservationUrl) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeoOndemandAssistantSupportedActions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeoOndemandAssistantSupportedActions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeoOndemandAssistantSupportedActions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_access_point_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_access_point_proto.ex new file mode 100644 index 0000000000..7c407eecb5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_access_point_proto.ex @@ -0,0 +1,79 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreAccessPointProto do + @moduledoc """ + This class holds information about a single access point. An access point establishes a relationship between a feature (like a POI or building) and some other feature. For example, consider a TYPE_LOCALITY feature like Seattle. An access point might be the TYPE_AIRPORT feature for Seattle-Tacoma International Airport. The airport feature defines the access point to gain airplane-based access to Seattle. A feature like Seattle will typically have multiple access points. You can get to Seattle using airplanes, various forms of public transit, or by driving a car. Thus Seattle would have multiple access points. You may be able to get to Seattle by flying into SeaTac, or you might be able to fly into Boeing Field, or Paine Field in Everett. You could drive in from the North/South using I-5, or you could drive in from the East using I-90. Many access points are from the road network. Thus the access point for some building at 123 Main Street would likely be a segment that defines the 100-200 block of "Main Street". A feature at the corner of "Hollywood" and "Vine" streets might have access points from both named streets. Access points are an optional field. Data editors may ignore them when creating features or editing other fields. In these cases, other quality teams will synthesize and update them. Several fields are also optional, as they are derivable from other fields. Access points to non-TYPE_SEGMENT features should always have the following fields set: - feature_type - feature_id - point Location and reference fields: BASIC vs DERIVABLE Access points to TYPE_SEGMENT features must have all the following BASIC fields: - feature_type (of the segment, e.g. TYPE_ROAD or TYPE_VIRTUAL_SEGMENT) - point_off_segment (or point; see "fuzzy point" note below) - unsuitable_travel_mode (may be empty) - level (indoor access points only) The following are DERIVABLE fields, which should only be added if the supplier is confident about their accuracy: - feature_id - point_on_segment - segment_position Editing clients are encouraged to set all fields, but they may set only the BASIC fields, in which case quality teams may use the BASIC fields to snap to an appropriate segment and derive the remaining fields. Example: The segment is split, so that the portion that the access point is on has a new feature ID. Quality teams notice that the point_on_segment is no longer on the segment with feature_id, finds the new nearest segment based on feature_type and existing point_on_segment, and re-derives a new feature_id, point_on_segment, and segment_position, keeping other fields consistent. Fuzzy point special case If the editor does not have side-of-road information for access points or is otherwise unsure of the precise placement of the access point, it may supply the point field (and not point_off_segment) as basic data instead, in which case quality teams may generate the point_off_segment. Identity Access points are considered semantically equivalent if they have the same geometry, including derived fields, and the same references to other features (feature_id, level_feature_id). For the exact definition, see cs/symbol:geostore::AreAccessPointsEquivalent. Field definitions + + ## Attributes + + * `canEnter` (*type:* `boolean()`, *default:* `nil`) - RESERVED + * `canExit` (*type:* `boolean()`, *default:* `nil`) - RESERVED + * `featureId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - The ID of the feature that defines the access point. The bounding box of the feature is expanded to include the bounding box of the feature with the access point in accordance with the standard practice for bucketing map/reduce operations. See the wiki page at http://wiki/Main/OysterBucketingMapReduce for more information. For access points to TYPE_SEGMENT features, this may be re-derived if necessary by looking up the nearest segment to existing geometry. + * `featureType` (*type:* `integer()`, *default:* `nil`) - The type of the feature. Required, to allow handling the access point differently based on feature type. For access points to non-TYPE_SEGMENT features, this cached type also makes things easier for clients that aren't running a bucketing map-reduce. For access points to TYPE_SEGMENT features, this is used to find to find the nearest segment of the given type. + * `levelFeatureId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - For indoor access points, this should be set to the level that the access point is on. The feature_id should point to the indoor segment, but when it is missing or invalid, and we need to derive it from geometry, only segments on this level will be considered. For non-indoor access points, level should remain unset, and when we derive feature_id from geometry, only segments not on any level (non-indoor segments) will be considered. The bounding box of the level feature is expanded to include the bounding box of the feature with the access point in accordance with the standard practice for bucketing map/reduce operations. See the wiki page at http://wiki/Main/OysterBucketingMapReduce for more information. (Though in general the feature should reside on the level already anyway..) + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this access point. + * `point` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t`, *default:* `nil`) - For access points to non-TYPE_SEGMENT features, the location of the access point. For access points to TYPE_SEGMENT features, this can be supplied as a fuzzy access point that is not guaranteed to be on the correct side of road. It should not be used by end clients in case of TYPE_SEGMENT access points. + * `pointOffSegment` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t`, *default:* `nil`) - If the access point is defined by a TYPE_SEGMENT feature, this is the location of the access point displaced slightly to the correct side of the segment. This offset is in a direction perpendicular to the direction of travel along the segment. The actual offset distance is unspecified. It would typically be relatively small (approximately 1 meter). You can subtract the "off segment" point from the "on segment" point to get a vector of unknown length pointing from "on segment" point to the "off segment" point. You can then scale that vector to whatever length you want. Note that extending this displacement vector a large distance (10s of meters) may result in a new point that is in the middle of some other feature (park, street, intersection). This is the preferred basic geometry field for incoming data from editing clients and importers, if side-of-road is well-established. + * `pointOnSegment` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t`, *default:* `nil`) - If the access point is defined by a TYPE_SEGMENT feature, this is the point on the centerline of the segment that is closest to the actual access point. May be re-derived if necessary to maintain precise placement on segment. + * `priority` (*type:* `String.t`, *default:* `nil`) - LINT.ThenChange(//depot/google3/geostore/cleanup/callbacks/\\ ID_DUPLICATE_ACCESS_POINT.cc) + * `segmentPosition` (*type:* `number()`, *default:* `nil`) - If the access point is defined by a TYPE_SEGMENT feature, this is the location of the access point expressed as a fractional distance along the segment. The value runs from 0 to 1 inclusive. May be re-derived if necessary to maintain precise placement on segment. + * `unsuitableTravelMode` (*type:* `list(String.t)`, *default:* `nil`) - This list represents the travel modes for which this access-point should be avoided. If this list is empty, the access-point is suitable for any travel mode. If all access points are unsuitable for the current travel mode, client should revert to other heuristics (e.g. feature center). This is only used for access points to TYPE_SEGMENT features; access points to non-TYPE_SEGMENT features, e.g. TYPE_ESTABLISHMENT_POI features with gcid:transit_station GConcepts are just identified by feature_type and feature_id. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canEnter => boolean() | nil, + :canExit => boolean() | nil, + :featureId => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :featureType => integer() | nil, + :levelFeatureId => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :point => GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t() | nil, + :pointOffSegment => GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t() | nil, + :pointOnSegment => GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t() | nil, + :priority => String.t() | nil, + :segmentPosition => number() | nil, + :unsuitableTravelMode => list(String.t()) | nil + } + + field(:canEnter) + field(:canExit) + field(:featureId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:featureType) + field(:levelFeatureId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:point, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto) + field(:pointOffSegment, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto) + field(:pointOnSegment, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto) + field(:priority) + field(:segmentPosition) + field(:unsuitableTravelMode, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAccessPointProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreAccessPointProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAccessPointProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_address_component_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_address_component_proto.ex new file mode 100644 index 0000000000..f475d90b49 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_address_component_proto.ex @@ -0,0 +1,68 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressComponentProto do + @moduledoc """ + This class represents a parsed field within an address. NOTE: if you add a field to this proto, please update the AreAddressComponentsEquivalent() function in google3/geostore/base/internal/addresscomponent.cc + + ## Attributes + + * `featureId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - The id of the corresponding Feature, if such a feature is defined. As discussed above for feature_type, components of TYPE_FEATURE or TYPE_LANDMARK may have a corresponding feature id. + * `featureType` (*type:* `integer()`, *default:* `nil`) - For components of TYPE_FEATURE or TYPE_LANDMARK, this is the feature type (TYPE_COUNTRY, TYPE_LOCALITY, TYPE_ESTABLISHMENT_POI etc.). Note that some features may not actually exist in the geostore (e.g. a village that we've never heard of), in which case the feature_id will be missing but the feature_type is still specified. Please refer to IsValidAddressComponentFeatureType() in google3/geostore/base/public/addresscomponent.h for the definitive list of feature types allowed for the type (either TYPE_FEATURE or TYPE_LANDMARK) of components. + * `index` (*type:* `integer()`, *default:* `nil`) - The order of this address component relative to the ones that share the same feature_type in the AddressProto. For now, the primary use of this index field is to handle ordering issue of multiple occurrences of AddressComponentProto with feature_type of TYPE_ROUTE (and subtypes), or TYPE_POLITICAL, where the order of the address components matters as there are dependences. 0 is the smallest valid index value, representing the most specific address component. Index value of 1 represents a relatively less specific address component of the same feature_type on which the 0-indexed address component depends. + * `parsedName` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto.t)`, *default:* `nil`) - The parsed_name field contains one or more names of an address component. Its actual contents depends on where in the Geo/Google stack you are reading a feature: 1. When an address is initially parsed via a feed or other raw input and structured as an AddressProto, parsed_name should contain the set of names that corresponds to the (possibly normalized) raw text from the raw input. 2. In MapFacts, the address component may be linked to an actual feature via feature_id. Any address formatting directly from MapFacts should follow links to retrieve names when possible. The parsed_name contents may be formatted directly if the address component is unlinked following the same rules as selecting and formatting the name of a feature. The cached parsed_name is regularly refreshed from the linked feature with the minimal set of names for address components (usually just a single, preferred name, in the local language, plus a Latin-script name: go/story-of-ac-names). 3. In serving systems, the names of linked features may be denormalized into the parsed_name field to facilitate quicker address formatting or for simple data filtering (e.g. finding all geocodes in California by name). If reading a feature from such a system, the parsed_name field could contain multiple names in multiple languages that reflect a cached copy of the names associated with the linked features. Formatting of such names should follow the same rules as selecting and formatting the name of a feature itself. + * `range` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressRangeProto.t`, *default:* `nil`) - Any numerical address component may optionally be specified as a range. For example if a component of TYPE_STREET_NUMBER has the optional "range" attribute, then it represents a range of addresses rather than a single address (see AddressRangeProto for details). + * `temporaryData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - A place for clients to attach arbitrary data to an address component. Never set in MapFacts. + * `textAffix` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTextAffixProto.t)`, *default:* `nil`) - Additional text to append before and/or after the parsed_name, when the address is formatted. Multiple instance should represent translations. Currently, this is only permitted on TYPE_LANDMARK components, and only one instance is permitted. + * `type` (*type:* `String.t`, *default:* `nil`) - Every address component has a type. Most address components correspond to one of the feature types defined in FeatureProto, so rather than defining a separate category system here, instead we mark them as TYPE_FEATURE and store the FeatureProto type in the feature_type() field. This is how we handle countries, cities, streets, etc. However, there are a few types of address components that do not have a corresponding feature type (e.g. PO boxes). These components have their type defined here. An address component of TYPE_STREET_NUMBER may correspond to a physical entity that defines a street number, such as a geocoded address or a land parcel. In this case, the address component may have a link to the corresponding feature. A good reference for what types of address components are possible is the xAL standard, which is a published XML schema: http://www.oasis-open.org/committees/ciq/download.shtml. This standard is the basis of the PostalAddress protocol message. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :featureId => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :featureType => integer() | nil, + :index => integer() | nil, + :parsedName => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto.t()) | nil, + :range => GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressRangeProto.t() | nil, + :temporaryData => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :textAffix => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTextAffixProto.t()) | nil, + :type => String.t() | nil + } + + field(:featureId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:featureType) + field(:index) + field(:parsedName, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto, type: :list) + field(:range, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressRangeProto) + field(:temporaryData, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + field(:textAffix, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTextAffixProto, type: :list) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressComponentProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressComponentProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressComponentProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_address_lines_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_address_lines_proto.ex new file mode 100644 index 0000000000..93e94d8271 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_address_lines_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressLinesProto do + @moduledoc """ + Represents the unparsed portion of an address with an associated language. + + ## Attributes + + * `language` (*type:* `String.t`, *default:* `nil`) - The external form of a Google International Identifiers Initiative (III) LanguageCode object. See google3/i18n/identifiers/languagecode.h for details. We place extra restrictions on languages in addition to what the III library requires. See http://go/geo-schema-reference/feature-properties/languages.md + * `line` (*type:* `list(String.t)`, *default:* `nil`) - These lines are in display order. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :language => String.t() | nil, + :line => list(String.t()) | nil + } + + field(:language) + field(:line, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressLinesProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressLinesProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressLinesProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_address_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_address_proto.ex new file mode 100644 index 0000000000..ad5d5dbbdc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_address_proto.ex @@ -0,0 +1,80 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressProto do + @moduledoc """ + This class represents an address, partial address, or address range. It is intended to be attached to features to identify their address(es). Some important points about addresses: - The addresses in the Geo Schema do *not* include a component for the name of the feature, i.e. they are not self-referential. For example, the name of a feature might be "Zack's Pizza" and its address would be "123 Main Street". Similarly, streets, cities, and counties do not include themselves as part of their address. The address of "Seattle" is "King County, Washington, USA". If want to construct an address that *does* include the feature name, you can simply prepend it to the other address components. - Lakes, mountains, and other natural features do not normally have addresses. Countries also do not have addresses because they are at the top of the political hierarchy. - Address components in the Geo Schema are listed in a particular order, independent of the conventions used by the country in which they occur. The basic order is "smallest to largest" starting with street numbers and routes, then political features, and ending with postal features. The exact rules are defined by the implementation of the AddressComponentOrdering::IsLessThan() function. - Some types of address components may occur more than once in an address. For example, a UK address with a "dependent thoroughfare" would have two components of TYPE_ROUTE (i.e. street names). These are listed in the order they are normally written. + + ## Attributes + + * `addressLines` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressLinesProto.t)`, *default:* `nil`) - The unparsed portion (lines) of the address. An address can have multiple unparsed portions. Multiple unparsed portions sharing the same language should be modeled as one address_lines instance having multiple lines. Historically, we also supported unparsed portions in different languages, but we no longer do. Consequently, only one value is allowed for this field despite the fact that it is repeated. See go/address-lines-multi-language for information about why we made this change. If any components are filled in, this is supplemental to (i.e. disjoint from) them. Furthermore, this must be the most specific portion of the address (except for the portion, if any, stored in the name field of feature.proto). Unparsed lines are always formatted together in a block. Other address components are never formatted between the address lines. This doesn't imply that the address lines are always either the first or the last part of the formatted output. + * `component` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressComponentProto.t)`, *default:* `nil`) - A list of parsed address components, e.g. the street, city, etc. An address range is one type of component. + * `crossStreet` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressComponentProto.t)`, *default:* `nil`) - ** DEPRECATED ** This field is now deprecated (see b/33268032). If you want to store cross street information as part of an address, use the address_lines field. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this address. + * `partialDenormalization` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressProto.t`, *default:* `nil`) - reserved + * `templateId` (*type:* `String.t`, *default:* `nil`) - The opaque ID of the address template that contains rules for structuring this address. The id of the address template can be retrieved using google3/geostore/address_templates/public/address_templates.h + * `temporaryData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - A place for clients to attach arbitrary data to an address. Never set in MapFacts. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :addressLines => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressLinesProto.t()) | nil, + :component => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressComponentProto.t()) | nil, + :crossStreet => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressComponentProto.t()) | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :partialDenormalization => + GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressProto.t() | nil, + :templateId => String.t() | nil, + :temporaryData => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil + } + + field(:addressLines, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressLinesProto, + type: :list + ) + + field(:component, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressComponentProto, + type: :list + ) + + field(:crossStreet, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressComponentProto, + type: :list + ) + + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:partialDenormalization, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressProto) + field(:templateId) + field(:temporaryData, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_address_range_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_address_range_proto.ex new file mode 100644 index 0000000000..c2ef436b42 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_address_range_proto.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressRangeProto do + @moduledoc """ + This class represents a range of numbers in an address. It is an optional additional field in the 'AddressComponentProto' message. This structure can be used to model both single addresses and address ranges. There are two primary use-cases for address ranges: definitions and references. Ranges are being defined when they are present on the addresses of segment features. Ranges are being referenced when they are present on non-segment features. NOTE: If you add fields in this proto, consider updating the AreAddressRangesEquivalent() function in google3/geostore/base/internal/addressrange.cc + + ## Attributes + + * `number` (*type:* `list(integer())`, *default:* `nil`) - Two or more address numbers. Each number represents an address that was mentioned by the data provider. + * `parameter` (*type:* `list(number())`, *default:* `nil`) - For address range definitions: Two or more interpolation parameter values. The length of this array must match the length of the number array, and each parameter number specifies the position of the corresponding address number. Each value is an interpolation between 0.0 and 1.0 inclusive. The value is proportional to the distance traveled along the segment's polyline starting at its origin. The parameters must be provided in increasing order and the values in the number array must be in strictly increasing or decreasing order. We make an exception for singleton addresses, which are represented as two copies of a (number, parameter) pair, for backwards compatibility. For address range references: This array must be empty. + * `prefix` (*type:* `String.t`, *default:* `nil`) - If specified, the prefix or suffix is applied to all numbers in the range. For example, this can be used to indicate that addresses B1 through B99 are on one side of the street, while A1 through A99 are on the other side of the street. + * `sameParity` (*type:* `boolean()`, *default:* `nil`) - If 'same_parity' is true, then all 'number' values must have the same parity (even or odd), and this address range only includes addresses whose parity is the same as the given 'number' values. + * `suffix` (*type:* `String.t`, *default:* `nil`) - + * `temporaryData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - A place for clients to attach arbitrary data to an address range. Never set in MapFacts. Here are some examples: Example #1: Single non-numeric address (e.g., "Twelve") At the moment this can only be represented as a street number (with the value in the parsed_name field of the AddressComponentProto). We have future plans to make other changes so we can handle this case. Example #2: Single semi-numeric address (e.g., "12bis") The number array contains two copies of the single numeric value (12). The prefix is empty and the suffix contains "bis". The parameter array has two identical values specifying the position of the single address. Example #3: Simple address range (e.g., "100 to 198, even numbers only") The number array contains the two values "100" and "198". The prefix and suffix strings are empty in this example. The parameter array has two values, one for each number. The same_parity flag is set in this example. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :number => list(integer()) | nil, + :parameter => list(number()) | nil, + :prefix => String.t() | nil, + :sameParity => boolean() | nil, + :suffix => String.t() | nil, + :temporaryData => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil + } + + field(:number, type: :list) + field(:parameter, type: :list) + field(:prefix) + field(:sameParity) + field(:suffix) + field(:temporaryData, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressRangeProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressRangeProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressRangeProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_anchored_geometry_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_anchored_geometry_proto.ex new file mode 100644 index 0000000000..00dfba79ce --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_anchored_geometry_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreAnchoredGeometryProto do + @moduledoc """ + A feature’s geometry that is populated from the 3D Geometry Store. Please see go/a3d-and-mapfacts for design details. + + ## Attributes + + * `geometryId` (*type:* `String.t`, *default:* `nil`) - The ID to be used to fetch the feature’s geometry from the 3D Geometry Store. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :geometryId => String.t() | nil + } + + field(:geometryId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAnchoredGeometryProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreAnchoredGeometryProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAnchoredGeometryProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_applied_speed_limit_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_applied_speed_limit_proto.ex new file mode 100644 index 0000000000..7a0eb80df8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_applied_speed_limit_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreAppliedSpeedLimitProto do + @moduledoc """ + A container for speed limits that allows tagging with a correctness trust level. + + ## Attributes + + * `speedLimit` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreSpeedLimitProto.t`, *default:* `nil`) - The actual speed limit value. + * `trustLevel` (*type:* `String.t`, *default:* `nil`) - The level of trust we have in this speed limit value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :speedLimit => GoogleApi.ContentWarehouse.V1.Model.GeostoreSpeedLimitProto.t() | nil, + :trustLevel => String.t() | nil + } + + field(:speedLimit, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreSpeedLimitProto) + field(:trustLevel) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAppliedSpeedLimitProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreAppliedSpeedLimitProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAppliedSpeedLimitProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_attachments_attachment_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_attachments_attachment_proto.ex new file mode 100644 index 0000000000..ab6ceba587 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_attachments_attachment_proto.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreAttachmentsAttachmentProto do + @moduledoc """ + An AttachmentProto contains structured data of a client-specified type. An attachment is uniquely identified by the combination of its attachment_id and client_name_space fields. + + ## Attributes + + * `attachmentId` (*type:* `String.t`, *default:* `nil`) - attachment_id distinguishes messages of the same type_id associated with the same feature. It can not be set to 0x0. + * `clientNameSpace` (*type:* `String.t`, *default:* `nil`) - This field specifies a namespace identifier that can be used to track the sources of attachments in a human friendly format. Name spaces must be at most 64 characters long and must be composed entirely of alphanumeric characters, hyphens, and underscores. No other characters are allowed. + * `comment` (*type:* `String.t`, *default:* `nil`) - comment is a human-readable string that is logged whenever this attachment is processed by the framework. + * `messages` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - messages contains the structured data for this attachment. It should contain a single message with a type ID matching the value of the type_id field below. + * `typeId` (*type:* `String.t`, *default:* `nil`) - type_id determines the type of the actual attachment that should be set in the messages MessageSet. It can not be set to 0x0. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attachmentId => String.t() | nil, + :clientNameSpace => String.t() | nil, + :comment => String.t() | nil, + :messages => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :typeId => String.t() | nil + } + + field(:attachmentId) + field(:clientNameSpace) + field(:comment) + field(:messages, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + field(:typeId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAttachmentsAttachmentProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreAttachmentsAttachmentProto.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAttachmentsAttachmentProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_attribute_id_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_attribute_id_proto.ex new file mode 100644 index 0000000000..f0bd364dbf --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_attribute_id_proto.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeIdProto do + @moduledoc """ + Used to represent the unique id of an attribute. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - The id of the attribute. Stored as a stripped format of the gcid (e.g. "foo" instead of "gcid:att_foo"). + * `providerId` (*type:* `String.t`, *default:* `nil`) - Set because it's required, but not really meaningful in geostore (always set to "Geo"). + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :providerId => String.t() | nil, + :type => String.t() | nil + } + + field(:id) + field(:providerId) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeIdProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeIdProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeIdProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_attribute_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_attribute_proto.ex new file mode 100644 index 0000000000..c557694620 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_attribute_proto.ex @@ -0,0 +1,108 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeProto do + @moduledoc """ + Protocol buffer for attaching attributes and values to instances. This is for assigning a particular attribute and value to a repository item, not for metadata. For protocol buffers that represents metadata about attributes and values, see CanonicalAttribute in itemclass.proto and ValueSpace in valuespace.proto. + + ## Attributes + + * `applicationData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - + * `attributeDisplay` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeValueDisplayProto.t)`, *default:* `nil`) - + * `booleanValue` (*type:* `boolean()`, *default:* `nil`) - + * `canonicalAttributeId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeIdProto.t`, *default:* `nil`) - The canonical attribute for this attribute instance. + * `doubleValue` (*type:* `float()`, *default:* `nil`) - + * `enumIdValue` (*type:* `String.t`, *default:* `nil`) - For those attribute ids that expect their values to be taken from an enumeration-style set of values, that value's gcid should be stored here, e.g. "gcid:attval_yes". + * `floatValue` (*type:* `number()`, *default:* `nil`) - + * `int64Value` (*type:* `String.t`, *default:* `nil`) - + * `integerValue` (*type:* `integer()`, *default:* `nil`) - + * `itemClassId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeIdProto.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this attribute + * `protoValue` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - Fully qualified package name because genprotohdf uses genproto for this proto2 syntax: https://wiki.corp.google.com/twiki/bin/view/Main/Proto2WithGenproto + * `stringValue` (*type:* `String.t`, *default:* `nil`) - The attribute value falls into one of these fields, based on value_type: + * `uint32Value` (*type:* `integer()`, *default:* `nil`) - + * `valueDisplay` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeValueDisplayProto.t)`, *default:* `nil`) - Used to store language-specific names of this attribute's value (e.g. a translation into another language). + * `valueSpaceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeIdProto.t`, *default:* `nil`) - + * `valueType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :applicationData => + GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :attributeDisplay => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeValueDisplayProto.t()) | nil, + :booleanValue => boolean() | nil, + :canonicalAttributeId => + GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeIdProto.t() | nil, + :doubleValue => float() | nil, + :enumIdValue => String.t() | nil, + :floatValue => number() | nil, + :int64Value => String.t() | nil, + :integerValue => integer() | nil, + :itemClassId => GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeIdProto.t() | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :protoValue => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :stringValue => String.t() | nil, + :uint32Value => integer() | nil, + :valueDisplay => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeValueDisplayProto.t()) | nil, + :valueSpaceId => GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeIdProto.t() | nil, + :valueType => String.t() | nil + } + + field(:applicationData, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + + field(:attributeDisplay, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeValueDisplayProto, + type: :list + ) + + field(:booleanValue) + field(:canonicalAttributeId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeIdProto) + field(:doubleValue) + field(:enumIdValue) + field(:floatValue) + field(:int64Value) + field(:integerValue) + field(:itemClassId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeIdProto) + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:protoValue, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + field(:stringValue) + field(:uint32Value) + + field(:valueDisplay, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeValueDisplayProto, + type: :list + ) + + field(:valueSpaceId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeIdProto) + field(:valueType) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_attribute_value_display_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_attribute_value_display_proto.ex new file mode 100644 index 0000000000..4d658f4ddd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_attribute_value_display_proto.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeValueDisplayProto do + @moduledoc """ + Used to help display language-specific names of attributes. + + ## Attributes + + * `language` (*type:* `String.t`, *default:* `nil`) - + * `synonym` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :language => String.t() | nil, + :synonym => String.t() | nil + } + + field(:language) + field(:synonym) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeValueDisplayProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeValueDisplayProto.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeValueDisplayProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_barrier_logical_material_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_barrier_logical_material_proto.ex new file mode 100644 index 0000000000..6d600f97bb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_barrier_logical_material_proto.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreBarrierLogicalMaterialProto do + @moduledoc """ + + + ## Attributes + + * `material` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :material => list(String.t()) | nil + } + + field(:material, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreBarrierLogicalMaterialProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreBarrierLogicalMaterialProto.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreBarrierLogicalMaterialProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_best_locale_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_best_locale_proto.ex new file mode 100644 index 0000000000..47c17ac6f6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_best_locale_proto.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreBestLocaleProto do + @moduledoc """ + A BestLocaleProto holds information about the best-match locale for a feature. Clients may use this information to determine the appropriate local name of a feature. + + ## Attributes + + * `locale` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - The ID of the best-match TYPE_LOCALE feature for this feature. + * `localizationPolicyId` (*type:* `String.t`, *default:* `nil`) - The ID of the localization policy to apply when selecting a name for a feature. This field should always be set. If feature_id is also defined, this field should have the same localization policy ID as the referenced locale feature. Localization policy IDs are arbitrary identifiers (up to some number of bytes; see geostore/base/public/constants.h) that uniquely distinguish a set of language-selection rules. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this best locale. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :locale => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :localizationPolicyId => String.t() | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil + } + + field(:locale, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:localizationPolicyId) + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreBestLocaleProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreBestLocaleProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreBestLocaleProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_biz_builder_reference_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_biz_builder_reference_proto.ex new file mode 100644 index 0000000000..3b2ed94440 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_biz_builder_reference_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreBizBuilderReferenceProto do + @moduledoc """ + The reference to a BizBuilder listing. For details on BizBuilder see http://g3doc/commerce/bizbuilder/backend/g3doc/index.md + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - Listing id. Used in queries to BizBuilder backend for listing access. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil + } + + field(:id) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreBizBuilderReferenceProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreBizBuilderReferenceProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreBizBuilderReferenceProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_border_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_border_proto.ex new file mode 100644 index 0000000000..00c3d5101d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_border_proto.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreBorderProto do + @moduledoc """ + A border represents a line of division between two features of the same type (i.e. United States and Mexico, but not California and Mexico). Borders are only used for features that tile an area. For example, country features have borders with one another because they tile an area of land. Country features do not have borders with province features because those two types of features may intersect with each other. The geometry of a border will often be similar (or derived from) the geometry of the two features that it separates. However, it is useful to have borders represented by stand-alone features for map-styling purposes. Ideally, the geometry in a border feature would be exactly the same as the common edges of the polygonal geometry of the two features. This may not always be true in practice. At some point in the future we would like to build a network of borders for features that are supposed to tile with each other. The network would be composed of different border types meeting at endpoint intersections. In the process of building this network, we would perform small geometry corrections to ensure that the borders align properly at all zoom levels. Border features are intended primarily for map drawing, and they would rarely be useful for geocoding. One exception would be for famous borders like the "Mason Dixon Line" or the "Berlin Wall." The standard feature properties have the following interpretations: name - Borders rarely have names unless they notable in their own right (e.g. "Mason Dixon Line", "Berlin Wall"). point - A border should not have point geometry. polyline - A border should have a single polyline that represents the division between the two features. polygon - A border should not have polygon geometry. + + ## Attributes + + * `featureIdLeft` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - The ids of the area features to the left and right of the border, relative to the start and end of this borders' polyline geometry. These features should have the same type as the "type" attribute above. These ids are not required because the corresponding features may be nonexistent or difficult to obtain. + * `featureIdRight` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - + * `logicalBorder` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - The logical borders which this border is a part of. + * `overrideStatus` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreOverrideBorderStatusProto.t)`, *default:* `nil`) - List of border status overrides. Due to legal reasons, we may be required to display some borders differently on some domains for instance. + * `status` (*type:* `String.t`, *default:* `nil`) - The border status identifies the legal status of the border line. + * `type` (*type:* `integer()`, *default:* `nil`) - The type of the features this border separates. Should always be a subtype of TYPE_POLITICAL. NOTE: as of December 2019, we currently require this to be equal to TYPE_COUNTRY or TYPE_ADMINISTRATIVE_AREA1. In the future, we may support TYPE_BORDER for lower types of political features. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :featureIdLeft => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :featureIdRight => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :logicalBorder => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :overrideStatus => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreOverrideBorderStatusProto.t()) | nil, + :status => String.t() | nil, + :type => integer() | nil + } + + field(:featureIdLeft, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:featureIdRight, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + + field(:logicalBorder, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, + type: :list + ) + + field(:overrideStatus, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreOverrideBorderStatusProto, + type: :list + ) + + field(:status) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreBorderProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreBorderProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreBorderProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_bounding_marker_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_bounding_marker_proto.ex new file mode 100644 index 0000000000..30b3871dba --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_bounding_marker_proto.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreBoundingMarkerProto do + @moduledoc """ + NOTE: BoundingMarkerProto could be compared against one another by canonicalizing them via GetCanonicalBoundingMarker() in google3/geostore/base/internal/lane.cc. Any fields that don't contribute to the definition of a bounding marker in the real world should be bundled with the annotative fields near the bottom and excluded in GetCanonicalBoundingMarker(). LINT.IfChange + + ## Attributes + + * `boundingMarker` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - References to any gcid:physical_lane_marker features that bound this lane or lane connection. + * `boundingMarkerToken` (*type:* `String.t`, *default:* `nil`) - A token that can be used to identify the version of the data about this bounding marker. + * `flowlineAdjacencyBeginFraction` (*type:* `float()`, *default:* `nil`) - Which part of the flowline does this association refer to? These should be between 0 and 1. These are optionally set, but can be approximated geometrically if they aren’t set. NOTE: These refer to the geometry of this feature. + * `flowlineAdjacencyEndFraction` (*type:* `float()`, *default:* `nil`) - + * `markerAdjacencyBeginFraction` (*type:* `float()`, *default:* `nil`) - Which part of the marker track does this association refer to? These should be between 0 and 1. These are optionally set, but can be approximated geometrically if they aren’t set. NOTE: These refer to the geometry of the marker feature. + * `markerAdjacencyEndFraction` (*type:* `float()`, *default:* `nil`) - + * `side` (*type:* `String.t`, *default:* `nil`) - Which side of the flowline does the marker occur on. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :boundingMarker => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :boundingMarkerToken => String.t() | nil, + :flowlineAdjacencyBeginFraction => float() | nil, + :flowlineAdjacencyEndFraction => float() | nil, + :markerAdjacencyBeginFraction => float() | nil, + :markerAdjacencyEndFraction => float() | nil, + :side => String.t() | nil + } + + field(:boundingMarker, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:boundingMarkerToken) + field(:flowlineAdjacencyBeginFraction) + field(:flowlineAdjacencyEndFraction) + field(:markerAdjacencyBeginFraction) + field(:markerAdjacencyEndFraction) + field(:side) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreBoundingMarkerProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreBoundingMarkerProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreBoundingMarkerProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_building_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_building_proto.ex new file mode 100644 index 0000000000..132f60cc25 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_building_proto.ex @@ -0,0 +1,70 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreBuildingProto do + @moduledoc """ + This protocol buffer holds the building-specific attributes for features of type TYPE_COMPOUND_BUILDING. + + ## Attributes + + * `baseHeightMetersAgl` (*type:* `number()`, *default:* `nil`) - The height of the base of this building, in meters above ground-level, if known. + * `defaultDisplayLevel` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - The level in this building that should get displayed by default. If present, the default display level must be one of this building's levels that are listed in the level[] field, and if a level is set as a default level of one building, all buildings sharing the level should have that same level as their default level. If not present, clients should not display any level by default for that building. + * `floors` (*type:* `integer()`, *default:* `nil`) - The number of floors above the base of the building, if known. For example a regular 1-story building would set this to "1". Use a value of GeostoreConstants::kDefaultHeightPerFloor when converting "floors" to "height_meters". + * `floorsMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - + * `heightMeters` (*type:* `number()`, *default:* `nil`) - The height of the building above its base, in meters, if known. + * `heightMetersMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - + * `level` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - The levels in this building, in no particular order. These levels refer back to the building via another strong reference (the LevelProto.building field). + * `structure` (*type:* `String.t`, *default:* `nil`) - "Structure" denotes a physical architecture of the building that is readily visible. This attribute is useful in that rarer structures can make good landmarks. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :baseHeightMetersAgl => number() | nil, + :defaultDisplayLevel => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :floors => integer() | nil, + :floorsMetadata => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :heightMeters => number() | nil, + :heightMetersMetadata => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :level => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :structure => String.t() | nil + } + + field(:baseHeightMetersAgl) + field(:defaultDisplayLevel, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:floors) + field(:floorsMetadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:heightMeters) + field(:heightMetersMetadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:level, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + field(:structure) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreBuildingProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreBuildingProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreBuildingProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_business_chain_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_business_chain_proto.ex new file mode 100644 index 0000000000..0ae2db8cab --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_business_chain_proto.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessChainProto do + @moduledoc """ + This holds data specific to business chain features. + + ## Attributes + + * `canonicalGconcepts` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreCanonicalGConceptProto.t)`, *default:* `nil`) - Canonical GConcepts describe the ideal state of the GConcepts of this business chain's members. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canonicalGconcepts => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreCanonicalGConceptProto.t()) | nil + } + + field(:canonicalGconcepts, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCanonicalGConceptProto, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessChainProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessChainProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessChainProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_business_hours_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_business_hours_proto.ex new file mode 100644 index 0000000000..67e11fc05e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_business_hours_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessHoursProto do + @moduledoc """ + A BusinessHoursProto stores a weekly schedule of opening hours for a business (represented as a BusinessHours message) together with other closely related information that is Geo-specific. + + ## Attributes + + * `data` (*type:* `GoogleApi.ContentWarehouse.V1.Model.BusinessHours.t`, *default:* `nil`) - The actual hours represented by this BusinessHoursProto. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for these hours. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :data => GoogleApi.ContentWarehouse.V1.Model.BusinessHours.t() | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil + } + + field(:data, as: GoogleApi.ContentWarehouse.V1.Model.BusinessHours) + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessHoursProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessHoursProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessHoursProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_call_to_action_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_call_to_action_proto.ex new file mode 100644 index 0000000000..f7ec5f24b8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_call_to_action_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCallToActionProto do + @moduledoc """ + Message containing calls to action specified by the business owner. + + ## Attributes + + * `ctaType` (*type:* `String.t`, *default:* `nil`) - Required. + * `url` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ctaType => String.t() | nil, + :url => GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto.t() | nil + } + + field(:ctaType) + field(:url, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCallToActionProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCallToActionProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCallToActionProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_canonical_g_concept_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_canonical_g_concept_proto.ex new file mode 100644 index 0000000000..aba3364566 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_canonical_g_concept_proto.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCanonicalGConceptProto do + @moduledoc """ + This proto represents a canonical gconcept of a business chain's members. + + ## Attributes + + * `gconcept` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreGConceptInstanceProto.t`, *default:* `nil`) - + * `isRequired` (*type:* `boolean()`, *default:* `nil`) - Whether the gconcept must be on a member. This must be true for a primary gconcept. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gconcept => + GoogleApi.ContentWarehouse.V1.Model.GeostoreGConceptInstanceProto.t() | nil, + :isRequired => boolean() | nil + } + + field(:gconcept, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreGConceptInstanceProto) + field(:isRequired) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCanonicalGConceptProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCanonicalGConceptProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCanonicalGConceptProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_cell_covering_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_cell_covering_proto.ex new file mode 100644 index 0000000000..18c156d0f6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_cell_covering_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCellCoveringProto do + @moduledoc """ + This protocol buffer holds S2 cell covering for the feature. See util/geometry/s2cell_union.h for more information on S2 cells. See geostore/base/public/cellcovering.h for utility functions. + + ## Attributes + + * `cellId` (*type:* `list(String.t)`, *default:* `nil`) - Array of S2 cell ids that represent the covering. There is no preset limit on how many cells can be used. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cellId => list(String.t()) | nil + } + + field(:cellId, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCellCoveringProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCellCoveringProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCellCoveringProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto.ex new file mode 100644 index 0000000000..eb84aaf1e0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProto do + @moduledoc """ + CityJsonProto is a custom proto representation of the portion of the CityJSON spec (https://www.cityjson.org/) relevant to internal projects. See go/cityjsonproto-design for more information about the modeling and design decisions implemented here. LINT.IfChange + + ## Attributes + + * `cityObjects` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObject.t)`, *default:* `nil`) - City objects associated with this CityJsonProto. + * `transform` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoTransform.t`, *default:* `nil`) - Spec for converting vertices from a local coordinate system in arbitrary units to ECEF coordinates in meters (https://en.wikipedia.org/wiki/Earth-centered,_Earth-fixed_coordinate_system). + * `vertexXyz` (*type:* `list(integer())`, *default:* `nil`) - Vertices as local coordinates represented as a flattened list: [x1,y1,z1,x2,y2,z2,x3,y3,z3]. Vertices are relative to a local coordinate system and rounded to their nearest integer value. See `transform` for how vertices can be transformed from a local coordinate system into an Earth-centered, Earth-fixed coordinate system. Vertices are flattened for space efficiency, memory locality, and processing performance. To access the x,y,z coordinates of vertex N, read the values at indices 3N, 3N+1, and 3N+2. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cityObjects => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObject.t()) | nil, + :transform => + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoTransform.t() | nil, + :vertexXyz => list(integer()) | nil + } + + field(:cityObjects, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObject, + type: :list + ) + + field(:transform, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoTransform) + field(:vertexXyz, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object.ex new file mode 100644 index 0000000000..6bd331ecc6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObject do + @moduledoc """ + Representation of an object with geometry. + + ## Attributes + + * `geometries` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometry.t)`, *default:* `nil`) - Geometries associated with this object. + * `id` (*type:* `String.t`, *default:* `nil`) - The ID of this CityObject, which must be unique within this CityJsonProto. The ID does not have a meaning outside this CityJsonProto. + * `type` (*type:* `String.t`, *default:* `nil`) - Type of object represented, e.g. building. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :geometries => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometry.t()) + | nil, + :id => String.t() | nil, + :type => String.t() | nil + } + + field(:geometries, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometry, + type: :list + ) + + field(:id) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObject do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObject.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObject do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry.ex new file mode 100644 index 0000000000..d5704cf0cc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry.ex @@ -0,0 +1,75 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometry do + @moduledoc """ + Representation of geometry including geometric primitives which are used as building blocks to construct geometries of varying complexity. Geometries vary both in type and in level-of-detail, enabling representation of any shape at any level of granularity. All geometries are ultimately composed of `MultiPoint`s, which reference the actual vertices. Only linear and planar shapes are allowed, no curves or parametric surfaces. + + ## Attributes + + * `lod` (*type:* `String.t`, *default:* `nil`) - Level-of-detail (LoD) indicates how intricate the geometric representation is. May be a single digit per CityGML standards or X.Y per TU Delft (visual depiction at https://3d.bk.tudelft.nl/lod/). `CityObject`s may have multiple geometries with the same LoD. + * `multipoint` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiPoint.t`, *default:* `nil`) - For geometries consisting of a single point, line, or loop. + * `multisurface` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiSurface.t`, *default:* `nil`) - For geometries consisting of a collection of surfaces. + * `solid` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometrySolid.t`, *default:* `nil`) - For geometries consisting of a watertight 3D shape. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lod => String.t() | nil, + :multipoint => + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiPoint.t() + | nil, + :multisurface => + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiSurface.t() + | nil, + :solid => + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometrySolid.t() + | nil + } + + field(:lod) + + field(:multipoint, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiPoint + ) + + field(:multisurface, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiSurface + ) + + field(:solid, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometrySolid + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometry do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry_multi_point.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry_multi_point.ex new file mode 100644 index 0000000000..67d317e8ef --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry_multi_point.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiPoint do + @moduledoc """ + A single line, loop, or set of points. + + ## Attributes + + * `xIndices` (*type:* `list(integer())`, *default:* `nil`) - A collection of references to vertices in `CityJsonProto.vertex_xyz`. `CityJsonProto.vertex_xyz` is a flattened list of vertex coordinates. A value in `x_indices` should be the index of the x-coordinate of the desired vertex V; the full coordinates of vertex V can then be found at indices [V,V+1,V+2]. For example, an `x_indices` containing 3, 0, and 12 references three vertices, whose complete x,y,z coordinates can respectively be found at `CityJsonProto.vertex_xyz` indices [3,4,5], [0,1,2], and [12,13,14]. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :xIndices => list(integer()) | nil + } + + field(:xIndices, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiPoint do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiPoint.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiPoint do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry_multi_surface.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry_multi_surface.ex new file mode 100644 index 0000000000..6fea405471 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry_multi_surface.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiSurface do + @moduledoc """ + A collection of arbitrary surfaces that have no prescribed topological relationship. + + ## Attributes + + * `surfaces` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometrySurface.t)`, *default:* `nil`) - All surfaces are standalone entities with no relationship to each other. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :surfaces => + list( + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometrySurface.t() + ) + | nil + } + + field(:surfaces, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometrySurface, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiSurface do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiSurface.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiSurface do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry_solid.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry_solid.ex new file mode 100644 index 0000000000..73ef2bbc14 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry_solid.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometrySolid do + @moduledoc """ + A 3D shape, composed of a watertight exterior shell with optional interior watertight shells. + + ## Attributes + + * `shells` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiSurface.t)`, *default:* `nil`) - The first shell is exterior; any additional are interior. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :shells => + list( + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiSurface.t() + ) + | nil + } + + field(:shells, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiSurface, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometrySolid do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometrySolid.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometrySolid do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry_surface.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry_surface.ex new file mode 100644 index 0000000000..0ba9c22a01 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_city_object_geometry_surface.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometrySurface do + @moduledoc """ + A polygonal surface, composed of a closed exterior loop with optional closed interior loops. + + ## Attributes + + * `loops` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiPoint.t)`, *default:* `nil`) - The first loop is exterior; any additional are interior. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :loops => + list( + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiPoint.t() + ) + | nil + } + + field(:loops, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometryMultiPoint, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometrySurface do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometrySurface.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoCityObjectGeometrySurface do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_transform.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_transform.ex new file mode 100644 index 0000000000..561b103ee8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_transform.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoTransform do + @moduledoc """ + Information for transforming a point from an "old" to "new" coordinate frame. Applied as follows: vertex_new = scale * vertex_old + translate + + ## Attributes + + * `scale` (*type:* `float()`, *default:* `nil`) - Relative scale of the vertices in the new coordinate system relative to the old coordinate system. Applies to all three x,y,z coordinates. + * `translate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoTransformTranslate.t`, *default:* `nil`) - Offset of each vertex in the new coordinate system relative to the old coordinate system. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :scale => float() | nil, + :translate => + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoTransformTranslate.t() | nil + } + + field(:scale) + + field(:translate, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoTransformTranslate + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoTransform do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoTransform.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoTransform do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_transform_translate.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_transform_translate.ex new file mode 100644 index 0000000000..0ec052f5b9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_city_json_proto_transform_translate.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoTransformTranslate do + @moduledoc """ + How the object will be moved along the x, y, and z axes, respectively. + + ## Attributes + + * `x` (*type:* `float()`, *default:* `nil`) - + * `y` (*type:* `float()`, *default:* `nil`) - + * `z` (*type:* `float()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :x => float() | nil, + :y => float() | nil, + :z => float() | nil + } + + field(:x) + field(:y) + field(:z) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoTransformTranslate do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoTransformTranslate.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoTransformTranslate do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_composable_item_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_composable_item_proto.ex new file mode 100644 index 0000000000..5dd7760d1b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_composable_item_proto.ex @@ -0,0 +1,74 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreComposableItemProto do + @moduledoc """ + Generic item proto. This is intended to have only certain aspects filled (e.g. photo only, name + price). Valid combinations of properties are enforced by linters. + + ## Attributes + + * `callToAction` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreCallToActionProto.t`, *default:* `nil`) - Call to action for the individual product. + * `jobMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreJobMetadata.t`, *default:* `nil`) - + * `media` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto.t)`, *default:* `nil`) - Any photos describing this item. + * `nameInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t)`, *default:* `nil`) - The repeated name_info field is for price list sections listed in multiple languages. At least one name_info containing id must be specified. There should be at most one name_info for any given language. When representing a job item, there should be exactly one name_info specified. + * `offered` (*type:* `String.t`, *default:* `nil`) - Represents if an item is offered at a business. For TYPE_JOB, this represents if this job is offered by the corresponding business + * `price` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto.t`, *default:* `nil`) - Price of the item. There should be at most one price for any given currency. + * `priceFormat` (*type:* `String.t`, *default:* `nil`) - Represents which price format is being used by this item, which determines the usage/meaning of the “price” field above. Optional – the default value is legal and safe (represents no price if the “price” field is unset). + * `rankingHint` (*type:* `number()`, *default:* `nil`) - Numerical score which can be provided by data sources to indicate preferred item ordering. This is purely a hint – we are not required to followed it if we have a different order we think is better. Higher scores represent items that should be shown more prominently/earlier. Optional. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :callToAction => + GoogleApi.ContentWarehouse.V1.Model.GeostoreCallToActionProto.t() | nil, + :jobMetadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreJobMetadata.t() | nil, + :media => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto.t()) | nil, + :nameInfo => + list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t()) | nil, + :offered => String.t() | nil, + :price => GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto.t() | nil, + :priceFormat => String.t() | nil, + :rankingHint => number() | nil + } + + field(:callToAction, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCallToActionProto) + field(:jobMetadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreJobMetadata) + field(:media, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto, type: :list) + + field(:nameInfo, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto, + type: :list + ) + + field(:offered) + field(:price, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto) + field(:priceFormat) + field(:rankingHint) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreComposableItemProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreComposableItemProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreComposableItemProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_count_comparison_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_count_comparison_proto.ex new file mode 100644 index 0000000000..dcf2d71bd4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_count_comparison_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCountComparisonProto do + @moduledoc """ + A count value tagged with a comparison operator. This can be used for axle count, trailer count, etc. + + ## Attributes + + * `comparisonOperator` (*type:* `String.t`, *default:* `nil`) - + * `count` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :comparisonOperator => String.t() | nil, + :count => integer() | nil + } + + field(:comparisonOperator) + field(:count) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCountComparisonProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCountComparisonProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCountComparisonProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_crossing_stripe_pattern_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_crossing_stripe_pattern_proto.ex new file mode 100644 index 0000000000..34c372ee2d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_crossing_stripe_pattern_proto.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCrossingStripePatternProto do + @moduledoc """ + Possible patterns of a crossing stripe (any element that denotes a point on a segment or lane at which the vehicle must stop or yield). These include crosswalks, stop, and yield lines. + + ## Attributes + + * `borderLine` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePhysicalLineProto.t`, *default:* `nil`) - + * `borderPattern` (*type:* `String.t`, *default:* `nil`) - + * `color` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePaintedElementLogicalColorProto.t)`, *default:* `nil`) - Colors found on this crossing. + * `stripePattern` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :borderLine => GoogleApi.ContentWarehouse.V1.Model.GeostorePhysicalLineProto.t() | nil, + :borderPattern => String.t() | nil, + :color => + list(GoogleApi.ContentWarehouse.V1.Model.GeostorePaintedElementLogicalColorProto.t()) + | nil, + :stripePattern => String.t() | nil + } + + field(:borderLine, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePhysicalLineProto) + field(:borderPattern) + + field(:color, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePaintedElementLogicalColorProto, + type: :list + ) + + field(:stripePattern) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCrossingStripePatternProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCrossingStripePatternProto.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCrossingStripePatternProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curvature_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curvature_proto.ex new file mode 100644 index 0000000000..757896136c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curvature_proto.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCurvatureProto do + @moduledoc """ + + + ## Attributes + + * `pointCurvature` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePointCurvatureProto.t)`, *default:* `nil`) - Curvature values at points along the flowline. A linear interpolation between two successive points will yield the curvature value at intermediate points. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :pointCurvature => + list(GoogleApi.ContentWarehouse.V1.Model.GeostorePointCurvatureProto.t()) | nil + } + + field(:pointCurvature, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePointCurvatureProto, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCurvatureProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCurvatureProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCurvatureProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curve_connection_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curve_connection_proto.ex new file mode 100644 index 0000000000..ca1edb60d9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curve_connection_proto.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProto do + @moduledoc """ + Protocol buffer describing a curve that connects two externally specified endpoints. + + ## Attributes + + * `bezierParams` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoBezierParams.t`, *default:* `nil`) - + * `circleParams` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoCircleParams.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bezierParams => + GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoBezierParams.t() | nil, + :circleParams => + GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoCircleParams.t() | nil, + :type => String.t() | nil + } + + field(:bezierParams, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoBezierParams + ) + + field(:circleParams, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoCircleParams + ) + + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curve_connection_proto_bezier_params.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curve_connection_proto_bezier_params.ex new file mode 100644 index 0000000000..d5cabb6fff --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curve_connection_proto_bezier_params.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoBezierParams do + @moduledoc """ + + + ## Attributes + + * `controlPoint` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoBezierParamsControlPoint.t)`, *default:* `nil`) - Internal Bezier handles. One can be used for a quadratic curve, two for cubic Beziers. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :controlPoint => + list( + GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoBezierParamsControlPoint.t() + ) + | nil + } + + field(:controlPoint, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoBezierParamsControlPoint, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoBezierParams do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoBezierParams.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoBezierParams do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curve_connection_proto_bezier_params_control_point.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curve_connection_proto_bezier_params_control_point.ex new file mode 100644 index 0000000000..b2b4d20472 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curve_connection_proto_bezier_params_control_point.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoBezierParamsControlPoint do + @moduledoc """ + + + ## Attributes + + * `angleDegrees` (*type:* `float()`, *default:* `nil`) - We use this parameterization to make curves change predictable when endpoints move. Each point P is defined in terms of the straight edge [S, E] between the start point of the curve S and its end point E. *P / / / S *------------* E Counter-clockwise angle between vector SE and vector SP. + * `distanceMultiplier` (*type:* `float()`, *default:* `nil`) - Distance(S, P) in units of Distance(S, E). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :angleDegrees => float() | nil, + :distanceMultiplier => float() | nil + } + + field(:angleDegrees) + field(:distanceMultiplier) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoBezierParamsControlPoint do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoBezierParamsControlPoint.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoBezierParamsControlPoint do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curve_connection_proto_circle_params.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curve_connection_proto_circle_params.ex new file mode 100644 index 0000000000..ff3b386b43 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_curve_connection_proto_circle_params.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoCircleParams do + @moduledoc """ + + + ## Attributes + + * `radius` (*type:* `float()`, *default:* `nil`) - Arc radius. Must be greater than half-distance between two endpoints. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :radius => float() | nil + } + + field(:radius) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoCircleParams do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoCircleParams.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProtoCircleParams do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_data_source_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_data_source_proto.ex new file mode 100644 index 0000000000..0f34ecb8fd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_data_source_proto.ex @@ -0,0 +1,91 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreDataSourceProto do + @moduledoc """ + Every data source used to construct a data repository has an associated feature that provides more information about it. The standard feature properties have the following interpretations: bound - The bounds must includes all features that refer to this data source, so that bucketing MapReduce passes work correctly. name - The provider name associated with this data source. It is expected to remain constant from release to release, and between datasets. address - should be empty. point, polyline, polygon - should be empty. source_info - should not be set. child - should be empty. + + ## Attributes + + * `attributionUrl` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto.t)`, *default:* `nil`) - This is the URL of a website representing this DataSource as a whole. If this DataSource feature is specific to a particular dataset or product, the page may contain information relevant to that dataset or product or may be the main page of the organization. + * `copyrightOwner` (*type:* `String.t`, *default:* `nil`) - A UTF8 string that will be inserted in copyright messages to refer to this copyright owner, e.g. "Tele Atlas". + * `copyrightYear` (*type:* `integer()`, *default:* `nil`) - The copyright year of this data (which may be different than the year of the release date), e.g. 2005. + * `description` (*type:* `String.t`, *default:* `nil`) - A free-form description of this data source. Ideally the description should include: - Where the data was obtained (URL, company name, individual, etc). - Where to find detailed documentation. - A brief summary of the licensing terms. - As much internal and external contact information as possible (e.g. who to ask about licensing questions, interpreting the data, updating the data, fixing bugs in the importer, etc). + * `importerBuildInfo` (*type:* `String.t`, *default:* `nil`) - The build information of the importer binary used to generate this data source. + * `importerBuildTarget` (*type:* `String.t`, *default:* `nil`) - The build target of the importer binary used to generate this data source. + * `importerClientInfo` (*type:* `String.t`, *default:* `nil`) - The Perforce client information of the importer binary used to generate this data source. + * `importerMpmVersion` (*type:* `String.t`, *default:* `nil`) - If the importer was built as an MPM, the version number can be stored in this field. As with build_info, this can be useful when tracking down issues that may be due to the use of a particular binary. + * `importerTimestamp` (*type:* `String.t`, *default:* `nil`) - The timestamp of the importer binary used to generate this data source. + * `provider` (*type:* `String.t`, *default:* `nil`) - The provider type of this data source. + * `rawMetadata` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRawMetadataProto.t)`, *default:* `nil`) - For every key that is used in raw_data from this source, there must be a corresponding entry in raw_metadata that describes this key. + * `release` (*type:* `String.t`, *default:* `nil`) - A release string that doesn't have to be a date. This is provided so that we can preserve provider release strings that aren't based on dates. If you don't set it, the release_date will get formatted into this field for debugging purposes. + * `releaseDate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t`, *default:* `nil`) - The release date of this data. + * `sourceDataset` (*type:* `String.t`, *default:* `nil`) - A data provider defined string describing the source dataset from which the features of this data source were generated. For example, the MultiNet "fra" dataset produces features for both France and Monaco. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributionUrl => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto.t()) | nil, + :copyrightOwner => String.t() | nil, + :copyrightYear => integer() | nil, + :description => String.t() | nil, + :importerBuildInfo => String.t() | nil, + :importerBuildTarget => String.t() | nil, + :importerClientInfo => String.t() | nil, + :importerMpmVersion => String.t() | nil, + :importerTimestamp => String.t() | nil, + :provider => String.t() | nil, + :rawMetadata => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRawMetadataProto.t()) | nil, + :release => String.t() | nil, + :releaseDate => GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t() | nil, + :sourceDataset => String.t() | nil + } + + field(:attributionUrl, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto, type: :list) + field(:copyrightOwner) + field(:copyrightYear) + field(:description) + field(:importerBuildInfo) + field(:importerBuildTarget) + field(:importerClientInfo) + field(:importerMpmVersion) + field(:importerTimestamp) + field(:provider) + + field(:rawMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRawMetadataProto, + type: :list + ) + + field(:release) + field(:releaseDate, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto) + field(:sourceDataset) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreDataSourceProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreDataSourceProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreDataSourceProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_date_time_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_date_time_proto.ex new file mode 100644 index 0000000000..9596f7f0a5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_date_time_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto do + @moduledoc """ + WARNING: Outside of FeatureProto, please avoid in favor of a standard civil time type. Direct usage is error-prone due to the conflation of physical time and civil time (go/httat). In a protocol buffer, please use google.type.Date, with an additional google.type.TimeOfDay for precision finer-grained than a day. (For google.type.DateTime, go/prototime#types cites go/httat#zoned_datetime as a caveat). In a programming language, see go/time-devguide/languages. Additionally in C++, google3/geostore/base/public/datetime.h has conversion functions between DateTimeProto and Abseil's civil time types. + + ## Attributes + + * `precision` (*type:* `String.t`, *default:* `nil`) - This attribute describes the precision of the date and time. It would be unusual for a data provider to provide a precision along with their date. It is more likely that the precision of a date will be inferred from the date format. For example "19th century" is likely to be correct to the century, while "1800" is probably correct to the year. The precision should be semantically interpreted as a cast, so a DateTimeProto object with a seconds value corresponding to 2018-03-28 18:40:00 UTC and a precision of MONTH should be interpreted as "March 2018". The enums above are only some of the possible precision levels for dates and times. Clients may wish to add more precision enums in the future. However, these enums must be ordered by decreasing duration. Clients should be able to write date formatting code that looks like this: if (datetime.precision() <= DateTimeProto::PRECISION_CENTURY) { date = FormatCenturyDate(proto.seconds()); } else if (proto.precision() <= case DateTimeProto::PRECISION_DECADE) { date = FormatDecadeDate(proto.seconds()); } else { ... } See geostore/base/public/datetime.h for date formatting utility functions. + * `seconds` (*type:* `float()`, *default:* `nil`) - Number of seconds since (or before) the UNIX epoch (January 1, 1970). This is also the standard epoch for Java and Python time representations. If it is important for this time be displayed correctly for different time zones, convert the time to Coordinated Universal Time (UTC). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :precision => String.t() | nil, + :seconds => float() | nil + } + + field(:precision) + field(:seconds) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_dimension_comparison_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_dimension_comparison_proto.ex new file mode 100644 index 0000000000..9d58397f95 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_dimension_comparison_proto.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionComparisonProto do + @moduledoc """ + A dimension value tagged with a comparison operator. This can be used for height, width, or length. + + ## Attributes + + * `comparisonOperator` (*type:* `String.t`, *default:* `nil`) - + * `dimensionWithUnit` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionProto.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :comparisonOperator => String.t() | nil, + :dimensionWithUnit => + GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionProto.t() | nil + } + + field(:comparisonOperator) + field(:dimensionWithUnit, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionComparisonProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionComparisonProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionComparisonProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_dimension_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_dimension_proto.ex new file mode 100644 index 0000000000..add0dc5a1b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_dimension_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionProto do + @moduledoc """ + A dimension with a numerical value and unit. This can be a height, width, or length. + + ## Attributes + + * `dimension` (*type:* `number()`, *default:* `nil`) - + * `unit` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dimension => number() | nil, + :unit => String.t() | nil + } + + field(:dimension) + field(:unit) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_display_data_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_display_data_proto.ex new file mode 100644 index 0000000000..94f350438d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_display_data_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreDisplayDataProto do + @moduledoc """ + This holds data specific to rendering a POI on a map. It's derived from data already in MapFacts, e.g. containing features and the feature's point field. If empty, this proto should be ignored for rendering. See go/maps-render-alignment for motivation and more details. + + ## Attributes + + * `displayLocation` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t`, *default:* `nil`) - The location where this feature should be rendered. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayLocation => GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t() | nil + } + + field(:displayLocation, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreDisplayDataProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreDisplayDataProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreDisplayDataProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_disputed_area_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_disputed_area_proto.ex new file mode 100644 index 0000000000..5319c02c47 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_disputed_area_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreDisputedAreaProto do + @moduledoc """ + This protocol buffer is used to store information about disputed areas. E.g., the political power that administers a disputed area or the countries that claim it. It should only be used for features of TYPE_DISPUTED_AREA. + + ## Attributes + + * `administeredBy` (*type:* `String.t`, *default:* `nil`) - If present this feature is administered by the power present in the field. In most cases this will be a two letter ISO-3166 region code, but may be a descriptive string if no region code is available. + * `claimant` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - Feature IDs (usually a country feature ID) of all parties who claim this feature. No claimants means the claim by the country that contains it (based on country polygon) is not disputed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :administeredBy => String.t() | nil, + :claimant => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil + } + + field(:administeredBy) + field(:claimant, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreDisputedAreaProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreDisputedAreaProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreDisputedAreaProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_doodle_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_doodle_proto.ex new file mode 100644 index 0000000000..204533e27b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_doodle_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreDoodleProto do + @moduledoc """ + This protocol buffer holds the doodle-specific attributes for features of type TYPE_DOODLE. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - The type of this feature -- see comments above. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreDoodleProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreDoodleProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreDoodleProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_duration_based_rate_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_duration_based_rate_proto.ex new file mode 100644 index 0000000000..74ea34c426 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_duration_based_rate_proto.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreDurationBasedRateProto do + @moduledoc """ + A single cost which will apply based on the duration of utilization. The cost may apply once, or repeatedly on some interval, to account for the total utilization. If the duration expressed by range_start_seconds and range_end_seconds do not cover the entire duration of the utilization (i.e. from 0 to some time greater than the total utilization time), this must be combined with other DurationBasedRateProtos such that the entire duration of the utilization is accounted for. See go/rate-schema for more details. + + ## Attributes + + * `isFree` (*type:* `boolean()`, *default:* `nil`) - If true, represents that the rate is free; i.e. the price is 0 in any currency. If this is true, price must be empty. + * `periodicitySeconds` (*type:* `integer()`, *default:* `nil`) - The billable unit of the rate; i.e. after having utilized the service for exactly periodicity_seconds, the total cost should increase by ‘price’. For example, if the rate expresses a price per hour, then periodicity_seconds should be set to 3600. If this is unset, then the rate does not vary based on duration, and price represents a flat cost. May only be set if price is nonempty. + * `price` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.FreebaseTopic.t)`, *default:* `nil`) - The total price, in each applicable currency, of utilizing the service for periodicity_seconds, or for the entire duration expressed by range_start_seconds and range_end_seconds if periodicity_seconds is 0. Each entry should have an ID of /measurement_unit/money_value and consist of two properties: one with an ID of /measurement_unit/money_value/amount and a float value with the amount, and another with the ID /measurement_unit/money_value/currency and an ID value with the MID of the proper currency. May only be set if is_free is false. + * `rangeEndSeconds` (*type:* `integer()`, *default:* `nil`) - Upper bound for durations to match, exclusive. Unset implies indefinite. + * `rangeStartSeconds` (*type:* `integer()`, *default:* `nil`) - Lower bound for durations to match, inclusive. Required; a value of 0 expresses that the price applies from the start of the utilization period. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isFree => boolean() | nil, + :periodicitySeconds => integer() | nil, + :price => list(GoogleApi.ContentWarehouse.V1.Model.FreebaseTopic.t()) | nil, + :rangeEndSeconds => integer() | nil, + :rangeStartSeconds => integer() | nil + } + + field(:isFree) + field(:periodicitySeconds) + field(:price, as: GoogleApi.ContentWarehouse.V1.Model.FreebaseTopic, type: :list) + field(:rangeEndSeconds) + field(:rangeStartSeconds) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreDurationBasedRateProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreDurationBasedRateProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreDurationBasedRateProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_elevation_model_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_elevation_model_proto.ex new file mode 100644 index 0000000000..c8fc6a18e8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_elevation_model_proto.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreElevationModelProto do + @moduledoc """ + Represents raster digital elevation model data. + + ## Attributes + + * `blendOrder` (*type:* `integer()`, *default:* `nil`) - Defines the relative order in which terrain data should be rendered. Features with higher blend_order should be blended on top of features with lower blend_order. NOTE: this is backwards from the way BlendRank works in Magrathean. + * `dataLevel` (*type:* `integer()`, *default:* `nil`) - The zoom level at which this data is defined. Level 0 is world level data, and each increase in zoom level corresponds to a factor of 2 increase in scale. + * `dataMaxlevel` (*type:* `integer()`, *default:* `nil`) - The maximum (finest) level at which this terrain data has sufficient resolution to be displayed. + * `elevationData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - A place to store an elevation data protocol buffer. Currently, this must be a keyhole::AssetTileCompressed (see google3/keyhole/common/proto/magrathean.protodevel). + * `fullChildDataAvailable` (*type:* `boolean()`, *default:* `nil`) - If true, all of the data contained in this feature is available at the next highest (more detailed) level. If this is true, partial_child_data_available should also be true. + * `partialChildDataAvailable` (*type:* `boolean()`, *default:* `nil`) - If true, at least part of the data contained in this feature is available at the next highest (more detailed) level. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :blendOrder => integer() | nil, + :dataLevel => integer() | nil, + :dataMaxlevel => integer() | nil, + :elevationData => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :fullChildDataAvailable => boolean() | nil, + :partialChildDataAvailable => boolean() | nil + } + + field(:blendOrder) + field(:dataLevel) + field(:dataMaxlevel) + field(:elevationData, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + field(:fullChildDataAvailable) + field(:partialChildDataAvailable) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreElevationModelProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreElevationModelProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreElevationModelProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_elevation_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_elevation_proto.ex new file mode 100644 index 0000000000..f67b2b10aa --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_elevation_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreElevationProto do + @moduledoc """ + This protocol buffer holds elevation and related data. + + ## Attributes + + * `averageElevationMeters` (*type:* `float()`, *default:* `nil`) - The average elevation of the feature in meters above the local mean sea level. + * `peak` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePeakProto.t`, *default:* `nil`) - Additional details for TYPE_PEAK and TYPE_VOLCANO features. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :averageElevationMeters => float() | nil, + :peak => GoogleApi.ContentWarehouse.V1.Model.GeostorePeakProto.t() | nil + } + + field(:averageElevationMeters) + field(:peak, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePeakProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreElevationProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreElevationProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreElevationProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_entrance_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_entrance_proto.ex new file mode 100644 index 0000000000..33e17ec363 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_entrance_proto.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreEntranceProto do + @moduledoc """ + This protocol buffer holds entrance-specific attributes for features of type TYPE_ENTRANCE. + + ## Attributes + + * `allowance` (*type:* `String.t`, *default:* `nil`) - + * `canEnter` (*type:* `boolean()`, *default:* `nil`) - DEPRECATED. Please use enter_or_exit instead. + * `canExit` (*type:* `boolean()`, *default:* `nil`) - Whether the target can be entered through this entrance. Whether the target can be exited through this entrance. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowance => String.t() | nil, + :canEnter => boolean() | nil, + :canExit => boolean() | nil + } + + field(:allowance) + field(:canEnter) + field(:canExit) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreEntranceProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreEntranceProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreEntranceProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_entrance_reference_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_entrance_reference_proto.ex new file mode 100644 index 0000000000..a329ce40ab --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_entrance_reference_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreEntranceReferenceProto do + @moduledoc """ + Models a relationship between a feature and its entrance or exit. + + ## Attributes + + * `featureId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - Feature ID of the related entrance. References should refer to TYPE_ENTRANCE or TYPE_COMPOUND features that are entrances or exits of the referencing feature. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :featureId => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil + } + + field(:featureId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreEntranceReferenceProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreEntranceReferenceProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreEntranceReferenceProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_establishment_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_establishment_proto.ex new file mode 100644 index 0000000000..2eae84f625 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_establishment_proto.ex @@ -0,0 +1,70 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreEstablishmentProto do + @moduledoc """ + This protocol buffer holds establishment-specific attributes for features of type TYPE_ESTABLISHMENT. + + ## Attributes + + * `bizbuilderReference` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreBizBuilderReferenceProto.t`, *default:* `nil`) - Reference to BizBuilder data for this establishment. The bizbuilder_reference field indicates that a feature is claimed in CBDB (with the canonical state in MapFacts). The bizbuilder_reference is different from the social_reference's claimed_gaia_id because some BizBuilder clients will not have +Pages. All claimed businesses should have a bizbuilder_reference. + * `hours` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t`, *default:* `nil`) - Regular opening hours for the establishment (weekly schedule). + * `openingHours` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreOpeningHoursProto.t`, *default:* `nil`) - Opening hours for this establishment, including regular weekly hours and exceptional hours (e.g. on holidays). NOTE: in practice, only the exceptional hours are filled in this message. A schema migration for regular weekly hours was planned back in 2015 (see b/23105782) but was not completed and is (as of May 2018) not prioritized. Clients should continue getting regular opening hours from the `hours` field above. In openinghours.h there is a utility function `GetOpeningHoursFromFeature` that merges `EstablishmentProto.hours` into this proto. + * `priceInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoProto.t`, *default:* `nil`) - Pricing for products and services offered. Example: menus for restaurants. + * `serviceArea` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreServiceAreaProto.t`, *default:* `nil`) - + * `telephone` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTelephoneProto.t)`, *default:* `nil`) - Telephone number and related information. + * `type` (*type:* `String.t`, *default:* `nil`) - ** DEPRECATED ** This is deprecated in favor of the top-level (in FeatureProto) set of GConcepts. The type of establishment -- see comments above. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bizbuilderReference => + GoogleApi.ContentWarehouse.V1.Model.GeostoreBizBuilderReferenceProto.t() | nil, + :hours => GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t() | nil, + :openingHours => + GoogleApi.ContentWarehouse.V1.Model.GeostoreOpeningHoursProto.t() | nil, + :priceInfo => GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoProto.t() | nil, + :serviceArea => GoogleApi.ContentWarehouse.V1.Model.GeostoreServiceAreaProto.t() | nil, + :telephone => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTelephoneProto.t()) | nil, + :type => String.t() | nil + } + + field(:bizbuilderReference, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreBizBuilderReferenceProto + ) + + field(:hours, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto) + field(:openingHours, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreOpeningHoursProto) + field(:priceInfo, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoProto) + field(:serviceArea, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreServiceAreaProto) + field(:telephone, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTelephoneProto, type: :list) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreEstablishmentProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreEstablishmentProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreEstablishmentProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_exceptional_hours_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_exceptional_hours_proto.ex new file mode 100644 index 0000000000..4e07481f8b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_exceptional_hours_proto.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreExceptionalHoursProto do + @moduledoc """ + An ExceptionalHoursProto holds information about exceptional (non-regular) hours for a business, such as holiday hours. + + ## Attributes + + * `hours` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessHoursProto.t`, *default:* `nil`) - The weekly schedule to be applied for the dates that fall within the range. The schedule may contain hours only for days of the week that occur during the date range specified in the range field. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this exception. + * `range` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeIntervalProto.t`, *default:* `nil`) - The dates for which this exception applies, expressed as a half open interval. For example, an exception that applies for the entire month of December 2015 should have a range December 1, 2015 to January 1, 2016. Any regular hours that start on days in this range are ignored and replaced by the exceptional hours for that day. The TimeIntervalProto for the range must be a fully specified, non-empty, and non-inverted range of dates. Concretely, the requirements are: * the range must be a TYPE_RANGE interval * the interval may not be inverted * the endpoints of the interval must specify a year, month, and day * the day_type of each endpoint must be type DAY_OF_MONTH * the endpoints may not specify hour, minute, second, week, or week_type * the begin endpoint must predate the end endpoint + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :hours => GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessHoursProto.t() | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :range => GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeIntervalProto.t() | nil + } + + field(:hours, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessHoursProto) + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:range, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeIntervalProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreExceptionalHoursProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreExceptionalHoursProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreExceptionalHoursProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_existence_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_existence_proto.ex new file mode 100644 index 0000000000..c204f3791b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_existence_proto.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreExistenceProto do + @moduledoc """ + + + ## Attributes + + * `closeReason` (*type:* `String.t`, *default:* `nil`) - Structured reason for the permanent closure (if any). + * `closed` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the place is closed (permanently or temporarily), i.e., not operational in the present, but was at in the past and/or will be in the future. WARNING: New code should use Geo Schema's libraries instead, specifically the OpeningStatus APIs, available in: * C++ (cs/f:google3/geostore/base/public/feature.h%20function:ExistenceState) * Java (cs/f:google3/java/com/google/geostore/base/Existence.java%20function:OpeningStatus) * Python (cs/f:google3/geostore/base/public/python/feature.clif%20existence_state) + * `endAsOfDate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t`, *default:* `nil`) - The earliest known date of this feature's "end" (e.g. an establishment's permanent closure), if the actual date is unknown; i.e. the best known upper bound of the day end_date would represent. end_as_of_date must be in local (civil) time and of PRECISION_DAY. For example, given an establishment: * Without any end_as_of_date, the permanent closure definitely isn't now and isn't known to start at any point in the future. * With an end_as_of_date of 2023-04-05 but without any end_date, the permanent closure definitely starts at latest 2023-04-05 but may start before 2023-04-05. * With an end_as_of_date of 2023-04-05 and an end_date of 2023 (at just PRECISION_YEAR), the permanent closure definitely starts at earliest 2023-01-01 (i.e. the first day of 2023) and at latest 2023-04-05, but may start at any day between 2023-01-01 and 2023-04-05. IMPORTANT: Generally for Geo Schema-internal use only. If you believe you need to use this field directly, please go/contact-geo-schema. + * `endDate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t`, *default:* `nil`) - + * `featureBirthTimestampSeconds` (*type:* `String.t`, *default:* `nil`) - ** DEPRECATED ** This field is now deprecated (see b/22878252). Please use the Geo Schema GetFeatureBirthTimestamp() API to extract the birth timestamp of a feature. The timestamp in seconds since the UNIX epoch (January 1, 1970) when this feature becomes live in the Geo repository. Different from start_date in that this is the birth date of Google's representation of the place whereas start_date is the birth date of the place in the physical world. + * `removed` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the feature is marked as removed in the Geo repository. Removed features are still present in the Geo repository but are considered to be in an inactive state (not valid for lint purposes, not retrievable except explicitly by feature ID, etc.). NOTE: If you have access to a complete FeatureProto, do NOT read this bit directly to find out whether a feature is removed. Instead, rely on the IsFeatureRemoved() API, available in C++ (geostore/base/public/feature.h) and Java (geostore/base/Feature.java). + * `removedReason` (*type:* `String.t`, *default:* `nil`) - Structured reason why the feature is marked as removed. Relevant only when removed == true. + * `startDate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t`, *default:* `nil`) - (Initial) opening and (permanent) closing dates of the establishment, such that start_date is the first day open and end_date is the first day closed. The only allowed precisions are PRECISION_DAY, PRECISION_MONTH, PRECISION_YEAR. DateTimeProto.seconds should have the lowest legal value for the desired date/time and precision. E.g. for PRECISION_MONTH, 2019-02-15 21:10:30 is not valid, it should be 2019-02-01 00:00:00 instead. NOTE: The start_date and end_date are stored in UTC but should be interpreted as being in the local timezone. So clients should convert the DateTimeProto to local (civil) time using UTC+0, and then treat the result as local to the feature. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :closeReason => String.t() | nil, + :closed => boolean() | nil, + :endAsOfDate => GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t() | nil, + :endDate => GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t() | nil, + :featureBirthTimestampSeconds => String.t() | nil, + :removed => boolean() | nil, + :removedReason => String.t() | nil, + :startDate => GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t() | nil + } + + field(:closeReason) + field(:closed) + field(:endAsOfDate, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto) + field(:endDate, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto) + field(:featureBirthTimestampSeconds) + field(:removed) + field(:removedReason) + field(:startDate, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreExistenceProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreExistenceProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreExistenceProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_field_metadata_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_field_metadata_proto.ex new file mode 100644 index 0000000000..735ad3a97c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_field_metadata_proto.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureFieldMetadataProto do + @moduledoc """ + Provenance information for sub-fields of this feature - go/subfield-provenance. + + ## Attributes + + * `fieldProvenance` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureFieldMetadataProtoFieldProvenance.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fieldProvenance => + list( + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureFieldMetadataProtoFieldProvenance.t() + ) + | nil + } + + field(:fieldProvenance, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureFieldMetadataProtoFieldProvenance, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureFieldMetadataProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureFieldMetadataProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureFieldMetadataProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_field_metadata_proto_field_provenance.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_field_metadata_proto_field_provenance.ex new file mode 100644 index 0000000000..9597660289 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_field_metadata_proto_field_provenance.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureFieldMetadataProtoFieldProvenance do + @moduledoc """ + + + ## Attributes + + * `fieldPath` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreStableFieldPathProto.t)`, *default:* `nil`) - Represents all fields for which this SourceInfo is valid. NOTE: Field paths are rooted at FeatureProto level. + * `provenance` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreProvenanceProto.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fieldPath => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreStableFieldPathProto.t()) | nil, + :provenance => GoogleApi.ContentWarehouse.V1.Model.GeostoreProvenanceProto.t() | nil + } + + field(:fieldPath, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreStableFieldPathProto, + type: :list + ) + + field(:provenance, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreProvenanceProto) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureFieldMetadataProtoFieldProvenance do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureFieldMetadataProtoFieldProvenance.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureFieldMetadataProtoFieldProvenance do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_history_metadata_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_history_metadata_proto.ex new file mode 100644 index 0000000000..5720dc79da --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_history_metadata_proto.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureHistoryMetadataProto do + @moduledoc """ + Metadata related to the history of a given feature in the Geo repository. + + ## Attributes + + * `featureBirthTimestampUs` (*type:* `String.t`, *default:* `nil`) - The timestamp (in microseconds since the UNIX epoch) when this feature first went live in the Geo repository. Note that this has no relation to the birth data of that geographical entity in the real world. + * `lastModificationTimestampUs` (*type:* `String.t`, *default:* `nil`) - The timestamp (in microseconds since the UNIX epoch) of the last modification to the feature. Note this includes attachment modifications. The feature's initial creation is also considered as a modification. This is useful for those that consume features via both listening to notifications and reading from repository snapshots. This timestamp can be used to decide whether a feature in the snapshot was already seen in a more recent state through the notifications. + * `removalTimestampUs` (*type:* `String.t`, *default:* `nil`) - The timestamp (in microseconds since the UNIX epoch) of the deletion time of the feature. If the feature is currently removed, this field gets populated with the timestamp the feature first became removed after being live (or being removed from beginning). This field won't be set if the feature is live. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :featureBirthTimestampUs => String.t() | nil, + :lastModificationTimestampUs => String.t() | nil, + :removalTimestampUs => String.t() | nil + } + + field(:featureBirthTimestampUs) + field(:lastModificationTimestampUs) + field(:removalTimestampUs) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureHistoryMetadataProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureHistoryMetadataProto.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureHistoryMetadataProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_id_forwardings_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_id_forwardings_proto.ex new file mode 100644 index 0000000000..9b32368c9c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_id_forwardings_proto.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdForwardingsProto do + @moduledoc """ + Feature ID forwardings. There are many different types of ID forwardings, some of which are attached to live features, others to removed features. This information is available in multiple forms (with different completeness guarantees): (1) in RPC responses to read requests to the live Geo repository; (2) on disk, as part of the metadata section of features found in the (inactive) features snapshots; (3) on disk, as part of a separate feature_id_forwardings side table. + + ## Attributes + + * `duplicateOf` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - If the feature has been marked as a DUPLICATE of another feature, this is the feature ID of that other feature. Note that the other feature may itself be removed. This field is always set. + * `forwardedId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - The feature ID of the forwarded feature. This field is only set in case (3). + * `inactiveDuplicate` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - If other features have been marked as DUPLICATE of this feature, this is the set of all such feature IDs. All feature IDs in this set should be for removed (aka inactive) features. Note that in the context of historical read requests against MapFacts (when ReadRequest.version_selection.timestamp is set), this field won't be set. + * `replacedBy` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdListProto.t`, *default:* `nil`) - DEPRECATED - Use feature.metadata.feature_replacement_info instead. This field was never populated. + * `transitivelyDuplicateOf` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - If the feature has been transitively marked as a DUPLICATE of another feature (via a chain of size >= 1), this is the feature ID of that other feature which is the end of the chain. The field is always set even if the chain is of size 1. Note that the other feature may itself be removed. This field is only set in case (3). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :duplicateOf => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :forwardedId => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :inactiveDuplicate => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :replacedBy => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdListProto.t() | nil, + :transitivelyDuplicateOf => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil + } + + field(:duplicateOf, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:forwardedId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + + field(:inactiveDuplicate, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, + type: :list + ) + + field(:replacedBy, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdListProto) + field(:transitivelyDuplicateOf, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdForwardingsProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdForwardingsProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdForwardingsProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_id_list_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_id_list_proto.ex new file mode 100644 index 0000000000..39ace96370 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_id_list_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdListProto do + @moduledoc """ + A simple list of feature IDs. + + ## Attributes + + * `id` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - The list of feature IDs. While the exact semantics of these IDs are usage-dependent, the list should never be empty or contain duplicates. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil + } + + field(:id, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdListProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdListProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdListProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_id_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_id_proto.ex new file mode 100644 index 0000000000..6943e47df7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_id_proto.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto do + @moduledoc """ + A globally unique identifier associated with each feature. We use 128-bit identifiers so that we have lots of bits available to distinguish between features. The feature id currently consists of a 64-bit "cell id" that **sometimes** corresponds to the approximate centroid of the feature, plus a 64-bit fingerprint of other identifying information. See more on each respective field in its comments. Feature ids are first assigned when the data is created in MapFacts. After initial creation of the feature, they are immutable. This means that the only properties that you should rely on are that they are unique, and that cell_ids often - but not always - preserve spatial locality. The degree of locality varies as the feature undergoes geometry changes, and should not in general be considered a firm guarantee of the location of any particular feature. In fact, some locationless features have randomized cell IDs! Consumers of FeatureProtos from Mapfacts are guaranteed that fprints in the id field of features will be globally unique. Using the fprint allows consumers who don't need the spatial benefit of cell ids to uniquely identify features in a 64-bit address space. This property is not guaranteed for other sources of FeatureProtos. + + ## Attributes + + * `cellId` (*type:* `String.t`, *default:* `nil`) - The S2CellId corresponding to the approximate location of this feature as of when it was first created. This can be of variable accuracy, ranging from the exact centroid of the feature at creation, a very large S2 Cell, or even being completely randomized for locationless features. Cell ids have the nice property that they follow a space-filling curve over the surface of the earth. (See s2cellid.h for details.) WARNING: Clients should only use cell IDs to perform spatial locality optimizations. There is no strict guarantee that the cell ID of a feature is related to the current geometry of the feature in any way. + * `fprint` (*type:* `String.t`, *default:* `nil`) - A 64-bit fingerprint used to identify features. Most clients should rely on MapFacts or OneRing to choose fingerprints. If creating new fprints, the strategy should be chosen so that the chance of collision is remote or non-existent, and the distribution should be reasonably uniform. For example, if the source data assigns unique ids to features, then a fingerprint of the provider name, version, and source id is sufficient. + * `temporaryData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - A place for clients to attach arbitrary data to a feature ID. Never set in MapFacts. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cellId => String.t() | nil, + :fprint => String.t() | nil, + :temporaryData => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil + } + + field(:cellId) + field(:fprint) + field(:temporaryData, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_metadata_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_metadata_proto.ex new file mode 100644 index 0000000000..2ef69e2f0b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_metadata_proto.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureMetadataProto do + @moduledoc """ + General metadata related to a given feature in the Geo repository. + + ## Attributes + + * `bulkUpdatable` (*type:* `String.t`, *default:* `nil`) - This field indicates whether the feature is subject to bulk updates. Caution must be exercised while editing such features since the changes made by the edits will be overwritten by the bulk update (if the feature is bulk updated). See go/mapfacts-abu for more information. + * `coreVersionToken` (*type:* `String.t`, *default:* `nil`) - core_version_token is an opaque token representing the version of the core fields of the feature. This field is not updated when attachments are changed. + * `featureReplacementInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureReplacementInfoProto.t`, *default:* `nil`) - Metadata for tracking when a feature is derived from or replaced by another feature or set of features. + * `fieldMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureFieldMetadataProto.t`, *default:* `nil`) - Metadata about certain repeated fields and their subfields, for which field type is not granular enough. + * `forwardings` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdForwardingsProto.t`, *default:* `nil`) - Feature ID forwardings, if applicable. + * `history` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureHistoryMetadataProto.t`, *default:* `nil`) - Metadata related to the history. + * `versionToken` (*type:* `String.t`, *default:* `nil`) - version_token is an opaque token representing the version of this feature. It can be used as a concurrency token when sending edits. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bulkUpdatable => String.t() | nil, + :coreVersionToken => String.t() | nil, + :featureReplacementInfo => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureReplacementInfoProto.t() | nil, + :fieldMetadata => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureFieldMetadataProto.t() | nil, + :forwardings => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdForwardingsProto.t() | nil, + :history => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureHistoryMetadataProto.t() | nil, + :versionToken => String.t() | nil + } + + field(:bulkUpdatable) + field(:coreVersionToken) + + field(:featureReplacementInfo, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureReplacementInfoProto + ) + + field(:fieldMetadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureFieldMetadataProto) + field(:forwardings, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdForwardingsProto) + field(:history, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureHistoryMetadataProto) + field(:versionToken) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureMetadataProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureMetadataProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureMetadataProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_property_id_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_property_id_proto.ex new file mode 100644 index 0000000000..bccb18f228 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_property_id_proto.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFeaturePropertyIdProto do + @moduledoc """ + Message to represent a "feature property" as an abstract construct. Most feature properties are mapped one to one with the EditProto field types. However in some cases the EditProto field type granularity is too coarse to support use-cases that rely on feature properties (such as per-value rights tracking). When that is the case, the feature property is augmented with a secondary field. + + ## Attributes + + * `attachmentTypeId` (*type:* `String.t`, *default:* `nil`) - Required when field_type == ATTACHMENT. + * `attributeId` (*type:* `String.t`, *default:* `nil`) - Required when field_type == FEATURE_ATTRIBUTE. + * `fieldType` (*type:* `String.t`, *default:* `nil`) - + * `kgPropertyId` (*type:* `String.t`, *default:* `nil`) - Required when field_type == KNOWLEDGE_GRAPH_PROPERTY. + * `nameLanguage` (*type:* `String.t`, *default:* `nil`) - RESERVED + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attachmentTypeId => String.t() | nil, + :attributeId => String.t() | nil, + :fieldType => String.t() | nil, + :kgPropertyId => String.t() | nil, + :nameLanguage => String.t() | nil + } + + field(:attachmentTypeId) + field(:attributeId) + field(:fieldType) + field(:kgPropertyId) + field(:nameLanguage) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeaturePropertyIdProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeaturePropertyIdProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeaturePropertyIdProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_proto.ex new file mode 100644 index 0000000000..6cff6fa35c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_proto.ex @@ -0,0 +1,443 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureProto do + @moduledoc """ + Every entry in the GeoStore database is called a "feature". A feature is represented as a discriminated union of all the different feature types, where the actual feature type is specified by the "type" field. There are also various fields that are meaningful for most or all feature types, such as bounding regions and names. Every feature has a globally unique id that can be used to refer to it from other features. + + ## Attributes + + * `intersection` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreIntersectionProto.t`, *default:* `nil`) - + * `relatedEntrance` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreEntranceReferenceProto.t)`, *default:* `nil`) - Logical relationship to other features that are entrances or exits to this feature. + * `inferredGeometry` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreInferredGeometryProto.t`, *default:* `nil`) - + * `visualizationArea` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryStoreReferenceProto.t`, *default:* `nil`) - Geometry Store ID and materialized geometry representing a tight bounding box of the feature's geometry (or the building/grounds a POI occupies), e.g. for generating flyover experiences. + * `bound` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreRectProto.t`, *default:* `nil`) - A latitude-longitude rectangle used by bucketing MapReduces. See the documentation on bucketing MapReduce for details. This field can be a source of confusion. Because it is called "bound", it is often assumed that it is a tight bound on the geometry but it can be (and often is) much larger. If a tight bound is needed then use the standard GetFeatureGeometryBound() function instead. To be more explicit, if you are using this field for *anything* else than a bucketing MapReduce, you are doing the wrong thing. Not all features are required to have bounding boxes. See geostore::IsBoundRequiredForFeatureType() for the list of feature types required to have a bounding box. This bound field will be updated when a feature changes in MapFacts to include its geometry. Also, a GeoSchema pipeline, go/geo-schema-pipelines-docs#expand-bounds runs periodically to update the field for strong references from other features. Therefore, most editors don't need to edit this field explicitly. See go/geo-changes:no-edit-for-feature-bound for the details. + * `tollCluster` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreTollClusterProto.t`, *default:* `nil`) - Represents information about TYPE_TOLL_CLUSTER features. + * `skiTrail` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiTrailProto.t`, *default:* `nil`) - + * `border` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreBorderProto.t`, *default:* `nil`) - + * `parking` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingProto.t`, *default:* `nil`) - Describes parking details for the feature. + * `intersectionGroup` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreIntersectionGroupProto.t`, *default:* `nil`) - + * `transitLine` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitLineProto.t`, *default:* `nil`) - + * `polygonForDisplay` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto.t`, *default:* `nil`) - Provide version of the geometry suitable for display. This has been subject to water removal and (possibly) moderate simplification. + * `associatedEvChargingStation` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - + * `pose` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePoseProto.t`, *default:* `nil`) - Defines the geometry of a feature as a 6D pose, including lat, lng, altitude, roll, pitch, and yaw along the WGS-84 ellipsoid. Only the lat and lng are strictly required. + * `skiBoundary` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiBoundaryProto.t`, *default:* `nil`) - + * `displayData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreDisplayDataProto.t`, *default:* `nil`) - Data used to render this feature on a map. + * `child` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - Features can define themselves as a collection of other features. For example, a route is a collection of road segments, and a feature for the "Great Lakes" could be defined as lakes Superior, Michigan, Huron, Erie, and Ontario. It is not recommended to design a multi level tree using the child field to build up a feature because it requires fetching many features to see the details of the feature. In practice this is used to model archipelago, route, transit (agencies, lines, trips, departures), and river features. The geometry of a feature is implicitly defined by its children, so if a feature has children then it should not have any points, polylines, or polygons. In general, this field should not be used to represent political or postal hierarchies. For example, a county would not list its cities as children, because the county is not defined in terms of its cities (it also contains unincorporated areas, etc.). + * `schoolDistrict` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreSchoolDistrictProto.t`, *default:* `nil`) - + * `track` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTrackProto.t)`, *default:* `nil`) - Defines the geometry of a feature as a sequence of 6D poses, including lat, lng, altitude, roll, pitch, and yaw. Only lat and lng are typically required. Each track has an index so that they can be viewed in a stable order. + * `kgProperty` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.FreebasePropertyValue.t)`, *default:* `nil`) - Properties that apply to this feature whose schema is defined in the Knowledge Graph schema (see https://hume.google.com/graph/schema). Not all properties that exist in the KG schema can be asserted via this mechanism. The set of properties that are allowed to be set on a feature depends on the feature's GConcepts (and feature type). For instance, only gcid:country features may have the /geo/type/country/president property (made up example, since that property doesn't actually exist in the KG schema). GConcept hierarchy is taken into account for deciding the set of allowed properties. Additionally, the specific properties allowed are further constrained by the list specified at go/kg-property-allowlist. NOTE: not all types of properties are allowed to appear in the Geo Schema. For now, we limit ourselves to properties whose value type is TYPE_BOOL, TYPE_COMPOUND, TYPE_DATETIME, TYPE_FLOAT, TYPE_ID, TYPE_INT, TYPE_NESTED_STRUCT, TYPE_TEXT, or TYPE_URI. NOTE(b/35039936): We are in the process of changing how a KG property with multiple values is stored in this field. Currently, such a KG property is stored in a single instance of the kg_property field. However, we will be changing this so that each value will be stored in its own instance of kg_property. Any client that wants to read from this field should be prepared to read data represented in either format. See b/35039936 or the announcement at http://g/geo-schema-announce/7IXR3Fex8to/7yFyT5UoAwAJ for an example and more details. The mechanism to assert that a KG property has no value is via the property_value_status field below. freebase.PropertyValue.value_status is not allowed be set here for consistency reason. + * `regulatedArea` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreRegulatedAreaProto.t`, *default:* `nil`) - + * `elevationModel` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreElevationModelProto.t`, *default:* `nil`) - Captures elevation data used on TYPE_DIGITAL_ELEVATION_MODEL features. + * `temporaryData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - A place for clients to attach arbitrary data to a feature. Never set in MapFacts. + * `socialReference` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreSocialReferenceProto.t`, *default:* `nil`) - All establishments must have a social reference. WARNING: Aside from creating new establishments, please do NOT introduce new uses; treat social references as if they were deprecated. For alternatives and more, see g3doc/company/teams/gdeng/geo-schema-reference/home/feature-types/establishments/social-reference.md. + * `center` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t`, *default:* `nil`) - The conceptual center of the feature, used for routing. For cities, this would be the center of the downtown, or maybe the location of city hall. For states and countries it might be the capital city. Most feature types will not have a conceptual center - by default, routing will use the centroid of the feature's geometry. If you need a feature center point consider using GetFeatureGeometryCenter() function from geostore/base/public/feature.h rather than reading from this field directly. + * `roadMonitor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadMonitorProto.t`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureMetadataProto.t`, *default:* `nil`) - Metadata about this particular feature. Metadata is managed internally by the Geo Data Infrastructure and in general should not be set by clients. Features that don't ultimately come from the Geo repository (MapFacts) won't have any metadata set. + * `restrictionGroup` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionGroupProto.t`, *default:* `nil`) - + * `entrance` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreEntranceProto.t`, *default:* `nil`) - + * `threeDimModel` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreThreeDimensionalModelProto.t`, *default:* `nil`) - Captures full model representing the feature's 3D geometry. Should only be found on TYPE_COMPOUND_BUILDING features for now, but not part of the BuildingProto extension for possible future extensions. + * `geopoliticalGeometry` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreGeopoliticalGeometryProto.t`, *default:* `nil`) - Geopolitical (unsimplified) polygons for a feature for different geopolitical use cases. + * `website` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto.t)`, *default:* `nil`) - The official website of this feature. Stored as a repeated field to allow for multilingual official websites (see comments in url.proto). + * `storefrontGeometry` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAnchoredGeometryProto.t)`, *default:* `nil`) - Represents information about the store front geometry. Only TYPE_ESTABLISHMENT_POI should have this field set. + * `rawGconceptInstanceContainer` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreOntologyRawGConceptInstanceContainerProto.t`, *default:* `nil`) - Geo Ontology GConcept Instances - Design doc linked off http://go/geo-ontology - In order to shield clients from changes in GConcept representation we provide an accessor library: geostore/base/public/gconcept_instance.h + * `geometryPrecisionMeters` (*type:* `float()`, *default:* `nil`) - If set, the feature's actual location can be assumed to be somewhere within a circle of this radius, centered on the feature's location. More information on this field at go/gpm-definition-update. NOTE: Only applicable to features with 'point' geometry. Please contact geo-schema-team@ if you have non-point use cases for which this field would be useful. + * `relatedFeature` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRelationProto.t)`, *default:* `nil`) - Geographic or logical relationships to other features. Importers don't need to fill a geographic relationship in - it is handled by related feature processing by a standalone pipeline. Adding "contained by" country relations is however encouraged (and required for TYPE_ROUTE features). WARNING: Updates to this field handled by standalone pipelines are NOT atomic with regard to updates to the features being referenced; we do not guarantee that a given MapFacts snapshot will be consistent between this field and the related features. + * `transitStation` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitStationProto.t`, *default:* `nil`) - + * `operations` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreOperationsProto.t`, *default:* `nil`) - Information about this feature's operations, e.g. when this feature is temporarily closed. NOTE: for legacy reasons, some closure-specifc information (e.g. permanent closure reason) lives in ExistenceProto instead. In the future, such information should move here in OperationsProto. + * `waterRemovedPolygon` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto.t`, *default:* `nil`) - A version of the geometry which has water removed but is not simplified (thus having equal or more vertices than polygon_for_display). + * `futureGeometryFor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - Specifies the feature that this feature's geometry will replace. If this field is populated, the referenced feature must have a future_geometry reference back to this feature. This field is only allowed (and required) for TYPE_FUTURE_GEOMETRY features. + * `skiLift` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiLiftProto.t`, *default:* `nil`) - + * `locale` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreLocaleProto.t`, *default:* `nil`) - + * `segment` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentProto.t`, *default:* `nil`) - + * `dataSource` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreDataSourceProto.t`, *default:* `nil`) - + * `transitLineVariant` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitLineVariantProto.t`, *default:* `nil`) - RESERVED + * `polygon` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto.t)`, *default:* `nil`) - + * `storefrontGeometryModel` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryStoreReferenceProto.t`, *default:* `nil`) - Geometry Store ID and materialized geometry for a POI feature's storefront(s). + * `name` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto.t)`, *default:* `nil`) - The name(s) of this feature. A feature may have different names in different languages, colloquial or "vanity" names, etc. + * `internal` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalFeatureProto.t`, *default:* `nil`) - Additional internal feature-level attributes that may be set by data providers to be used inside the Geo Data infrastructure. This field should never be present in the output of the Geo Data infrastructure that read-only clients consume. + * `status` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreExistenceProto.t`, *default:* `nil`) - All features can have "existence" information associated with them. + * `knowledgeGraphReference` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreKnowledgeGraphReferenceProto.t`, *default:* `nil`) - RESERVED + * `doodle` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreDoodleProto.t`, *default:* `nil`) - ** DEPRECATED ** + * `geopolitical` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreGeopoliticalProto.t`, *default:* `nil`) - + * `originalId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - This field is used internally by the pipeline for id stability. It should not be set by individual importers, nor should it be read by consumer clients. In particular, this field will not be present in features read or snapshotted from the Mapfacts Repository. + * `bestLocale` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreBestLocaleProto.t`, *default:* `nil`) - Describes the best-match locale for this feature. + * `preferredViewport` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreRectProto.t`, *default:* `nil`) - The preferred viewport for this feature. If present, this latitude-longitude rectangle holds the preferred viewport for the feature. For example, it might hold the bounds of the "central" portion of a large city. There are no aspect ratio requirements. This is an optional field: if no viewport is supplied, interested clients can use heuristics to determine a viewport. Calling the standard GetFeatureGeometryBound() function would be a good way to start but note that it can return an empty bounding box (e.g., if the feature has no geometry). The preferred viewport is not necessarily fully contained by the above bounding box. + * `relatedTerminalPoint` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - Terminal points associated with this feature. For instance, an airport terminal may have specifically designated pickup and drop-off points. + * `attachment` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAttachmentsAttachmentProto.t)`, *default:* `nil`) - The collection of attachments for this feature. Documentation: http://go/geo-attachments + * `interiorCovering` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreCellCoveringProto.t`, *default:* `nil`) - S2 interior covering that consists of cells completely enclosed within the feature's geometry (for features with polygonal geometry). + * `accessPoint` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAccessPointProto.t)`, *default:* `nil`) - Optional access point information. Access points hold detailed information about routing endpoints. For example, the main Google office is at "1600 Amphitheatre Parkway". The feature representing that office has a polygon, a center, and an address with components for the street number, route, locality, etc. The access point information, on the other hand, identifies the specific segment, the latitude/longitude of the driveway, and so forth. + * `rankDetails` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreRankDetailsProto.t`, *default:* `nil`) - The rank field is computed as a weighted sum of several signals. This field contains a protocol buffer whose fields give those signals and their weights. Clients should try very hard not to depend on these individual signals and use the single rank field instead. At some point in the future, this field will not be exposed anymore. + * `political` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePoliticalProto.t`, *default:* `nil`) - + * `establishment` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreEstablishmentProto.t`, *default:* `nil`) - Also allowed on TYPE_BUSINESS_CHAIN and TYPE_TRANSIT_AGENCY features, to model the feature's phone number(s). Other fields within EstablishmentProto are not permitted on non-TYPE_ESTABLISHMENT features. + * `laneMarker` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneMarkerProto.t`, *default:* `nil`) - + * `polyline` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePolyLineProto.t)`, *default:* `nil`) - + * `route` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreRouteProto.t`, *default:* `nil`) - Additional details on the feature types below can be found in the individual protocol buffer definitions. These extensions capture data that is specific to a set of feature types and which makes no sense for other feature types. + * `rank` (*type:* `number()`, *default:* `nil`) - WARNING: Please do NOT introduce new uses of this field; treat it as if it were deprecated. For appropriate ranking contacts, see g3doc/company/teams/gdeng/geo-schema-reference/home/feature-properties/rank.md. A floating-point number between 0.0 and 1.0 indicating how "important" we think this feature is. This can be used to decide which features to render on maps, and how to rank results when the user does a search. The rank can depend on any number of factors such as the number of references to this feature in web pages, geographic size, population, number of referring geographic entities, "priority" information encoded in the source data, etc. + * `htmlText` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreHtmlTextProto.t)`, *default:* `nil`) - ** DEPRECATED ** Features can have zero or more HTML texts associated with them. These might be HTML balloons used by Google Earth, for example. + * `address` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressProto.t)`, *default:* `nil`) - Address for this feature. A Geo Schema address is designed to model a mailing address, so only features that have mailing addresses in the real world may have addresses. Each feature should have only one address. If you want to describe the geographic location of a feature which does not have a mailing address with respect to other well-known features, some other schema constructs should be used. Note that the field is defined as repeated though features that use this field with its intended semantics are constrained to have a single address even if they may have multiple mailing addresses in the real world. The “single address” rule is enforced by lint. Current exceptions to the single address rule and mailing address rule are described in the g3doc. Bear note that the schema team is actively working on eliminating these exceptions. http://go/geo-addresses Note the following conventions: - Addresses follow the postal hierarchy, not the political hierarchy. Addresses may have components that refer to political entities when those entities also appear in the postal hierarchy. - As stated previously, but it bears repeating, addresses on features are mailing addresses. In many cases the physical address and the mailing address are the same but the address stored on a feature represents the mailing address of the feature. An example of a non-physical mailing address would be a PO Box. - These addresses are commonly defined and verifiable by a governmental authority (e.g. the United States Postal Service in the United States, Royal Mail in the United Kingdom, Correios in Brazil, etc.) and should follow conventions and rules defined by those authorities. + * `type` (*type:* `String.t`, *default:* `nil`) - The type of this feature -- see comments above. + * `syntheticGeometry` (*type:* `boolean()`, *default:* `nil`) - We prefer features that have geometry over those that do not. In some cases we synthesize geometry (e.g., polygons for postal codes). This flag is set to indicate features that have such synthetic geometry. + * `sign` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadSignProto.t`, *default:* `nil`) - + * `businessChain` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessChainProto.t`, *default:* `nil`) - Data specific to business chain features, e.g., Canonical GConcepts. + * `covering` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreCellCoveringProto.t`, *default:* `nil`) - S2 cell coverings for this feature. See util/geometry/s2cell_union.h for more information about S2 cells. Coverings are useful for quick containment or intersection tests. S2 covering that consists of cells that intersect with the feature. + * `propertyValueStatus` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePropertyValueStatusProto.t)`, *default:* `nil`) - The value status of properties on this feature. For example, this specifies whether the feature is known to have no name (this is the value status of the 'FEATURE_NAME' property). Only property IDs which have no specific value are allowed to have a value status. Note: not all field types will be supported, please contact geo schema team if you want to enable this field for a field type that is not currently supported. + * `relatedBorder` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - For TYPE_COUNTRY or TYPE_ADMINISTRATIVE_AREA1 features, this field defines the associated TYPE_BORDERs which reference this feature. The linked TYPE_BORDERs must have the feature.border set, pointing to this feature. TYPE_COUNTRY or TYPE_ADMINISTRATIVE_AREA1 features must have this field set for each TYPE_BORDER referencing them. + * `exemptRegulatedArea` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - A list of feature ids of polygon based restrictions that do not apply to this feature. This may only include features of TYPE_REGULATED_AREA that also have a feature.regulated_area.restriction field defined. Setting this field opts the feature out of all restrictions set on that regulated area. + * `logicalBorder` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreLogicalBorderProto.t`, *default:* `nil`) - + * `id` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - The globally unique id for this feature. + * `elevation` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreElevationProto.t`, *default:* `nil`) - + * `disputedArea` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreDisputedAreaProto.t`, *default:* `nil`) - Represents information about disputed areas. Only TYPE_DISPUTED_AREA features should have the field set. + * `attribute` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeProto.t)`, *default:* `nil`) - ** DEPRECATED ** A list of attributes that describe defined aspects of this feature. An attribute must be a concrete, high quality, and editable piece of information about a feature, and must be used on some general consumer facing Google property. The data types used for attributes must be primitive types or reusable in a generic manner. + * `futureGeometry` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - Specifies the TYPE_FUTURE_GEOMETRY whose geometry will replace this feature's geometry. If this field is populated, the referenced future geometry must have a future_geometry_for referencing this feature. + * `level` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreLevelProto.t`, *default:* `nil`) - Represents information about TYPE_LEVEL features. + * `geometry3d` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryStoreReferenceProto.t`, *default:* `nil`) - Geometry Store ID and materialized geometry representing the feature's physical shape in the world. + * `point` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t)`, *default:* `nil`) - Defines the geometry of the feature. The geometry may be specified as an arbitrary union of points, poses, polylines, tracks, and polygons. Points, poses, polylines, and tracks are assumed to represent regions of unspecified size or width rather than regions of zero area. Most features should have some sort of geometry. Geometry may be synthesized if none is available (e.g., polygons for postal codes). The synthetic_geometry flag should be set in that case. Point is currently enforced as a non-repeating field for all feature types, though it is defined as repeating in case future modeling requires multiple points. The number of allowed polylines, tracks, or polygons vary based on feature type. A feature can have at most one pose (it is an optional field). + * `building` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreBuildingProto.t`, *default:* `nil`) - + * `parent` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - + * `relatedTimezone` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTimezoneProto.t)`, *default:* `nil`) - Contains time zones known to be associated with a feature. Most features are associated with the single time zone that contains them. However, some larger features (countries, continents, etc.) are associated with all of the time zones they contain. Most features can have any number of related time zones, but TYPE_SEGMENT and TYPE_ESTABLISHMENT_POI features can have at most 1. + * `verticalOrdering` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreVerticalOrderingProto.t`, *default:* `nil`) - Represents vertical ordering for this feature relative to other geometrically-overlaping features. See go/aboutgrades for more information about distinction among different levels. + * `segmentPath` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentPathProto.t`, *default:* `nil`) - + * `anchoredGeometry` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreAnchoredGeometryProto.t`, *default:* `nil`) - Represents information about the feature’s anchored geometry. + * `sourceInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreSourceInfoProto.t)`, *default:* `nil`) - A list of the data sources that were used to construct this feature, together with optional "raw data" in the provider's format. Raw data should not be used by production clients but may be useful for exploring data that is not currently converted to a canonical form. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :intersection => + GoogleApi.ContentWarehouse.V1.Model.GeostoreIntersectionProto.t() | nil, + :relatedEntrance => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreEntranceReferenceProto.t()) | nil, + :inferredGeometry => + GoogleApi.ContentWarehouse.V1.Model.GeostoreInferredGeometryProto.t() | nil, + :visualizationArea => + GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryStoreReferenceProto.t() | nil, + :bound => GoogleApi.ContentWarehouse.V1.Model.GeostoreRectProto.t() | nil, + :tollCluster => GoogleApi.ContentWarehouse.V1.Model.GeostoreTollClusterProto.t() | nil, + :skiTrail => GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiTrailProto.t() | nil, + :border => GoogleApi.ContentWarehouse.V1.Model.GeostoreBorderProto.t() | nil, + :parking => GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingProto.t() | nil, + :intersectionGroup => + GoogleApi.ContentWarehouse.V1.Model.GeostoreIntersectionGroupProto.t() | nil, + :transitLine => GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitLineProto.t() | nil, + :polygonForDisplay => + GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto.t() | nil, + :associatedEvChargingStation => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :pose => GoogleApi.ContentWarehouse.V1.Model.GeostorePoseProto.t() | nil, + :skiBoundary => GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiBoundaryProto.t() | nil, + :displayData => GoogleApi.ContentWarehouse.V1.Model.GeostoreDisplayDataProto.t() | nil, + :child => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :schoolDistrict => + GoogleApi.ContentWarehouse.V1.Model.GeostoreSchoolDistrictProto.t() | nil, + :track => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTrackProto.t()) | nil, + :kgProperty => + list(GoogleApi.ContentWarehouse.V1.Model.FreebasePropertyValue.t()) | nil, + :regulatedArea => + GoogleApi.ContentWarehouse.V1.Model.GeostoreRegulatedAreaProto.t() | nil, + :elevationModel => + GoogleApi.ContentWarehouse.V1.Model.GeostoreElevationModelProto.t() | nil, + :temporaryData => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :socialReference => + GoogleApi.ContentWarehouse.V1.Model.GeostoreSocialReferenceProto.t() | nil, + :center => GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t() | nil, + :roadMonitor => GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadMonitorProto.t() | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureMetadataProto.t() | nil, + :restrictionGroup => + GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionGroupProto.t() | nil, + :entrance => GoogleApi.ContentWarehouse.V1.Model.GeostoreEntranceProto.t() | nil, + :threeDimModel => + GoogleApi.ContentWarehouse.V1.Model.GeostoreThreeDimensionalModelProto.t() | nil, + :geopoliticalGeometry => + GoogleApi.ContentWarehouse.V1.Model.GeostoreGeopoliticalGeometryProto.t() | nil, + :website => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto.t()) | nil, + :storefrontGeometry => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAnchoredGeometryProto.t()) | nil, + :rawGconceptInstanceContainer => + GoogleApi.ContentWarehouse.V1.Model.GeostoreOntologyRawGConceptInstanceContainerProto.t() + | nil, + :geometryPrecisionMeters => float() | nil, + :relatedFeature => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRelationProto.t()) | nil, + :transitStation => + GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitStationProto.t() | nil, + :operations => GoogleApi.ContentWarehouse.V1.Model.GeostoreOperationsProto.t() | nil, + :waterRemovedPolygon => + GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto.t() | nil, + :futureGeometryFor => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :skiLift => GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiLiftProto.t() | nil, + :locale => GoogleApi.ContentWarehouse.V1.Model.GeostoreLocaleProto.t() | nil, + :segment => GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentProto.t() | nil, + :dataSource => GoogleApi.ContentWarehouse.V1.Model.GeostoreDataSourceProto.t() | nil, + :transitLineVariant => + GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitLineVariantProto.t() | nil, + :polygon => list(GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto.t()) | nil, + :storefrontGeometryModel => + GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryStoreReferenceProto.t() | nil, + :name => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto.t()) | nil, + :internal => GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalFeatureProto.t() | nil, + :status => GoogleApi.ContentWarehouse.V1.Model.GeostoreExistenceProto.t() | nil, + :knowledgeGraphReference => + GoogleApi.ContentWarehouse.V1.Model.GeostoreKnowledgeGraphReferenceProto.t() | nil, + :doodle => GoogleApi.ContentWarehouse.V1.Model.GeostoreDoodleProto.t() | nil, + :geopolitical => + GoogleApi.ContentWarehouse.V1.Model.GeostoreGeopoliticalProto.t() | nil, + :originalId => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :bestLocale => GoogleApi.ContentWarehouse.V1.Model.GeostoreBestLocaleProto.t() | nil, + :preferredViewport => GoogleApi.ContentWarehouse.V1.Model.GeostoreRectProto.t() | nil, + :relatedTerminalPoint => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :attachment => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAttachmentsAttachmentProto.t()) | nil, + :interiorCovering => + GoogleApi.ContentWarehouse.V1.Model.GeostoreCellCoveringProto.t() | nil, + :accessPoint => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAccessPointProto.t()) | nil, + :rankDetails => GoogleApi.ContentWarehouse.V1.Model.GeostoreRankDetailsProto.t() | nil, + :political => GoogleApi.ContentWarehouse.V1.Model.GeostorePoliticalProto.t() | nil, + :establishment => + GoogleApi.ContentWarehouse.V1.Model.GeostoreEstablishmentProto.t() | nil, + :laneMarker => GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneMarkerProto.t() | nil, + :polyline => list(GoogleApi.ContentWarehouse.V1.Model.GeostorePolyLineProto.t()) | nil, + :route => GoogleApi.ContentWarehouse.V1.Model.GeostoreRouteProto.t() | nil, + :rank => number() | nil, + :htmlText => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreHtmlTextProto.t()) | nil, + :address => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressProto.t()) | nil, + :type => String.t() | nil, + :syntheticGeometry => boolean() | nil, + :sign => GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadSignProto.t() | nil, + :businessChain => + GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessChainProto.t() | nil, + :covering => GoogleApi.ContentWarehouse.V1.Model.GeostoreCellCoveringProto.t() | nil, + :propertyValueStatus => + list(GoogleApi.ContentWarehouse.V1.Model.GeostorePropertyValueStatusProto.t()) | nil, + :relatedBorder => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :exemptRegulatedArea => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :logicalBorder => + GoogleApi.ContentWarehouse.V1.Model.GeostoreLogicalBorderProto.t() | nil, + :id => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :elevation => GoogleApi.ContentWarehouse.V1.Model.GeostoreElevationProto.t() | nil, + :disputedArea => + GoogleApi.ContentWarehouse.V1.Model.GeostoreDisputedAreaProto.t() | nil, + :attribute => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeProto.t()) | nil, + :futureGeometry => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :level => GoogleApi.ContentWarehouse.V1.Model.GeostoreLevelProto.t() | nil, + :geometry3d => + GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryStoreReferenceProto.t() | nil, + :point => list(GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t()) | nil, + :building => GoogleApi.ContentWarehouse.V1.Model.GeostoreBuildingProto.t() | nil, + :parent => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :relatedTimezone => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTimezoneProto.t()) | nil, + :verticalOrdering => + GoogleApi.ContentWarehouse.V1.Model.GeostoreVerticalOrderingProto.t() | nil, + :segmentPath => GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentPathProto.t() | nil, + :anchoredGeometry => + GoogleApi.ContentWarehouse.V1.Model.GeostoreAnchoredGeometryProto.t() | nil, + :sourceInfo => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreSourceInfoProto.t()) | nil + } + + field(:intersection, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreIntersectionProto) + + field(:relatedEntrance, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreEntranceReferenceProto, + type: :list + ) + + field(:inferredGeometry, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreInferredGeometryProto) + + field(:visualizationArea, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryStoreReferenceProto + ) + + field(:bound, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRectProto) + field(:tollCluster, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTollClusterProto) + field(:skiTrail, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiTrailProto) + field(:border, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreBorderProto) + field(:parking, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingProto) + + field(:intersectionGroup, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreIntersectionGroupProto) + + field(:transitLine, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitLineProto) + field(:polygonForDisplay, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto) + + field(:associatedEvChargingStation, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, + type: :list + ) + + field(:pose, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePoseProto) + field(:skiBoundary, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiBoundaryProto) + field(:displayData, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDisplayDataProto) + field(:child, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + field(:schoolDistrict, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreSchoolDistrictProto) + field(:track, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTrackProto, type: :list) + field(:kgProperty, as: GoogleApi.ContentWarehouse.V1.Model.FreebasePropertyValue, type: :list) + field(:regulatedArea, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRegulatedAreaProto) + field(:elevationModel, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreElevationModelProto) + field(:temporaryData, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + field(:socialReference, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreSocialReferenceProto) + field(:center, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto) + field(:roadMonitor, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadMonitorProto) + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureMetadataProto) + field(:restrictionGroup, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionGroupProto) + field(:entrance, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreEntranceProto) + + field(:threeDimModel, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreThreeDimensionalModelProto) + + field(:geopoliticalGeometry, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreGeopoliticalGeometryProto + ) + + field(:website, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto, type: :list) + + field(:storefrontGeometry, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAnchoredGeometryProto, + type: :list + ) + + field(:rawGconceptInstanceContainer, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreOntologyRawGConceptInstanceContainerProto + ) + + field(:geometryPrecisionMeters) + + field(:relatedFeature, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRelationProto, + type: :list + ) + + field(:transitStation, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitStationProto) + field(:operations, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreOperationsProto) + field(:waterRemovedPolygon, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto) + field(:futureGeometryFor, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:skiLift, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiLiftProto) + field(:locale, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreLocaleProto) + field(:segment, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentProto) + field(:dataSource, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDataSourceProto) + + field(:transitLineVariant, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitLineVariantProto + ) + + field(:polygon, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto, type: :list) + + field(:storefrontGeometryModel, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryStoreReferenceProto + ) + + field(:name, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto, type: :list) + field(:internal, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalFeatureProto) + field(:status, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreExistenceProto) + + field(:knowledgeGraphReference, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreKnowledgeGraphReferenceProto + ) + + field(:doodle, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDoodleProto) + field(:geopolitical, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreGeopoliticalProto) + field(:originalId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:bestLocale, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreBestLocaleProto) + field(:preferredViewport, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRectProto) + + field(:relatedTerminalPoint, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, + type: :list + ) + + field(:attachment, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAttachmentsAttachmentProto, + type: :list + ) + + field(:interiorCovering, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCellCoveringProto) + + field(:accessPoint, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAccessPointProto, + type: :list + ) + + field(:rankDetails, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRankDetailsProto) + field(:political, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePoliticalProto) + field(:establishment, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreEstablishmentProto) + field(:laneMarker, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneMarkerProto) + field(:polyline, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePolyLineProto, type: :list) + field(:route, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRouteProto) + field(:rank) + field(:htmlText, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreHtmlTextProto, type: :list) + field(:address, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAddressProto, type: :list) + field(:type) + field(:syntheticGeometry) + field(:sign, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadSignProto) + field(:businessChain, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessChainProto) + field(:covering, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCellCoveringProto) + + field(:propertyValueStatus, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePropertyValueStatusProto, + type: :list + ) + + field(:relatedBorder, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, + type: :list + ) + + field(:exemptRegulatedArea, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, + type: :list + ) + + field(:logicalBorder, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreLogicalBorderProto) + field(:id, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:elevation, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreElevationProto) + field(:disputedArea, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDisputedAreaProto) + field(:attribute, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAttributeProto, type: :list) + field(:futureGeometry, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:level, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreLevelProto) + field(:geometry3d, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryStoreReferenceProto) + field(:point, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto, type: :list) + field(:building, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreBuildingProto) + field(:parent, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + + field(:relatedTimezone, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimezoneProto, + type: :list + ) + + field(:verticalOrdering, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreVerticalOrderingProto) + field(:segmentPath, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentPathProto) + field(:anchoredGeometry, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAnchoredGeometryProto) + field(:sourceInfo, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreSourceInfoProto, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_replacement_info_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_replacement_info_proto.ex new file mode 100644 index 0000000000..f035de312f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_feature_replacement_info_proto.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureReplacementInfoProto do + @moduledoc """ + Metadata to track feature derivations and replacements. This is used to track feature provenance (particularly for road segments). + + ## Attributes + + * `derivedFrom` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - This feature was created to replace other features that are referenced by this field. + * `replacedBy` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - This feature was replaced by other features that are referenced by this this field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :derivedFrom => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :replacedBy => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil + } + + field(:derivedFrom, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + field(:replacedBy, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureReplacementInfoProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureReplacementInfoProto.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureReplacementInfoProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_field_metadata_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_field_metadata_proto.ex new file mode 100644 index 0000000000..c0d551239d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_field_metadata_proto.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto do + @moduledoc """ + Internal field metadata. This part is not exposed to downstream consumers of the repository (read-only clients) but is available to upstream providers to the repository (read-write clients). + + ## Attributes + + * `internal` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalFieldMetadataProto.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :internal => + GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalFieldMetadataProto.t() | nil + } + + field(:internal, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalFieldMetadataProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_field_with_rights_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_field_with_rights_proto.ex new file mode 100644 index 0000000000..e8a69ef7ef --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_field_with_rights_proto.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldWithRightsProto do + @moduledoc """ + Proto used to represent rights for a feature property id. See go/geo-rights for more details. NOTE: Use google3/geostore/provenance/public/rights.h or google3/java/com/google/geostore/provenance/rights/Rights.java instead of accessing this proto directly. + + ## Attributes + + * `attributeId` (*type:* `String.t`, *default:* `nil`) - **DEPRECATED** Never set. + * `featurePropertyId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeaturePropertyIdProto.t`, *default:* `nil`) - The feature property id for which this entry tracks rights. + * `fieldType` (*type:* `integer()`, *default:* `nil`) - **DEPRECATED** The field type for which this entry tracks rights. There may be multiple entries for the same field type - prefer feature_property_id to uniquely identify a particular entry. + * `minRightsLevel` (*type:* `String.t`, *default:* `nil`) - The minimum rights level among all current values for this feature property id. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributeId => String.t() | nil, + :featurePropertyId => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeaturePropertyIdProto.t() | nil, + :fieldType => integer() | nil, + :minRightsLevel => String.t() | nil + } + + field(:attributeId) + + field(:featurePropertyId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeaturePropertyIdProto) + + field(:fieldType) + field(:minRightsLevel) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldWithRightsProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldWithRightsProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldWithRightsProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_flow_line_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_flow_line_proto.ex new file mode 100644 index 0000000000..793bd94b2e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_flow_line_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFlowLineProto do + @moduledoc """ + Wrapper to hold data related to a lane’s track, extendable for future data. + + ## Attributes + + * `curvature` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreCurvatureProto.t`, *default:* `nil`) - RESERVED + * `track` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreTrackProto.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :curvature => GoogleApi.ContentWarehouse.V1.Model.GeostoreCurvatureProto.t() | nil, + :track => GoogleApi.ContentWarehouse.V1.Model.GeostoreTrackProto.t() | nil + } + + field(:curvature, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCurvatureProto) + field(:track, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTrackProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFlowLineProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFlowLineProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFlowLineProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_food_menu_item_option_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_food_menu_item_option_proto.ex new file mode 100644 index 0000000000..a7ae1a5b3c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_food_menu_item_option_proto.ex @@ -0,0 +1,106 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProto do + @moduledoc """ + Example: the choice of chicken, beef, or tofu for the Thai Basil dish. Each option would have its own name, price, allergen info, etc. Note: This proto stores both food and service items despite the name. + + ## Attributes + + * `allergenAbsent` (*type:* `list(String.t)`, *default:* `nil`) - + * `allergenPresent` (*type:* `list(String.t)`, *default:* `nil`) - + * `calories` (*type:* `integer()`, *default:* `nil`) - + * `ingredients` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoIngredient.t)`, *default:* `nil`) - Ingredients of the food dish option. + * `media` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto.t)`, *default:* `nil`) - Photos of the food dish option. + * `nameInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t)`, *default:* `nil`) - The repeated name_info field here is for item options with names or descriptions listed in multiple languages. When an item option has no names or descriptions, the size of the repeated field name_info may be 0. For example, when a food menu item does not have multiple options, the item option proto is used only to specify price and nutritional information, so it will not have a name_info field. There should be at most one name_info for any given language. + * `nutritionFacts` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFacts.t`, *default:* `nil`) - Nutrition facts of the food dish option. Note that it also includes calories information with a finer defined unit information. + * `portionSize` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoPortionSize.t`, *default:* `nil`) - Size of the order, represented in units of items. (e.g. 4 "skewers”, 6 "pieces”) + * `preparationMethods` (*type:* `list(String.t)`, *default:* `nil`) - Methods on how the food dish option is prepared. + * `price` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto.t`, *default:* `nil`) - We use PriceRangeProto here but we expect the lower_price and upper_price to be both set to equal numbers because an option should have a single price. This field is not required because food item prices may be variable depending on season. + * `restriction` (*type:* `list(String.t)`, *default:* `nil`) - + * `servesNumPeople` (*type:* `integer()`, *default:* `nil`) - Number of people can be served by this food dish option. + * `spiciness` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allergenAbsent => list(String.t()) | nil, + :allergenPresent => list(String.t()) | nil, + :calories => integer() | nil, + :ingredients => + list( + GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoIngredient.t() + ) + | nil, + :media => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto.t()) | nil, + :nameInfo => + list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t()) | nil, + :nutritionFacts => + GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFacts.t() | nil, + :portionSize => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoPortionSize.t() + | nil, + :preparationMethods => list(String.t()) | nil, + :price => GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto.t() | nil, + :restriction => list(String.t()) | nil, + :servesNumPeople => integer() | nil, + :spiciness => String.t() | nil + } + + field(:allergenAbsent, type: :list) + field(:allergenPresent, type: :list) + field(:calories) + + field(:ingredients, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoIngredient, + type: :list + ) + + field(:media, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto, type: :list) + + field(:nameInfo, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto, + type: :list + ) + + field(:nutritionFacts, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFacts + ) + + field(:portionSize, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoPortionSize + ) + + field(:preparationMethods, type: :list) + field(:price, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto) + field(:restriction, type: :list) + field(:servesNumPeople) + field(:spiciness) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_food_menu_item_option_proto_ingredient.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_food_menu_item_option_proto_ingredient.ex new file mode 100644 index 0000000000..4f92421447 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_food_menu_item_option_proto_ingredient.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoIngredient do + @moduledoc """ + This message denotes an ingredient information of a food dish. + + ## Attributes + + * `nameInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t)`, *default:* `nil`) - The repeated name_info field is for the ingredient in multiple languages. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nameInfo => + list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t()) | nil + } + + field(:nameInfo, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoIngredient do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoIngredient.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoIngredient do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_food_menu_item_option_proto_portion_size.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_food_menu_item_option_proto_portion_size.ex new file mode 100644 index 0000000000..32fc98c2fb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_food_menu_item_option_proto_portion_size.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoPortionSize do + @moduledoc """ + This message denotes the serving portion size of a food dish. + + ## Attributes + + * `quantity` (*type:* `integer()`, *default:* `nil`) - Required. + * `unit` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t)`, *default:* `nil`) - Required. The repeated name_info field is for the unit in multiple languages. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :quantity => integer() | nil, + :unit => + list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t()) | nil + } + + field(:quantity) + + field(:unit, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoPortionSize do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoPortionSize.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoPortionSize do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_food_menu_item_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_food_menu_item_proto.ex new file mode 100644 index 0000000000..903df5eacf --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_food_menu_item_proto.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemProto do + @moduledoc """ + A food menu item must have a name although it can have multiple names in different languages. Example: Thai Basil. Price for this item is specified in the item_option field. Since the price of an item may be unknown, e.g. seasonal price, there is nothing that requires an item_option to be present in the FoodMenuItemProto. + + ## Attributes + + * `itemOption` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProto.t)`, *default:* `nil`) - + * `nameInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t)`, *default:* `nil`) - The repeated name_info field is for items listed in multiple languages. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :itemOption => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProto.t()) | nil, + :nameInfo => + list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t()) | nil + } + + field(:itemOption, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProto, + type: :list + ) + + field(:nameInfo, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_g_concept_instance_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_g_concept_instance_proto.ex new file mode 100644 index 0000000000..27f21b2d76 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_g_concept_instance_proto.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreGConceptInstanceProto do + @moduledoc """ + A GConceptInstanceProto contains a GConceptID (which is the unique identifier of a GConcept, a category in the Geo Ontology). + + ## Attributes + + * `gconceptId` (*type:* `String.t`, *default:* `nil`) - The unique identifier of a GConcept (e.g. "gcid:railway"). + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this GConcept. + * `prominence` (*type:* `String.t`, *default:* `nil`) - The relative prominence of this category to this feature according to the data provider, as one of the values from the enum above. Prominence is a measure of how well the given GConcept describes the feature. An example is a gas station with convenience store and ATM. All three GConcepts are very relevant, but the gas_station GConcept is the most prominent. If the prominence of this GConcept is unknown, this field should not be set. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gconceptId => String.t() | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :prominence => String.t() | nil + } + + field(:gconceptId) + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:prominence) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreGConceptInstanceProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreGConceptInstanceProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreGConceptInstanceProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_geometry_composition.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_geometry_composition.ex new file mode 100644 index 0000000000..e551f61827 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_geometry_composition.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryComposition do + @moduledoc """ + Encapsulates all the features which, together, define the geometry of a feature. This happens by: 1. taking the union of all polygons of features referenced in includes_geometry_of 2. subtracting the polygons of all the features referenced in excludes_geometry_of + + ## Attributes + + * `excludesGeometryOf` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - Features whose geometry to exclude while composing the geometry of this feature. + * `includesGeometryOf` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - Features whose geometry to include while composing the geometry of this feature. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :excludesGeometryOf => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :includesGeometryOf => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil + } + + field(:excludesGeometryOf, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, + type: :list + ) + + field(:includesGeometryOf, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryComposition do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryComposition.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryComposition do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_geometry_store_reference_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_geometry_store_reference_proto.ex new file mode 100644 index 0000000000..3b6f3d936d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_geometry_store_reference_proto.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryStoreReferenceProto do + @moduledoc """ + A Geometry Store ID and, in some contexts, geometry materialized from the record associated with that ID. + + ## Attributes + + * `footprint` (*type:* `String.t`, *default:* `nil`) - Geometry (in STGeography format) materialized from the footprint field of the Geometry Store record associated with the geometry_id referenced above. + * `geometry` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProto.t`, *default:* `nil`) - Geometry materialized from the full_fidelity_proto field of the Geometry Store record associated with the geometry_id referenced above. + * `geometryId` (*type:* `String.t`, *default:* `nil`) - The ID of a record in the Geometry Store. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :footprint => String.t() | nil, + :geometry => GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProto.t() | nil, + :geometryId => String.t() | nil + } + + field(:footprint) + field(:geometry, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProto) + field(:geometryId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryStoreReferenceProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryStoreReferenceProto.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryStoreReferenceProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_geopolitical_geometry_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_geopolitical_geometry_proto.ex new file mode 100644 index 0000000000..d886c80737 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_geopolitical_geometry_proto.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreGeopoliticalGeometryProto do + @moduledoc """ + Geopolitical (unsimplified) polygons for a feature for different geopolitical use cases. See go/unsimplified-poly. + + ## Attributes + + * `restOfWorldPolygon` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto.t`, *default:* `nil`) - The unsimplified, water-subtracted polygon representing the feature's geometry as viewed by the rest of the world, which may differ from its default polygon, for example by excluding certain regions. + * `selfPolygon` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto.t`, *default:* `nil`) - The unsimplified, water-subtracted polygon representing the feature's geometry as viewed by the country that administers it, which may differ from its default polygon, for example by including disputed areas. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :restOfWorldPolygon => + GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto.t() | nil, + :selfPolygon => GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto.t() | nil + } + + field(:restOfWorldPolygon, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto) + field(:selfPolygon, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreGeopoliticalGeometryProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreGeopoliticalGeometryProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreGeopoliticalGeometryProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_geopolitical_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_geopolitical_proto.ex new file mode 100644 index 0000000000..19315765a5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_geopolitical_proto.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreGeopoliticalProto do + @moduledoc """ + + + ## Attributes + + * `conveysAttributionTo` (*type:* `String.t`, *default:* `nil`) - If present, some aspect of this feature (usually name or geometry) can signify ownership of the area by the region specified. The string, if present, will be a region code. E.g., suppose a TYPE_POSTAL_CODE feature has a Russian format in Crimea (which is disputed by Ukraine), then this field would be set to "RU". + * `regionSpecificName` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRegionSpecificNameProto.t)`, *default:* `nil`) - Any specific handling of this feature's name from different regions' POVs. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conveysAttributionTo => String.t() | nil, + :regionSpecificName => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRegionSpecificNameProto.t()) | nil + } + + field(:conveysAttributionTo) + + field(:regionSpecificName, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRegionSpecificNameProto, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreGeopoliticalProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreGeopoliticalProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreGeopoliticalProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_grade_level_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_grade_level_proto.ex new file mode 100644 index 0000000000..5b902aeb55 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_grade_level_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreGradeLevelProto do + @moduledoc """ + The grade level of a segment represents the relative altitude of the segment at a particular point along the segment. This level is in relation to other segments at the same point. For example, you might have a freeway at level = 0 and an overpass at level = 2. Vertical segments are represented by a polyline containing only 1 vertex and exactly two grade_level in segment.proto whose indices are 0. grade_level(0) represents the relative height at the start point of the segments, and grade_level(1) represents the one at the end point. + + ## Attributes + + * `index` (*type:* `integer()`, *default:* `nil`) - The index of the point along the segment, where 0 is the starting point. This means that the index of a point along a segment and its sibling will be different. + * `level` (*type:* `integer()`, *default:* `nil`) - The grade level of the indexed point. The grade level can be thought of as a relative vertical ordering with respect to other segments at the same point, where larger/more positive numbers are "higher". Negative grade level values are allowed and are typically used for points below grade level (0 is a common choice to represent the level of points at the ground level). For vertical segments, the height, i.e. the vertical length, is represented by difference of levels in millimeters. For example, feature.segment().grade_level(0).level() == 0 and feature.segment().grade_level(1).level() == 5000, then the length of the vertical segment feature is 5000 millimeters (5 meters). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :index => integer() | nil, + :level => integer() | nil + } + + field(:index) + field(:level) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreGradeLevelProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreGradeLevelProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreGradeLevelProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_html_text_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_html_text_proto.ex new file mode 100644 index 0000000000..5da45001b7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_html_text_proto.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreHtmlTextProto do + @moduledoc """ + Represents HTML text associated with a feature. + + ## Attributes + + * `text` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreLanguageTaggedTextProto.t)`, *default:* `nil`) - Zero or more texts of the specified type, in various languages. If this is a HTML_DESCRIPTION blob then these texts would hold the description in English, German, and so forth. The text is an HTML fragment, not a full page. The fragment should be suitable for including in a DIV. It must have balanced HTML tags. It may use HTML's "class" attributes to assign classes to HTML elements. This allows the HTML to be formatted by an (external) style sheet. The HTML should not have embedded style sheet definitions, nor should it have embedded JavaScript. + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :text => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreLanguageTaggedTextProto.t()) | nil, + :type => String.t() | nil + } + + field(:text, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreLanguageTaggedTextProto, + type: :list + ) + + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreHtmlTextProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreHtmlTextProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreHtmlTextProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_inferred_geometry_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_inferred_geometry_proto.ex new file mode 100644 index 0000000000..e40f3412f0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_inferred_geometry_proto.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreInferredGeometryProto do + @moduledoc """ + Inferred geometry defines the geometry of a feature as the union or exclusion of the geometry of other features. For instance, the geometry of a timezone can be specified as the union of all the countries it applies to. In this scenario, the timezone will can be considered a "composite feature", while the countries are its "composing features". A composite feature must have a bidirectional reference between itself and all its composing features. A composite feature refers to its composing features via `geometry_composition`, while the composing features must refer back to the composing feature via `defines_geometry_for`. See: go/inferred-geometry and go/geo-schema:composite-geometry-editor for more details. + + ## Attributes + + * `definesGeometryFor` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - Features whose geometry depends on this feature's geometry. + * `geometryComposition` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryComposition.t`, *default:* `nil`) - Features whose geometry defines the geometry of this feature (i.e. "composing features"). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :definesGeometryFor => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :geometryComposition => + GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryComposition.t() | nil + } + + field(:definesGeometryFor, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, + type: :list + ) + + field(:geometryComposition, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreGeometryComposition) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreInferredGeometryProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreInferredGeometryProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreInferredGeometryProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_feature_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_feature_proto.ex new file mode 100644 index 0000000000..0bcc193079 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_feature_proto.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalFeatureProto do + @moduledoc """ + Main proto for all internal fields to be stored at the feature level. + + ## Attributes + + * `polygonShapeId` (*type:* `String.t`, *default:* `nil`) - A unique identifier for this feature's polygon data which is being held externally in Shapestore (see go/shapestore). + * `restOfWorldPolygonShapeId` (*type:* `String.t`, *default:* `nil`) - A unique identifier for this feature's rest-of-world view polygon data which is being held externally in Shapestore (see go/shapestore). This is part of the feature's geopolitical geometry. + * `rightsStatus` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreRightsStatusProto.t`, *default:* `nil`) - Per-field rights for this feature. See http://g3doc/geostore/g3doc/developers-guide/inputs/rights-tracking for more information. + * `selfPolygonShapeId` (*type:* `String.t`, *default:* `nil`) - A unique identifier for this feature's self view polygon data which is being held externally in Shapestore (see go/shapestore). This is part of the feature's geopolitical geometry. + * `trust` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreTrustSignalsProto.t`, *default:* `nil`) - Trust signals/annotations for the feature. In an input feature, these signals are computed at the beginning of the pipeline and are immutable during the processing. In output features, this proto may define the rules/criteria that a newer edit should meet, in order to be applied. + * `waterRemovedPolygonShapeId` (*type:* `String.t`, *default:* `nil`) - A unique identifier for this feature's water-removed polygon data which is being held externally in Shapestore (see go/shapestore). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :polygonShapeId => String.t() | nil, + :restOfWorldPolygonShapeId => String.t() | nil, + :rightsStatus => + GoogleApi.ContentWarehouse.V1.Model.GeostoreRightsStatusProto.t() | nil, + :selfPolygonShapeId => String.t() | nil, + :trust => GoogleApi.ContentWarehouse.V1.Model.GeostoreTrustSignalsProto.t() | nil, + :waterRemovedPolygonShapeId => String.t() | nil + } + + field(:polygonShapeId) + field(:restOfWorldPolygonShapeId) + field(:rightsStatus, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRightsStatusProto) + field(:selfPolygonShapeId) + field(:trust, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTrustSignalsProto) + field(:waterRemovedPolygonShapeId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalFeatureProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalFeatureProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalFeatureProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_field_metadata_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_field_metadata_proto.ex new file mode 100644 index 0000000000..994f9ff88a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_field_metadata_proto.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalFieldMetadataProto do + @moduledoc """ + + + ## Attributes + + * `isAuto` (*type:* `boolean()`, *default:* `nil`) - Whether or not the piece of data has been generated automatically (i.e., by a bot/automated process based on heuristics/algorithms rather than coming as a fact set by some human user or data provider based on their knowledge). Note that this does NOT imply that the value was set as a result of a bot operation on the repository, since it is conceivable to use a bot/automated process simply as a way of convenience to ingest large amount of canonical/ground truth data. + * `sourceSummary` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSourceSummaryProto.t`, *default:* `nil`) - Information about the source providing the piece of data this metadata is attached to. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isAuto => boolean() | nil, + :sourceSummary => + GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSourceSummaryProto.t() | nil + } + + field(:isAuto) + + field(:sourceSummary, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSourceSummaryProto) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalFieldMetadataProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalFieldMetadataProto.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalFieldMetadataProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_segment_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_segment_proto.ex new file mode 100644 index 0000000000..3843832614 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_segment_proto.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProto do + @moduledoc """ + Internal-only proto used to express additional information about segments. This is intended for communicating extra information between editing clients and the repository, and should not be used by or visible to clients. WARNING - if you add new fields to InternalSegmentProto, make sure that geostore/tools/internal/mr-mergesegments_test.cc is aware of them. + + ## Attributes + + * `disallowedConnections` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProtoLaneConnectionReference.t)`, *default:* `nil`) - A list of lane connections that are explicitly not allowed to be added. NOTE: This should never reference existing lane connections on this segment. + * `disallowedPrimaryConnection` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProtoLaneConnectionReference.t)`, *default:* `nil`) - A list of lane connections which cannot have the primary_connection bit set. + * `travelAllowance` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto.t)`, *default:* `nil`) - The set of restrictions that apply to this segment; these are actually *POSITIVE* restrictions, i.e. they are known to be allowed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :disallowedConnections => + list( + GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProtoLaneConnectionReference.t() + ) + | nil, + :disallowedPrimaryConnection => + list( + GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProtoLaneConnectionReference.t() + ) + | nil, + :travelAllowance => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto.t()) | nil + } + + field(:disallowedConnections, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProtoLaneConnectionReference, + type: :list + ) + + field(:disallowedPrimaryConnection, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProtoLaneConnectionReference, + type: :list + ) + + field(:travelAllowance, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_segment_proto_lane_connection_reference.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_segment_proto_lane_connection_reference.ex new file mode 100644 index 0000000000..d5ab86520d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_segment_proto_lane_connection_reference.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProtoLaneConnectionReference do + @moduledoc """ + Specifies a single outgoing lane connection. + + ## Attributes + + * `fromLaneNumber` (*type:* `integer()`, *default:* `nil`) - The lane number on this segment. + * `segment` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - This reference to the other segment is weak, since strong would blow up bounds of all segments. + * `toLaneNumber` (*type:* `integer()`, *default:* `nil`) - This is the lane number on the target segment. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fromLaneNumber => integer() | nil, + :segment => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :toLaneNumber => integer() | nil + } + + field(:fromLaneNumber) + field(:segment, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:toLaneNumber) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProtoLaneConnectionReference do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProtoLaneConnectionReference.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProtoLaneConnectionReference do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_source_summary_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_source_summary_proto.ex new file mode 100644 index 0000000000..3ae586e18a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_internal_source_summary_proto.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSourceSummaryProto do + @moduledoc """ + + + ## Attributes + + * `dataset` (*type:* `String.t`, *default:* `nil`) - Within the above provider, the dataset from which this piece of data was generated. For fields that are auto-generated the "dataset" is likely to be some algorithm's or program's name. Similar to SourceInfoProto.dataset but with the difference that it is required to always be set. Providers that don't have a concept of dataset may use "default". + * `provider` (*type:* `String.t`, *default:* `nil`) - The data provider from which this piece of data was generated. Equivalent to SourceInfoProto.provider in the public schema. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataset => String.t() | nil, + :provider => String.t() | nil + } + + field(:dataset) + field(:provider) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSourceSummaryProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSourceSummaryProto.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSourceSummaryProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_intersection_group_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_intersection_group_proto.ex new file mode 100644 index 0000000000..e71ac9e9fe --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_intersection_group_proto.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreIntersectionGroupProto do + @moduledoc """ + Our TYPE_INTERSECTION features model the point where one or more segments terminate. This is topological definition: it may not match what a typical user would think of as an "intersection". Consider the intersections where Hayes, Market, Larkin, and 9th Street meet near (37.77765, -122.41638) in San Francisco. Most people would probably consider this a single feature, even though we model it as four separate TYPE_INTERSECTION features. The TYPE_INTERSECTION_GROUP is used to model the user's concept of a real-world intersection, which also includes turn lanes or a whole roundabout (a logical intersection). For the purposes of modeling turn restrictions and lane connections, a smaller grouping is needed to model the "core" part of the intersection where there are no lane markings. This is called a core or artifact group. An intersection group must contain at least two intersections or add some information (e.g. a name or a polygon) compared to the intersection itself, or else must not exist. The standard feature properties are interpreted as follows: name - Can be used to specify any "special" names associated with this intersection (e.g. Reads Corner intersection, PEI, Canada). Intersections that are named according to their cross streets do not need to specify this field, since this can be determined by looking at the routes associated with each segment. address - This should always be empty. point - Specifies the center of the intersection. This is basically the point where the intersection name should be rendered. Can be omitted in favor of a polygon. polyline - This should always be empty. polygon - Specifies the two-dimensional extent of the intersection. This may substitute to the point field, though having a center set is desirable in this case. child - This should always be empty. + + ## Attributes + + * `childGroup` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - All artifact intersection groups that are in this logical group. + * `groupType` (*type:* `String.t`, *default:* `nil`) - + * `intersection` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - The list of TYPE_INTERSECTION features that form this intersection group, but are NOT in any of this group's child groups. This could be an empty list, though that is sub-optimal. Even an empty list would allow the paint team to draw a label for a named intersection, but a non-empty list would, for example, enable PathFinder to generate better directions. Each of the TYPE_INTERSECTION feature referred here must refer back to this feature in its IntersectionProto. + * `parentGroup` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - Parent logical intersection group. An artifact group that does not have an associated parent logical group is assumed to be both an artifact and logical group. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :childGroup => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :groupType => String.t() | nil, + :intersection => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :parentGroup => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil + } + + field(:childGroup, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + field(:groupType) + + field(:intersection, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + + field(:parentGroup, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreIntersectionGroupProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreIntersectionGroupProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreIntersectionGroupProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_intersection_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_intersection_proto.ex new file mode 100644 index 0000000000..3276051364 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_intersection_proto.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreIntersectionProto do + @moduledoc """ + A TYPE_INTERSECTION feature represents a common endpoint of one or more segments in a transportation network at which the segments are connected. An intersection in the real world may be more complicated than that (e.g., comprise multiple segment endpoints or have extra attributes), which can be modeled with an additional TYPE_INTERSECTION_GROUP feature, if needed (see intersectiongroup.proto). The standard feature properties are interpreted as follows: name - This should always be empty. Intersections that have a "special" name (e.g. Reads Corner intersection, PEI, Canada) should point to a separate TYPE_INTERSECTION_GROUP feature that captures it. Intersections which are named according to their cross streets do not need this requirement, since their name can be determined by looking at the routes associated with each segment. address - This should always be empty. point - Specifies the center of the intersection. This should be the last vertex of all the segments which terminate at this intersection. polyline - This should always be empty. polygon - This should always be empty. child - This should always be empty. + + ## Attributes + + * `intersectionGroup` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - The artifact or logical intersection group to which this intersection belongs. If present, the intersection group must also refer back to the intersection. If an intersection is within both the artifact and logical group, then this reference should be to the artifact group. + * `outSegment` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - RESERVED + * `segment` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - The list of segments that terminate at this intersection, in any order. Note that all segments are directed towards the intersection, i.e. their endpoints indicate what sort of intersection this is. This should not be empty because an intersection with no associated segment is meaningless. + * `tollClusterId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - The toll cluster to which this intersection belongs. If present, the toll cluster must also refer back to the intersection. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :intersectionGroup => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :outSegment => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :segment => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :tollClusterId => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil + } + + field(:intersectionGroup, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:outSegment, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + field(:segment, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + field(:tollClusterId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreIntersectionProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreIntersectionProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreIntersectionProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_job_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_job_metadata.ex new file mode 100644 index 0000000000..a129d7edbb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_job_metadata.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreJobMetadata do + @moduledoc """ + + + ## Attributes + + * `duration` (*type:* `String.t`, *default:* `nil`) - Describes how much time the service is going to take, e.g. how long it takes to do a haircut. Value of seconds must be from +60 (1 min) to +31,536,000 (365 days) inclusive. Value of nanos must be zero. + * `jobRelatedCategories` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreJobRelatedCategory.t)`, *default:* `nil`) - Represents the name of a potential grouping of items. For TYPE_JOB, this is the category names of the categories that a user picked this job type from at the time of input. + * `jobTypeId` (*type:* `String.t`, *default:* `nil`) - Unique identifier for a job. This is required for standard jobs and blank for free-form jobs. Job type ids are prefixed with "job_type_id:". Notice this is a unique string representation of a job across languages. E.g., “job_type_id:air_duct_repair”. The existence of a job_type_id means the job type is a standard one, and has a corresponding entry in the Standard Jobs Taxonomy. + * `jobTypeMid` (*type:* `String.t`, *default:* `nil`) - Represents the MID corresponding to the job_category entity in the Knowledge Graph. For example, job_type_id="job_type_id:install_faucet", job_type_mid="/g/11hzzxjv3f". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :duration => String.t() | nil, + :jobRelatedCategories => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreJobRelatedCategory.t()) | nil, + :jobTypeId => String.t() | nil, + :jobTypeMid => String.t() | nil + } + + field(:duration) + + field(:jobRelatedCategories, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreJobRelatedCategory, + type: :list + ) + + field(:jobTypeId) + field(:jobTypeMid) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreJobMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreJobMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreJobMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_job_related_category.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_job_related_category.ex new file mode 100644 index 0000000000..c85481434e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_job_related_category.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreJobRelatedCategory do + @moduledoc """ + This is the category that a user picked this job type from at the time of input. The field serves two purposes: 1) The name is used in consumer surface similar to the heading name today (i.e., grouping jobs under the category. 2) The gcid is needed mainly for free-formed entries, for which GMB needs to map them to corresponding categories in the frontend, if applicable. Notice that the name and the id are both not expected to be in sync with gcid deprecation or location category change per product decision. In other words, they are not guaranteed to stay in sync, only guaranteed true at time of creation. + + ## Attributes + + * `gcid` (*type:* `String.t`, *default:* `nil`) - + * `language` (*type:* `String.t`, *default:* `nil`) - + * `name` (*type:* `String.t`, *default:* `nil`) - Category name in the primary language of the feature. Generally intended to be used as a fallback when we are unable to fetch the name in the user's language. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gcid => String.t() | nil, + :language => String.t() | nil, + :name => String.t() | nil + } + + field(:gcid) + field(:language) + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreJobRelatedCategory do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreJobRelatedCategory.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreJobRelatedCategory do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_knowledge_graph_reference_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_knowledge_graph_reference_proto.ex new file mode 100644 index 0000000000..675f218071 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_knowledge_graph_reference_proto.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreKnowledgeGraphReferenceProto do + @moduledoc """ + The reference to an entity in the KnowledgeGraph. For details on the KnowledgeGraph see http://goto/kg. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - KG Identifier (MID). For details, see http://go/ke-bg-knowledge-graph#mids. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil + } + + field(:id) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreKnowledgeGraphReferenceProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreKnowledgeGraphReferenceProto.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreKnowledgeGraphReferenceProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_landmark_reference_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_landmark_reference_proto.ex new file mode 100644 index 0000000000..7fef9b5ee6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_landmark_reference_proto.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreLandmarkReferenceProto do + @moduledoc """ + This protocol buffer represents the association between a segment and a landmark feature. Notes: - References to TYPE_SEGMENT features should always point to the even sibling. - Self-references are allowed but the referencing segment's sibling is required to have a self-reference as well (the above requirement to always reference the even sibling still applies). + + ## Attributes + + * `featureType` (*type:* `integer()`, *default:* `nil`) - The type of the landmark feature. Allowed types: - TYPE_CARTOGRAPHIC e.g. a putting green or water hazard - TYPE_COMPOUND e.g. - the Empire state building (TYPE_COMPOUND_BUILDING) - a park (TYPE_COMPOUND_GROUNDS) - a section of a retail store (TYPE_COMPOUND_SECTION) - TYPE_ESTABLISHMENT e.g. - the Eiffel Tower (TYPE_ESTABLISHMENT_BUILDING) - a sports field (TYPE_ESTABLISHMENT_GROUNDS) - Starbucks (TYPE_ESTABLISHMENT_POI) - TYPE_INTERSECTION_GROUP e.g. a major intersection - TYPE_NATURAL_FEATURE e.g. a river - TYPE_SEGMENT e.g. a bike trail or train tracks + * `landmark` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - The feature ID of the landmark feature. + * `travelMode` (*type:* `list(String.t)`, *default:* `nil`) - The mode(s) of travel for which this landmark is useful. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :featureType => integer() | nil, + :landmark => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :travelMode => list(String.t()) | nil + } + + field(:featureType) + field(:landmark, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:travelMode, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLandmarkReferenceProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreLandmarkReferenceProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLandmarkReferenceProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_lane_marker_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_lane_marker_proto.ex new file mode 100644 index 0000000000..1526f34762 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_lane_marker_proto.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneMarkerProto do + @moduledoc """ + This proto contains attributes relevant to physical lane markers. + + ## Attributes + + * `barrierMaterials` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreBarrierLogicalMaterialProto.t`, *default:* `nil`) - If this is a physical barrier marker, represent materials found on the marker. + * `crossingPattern` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreCrossingStripePatternProto.t`, *default:* `nil`) - Pattern border and color for crossing markers. These include crosswalks, stop, and yield lines. + * `linearPattern` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreLinearStripePatternProto.t`, *default:* `nil`) - Stripe pattern, spacing, and color for longitudinal markers. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :barrierMaterials => + GoogleApi.ContentWarehouse.V1.Model.GeostoreBarrierLogicalMaterialProto.t() | nil, + :crossingPattern => + GoogleApi.ContentWarehouse.V1.Model.GeostoreCrossingStripePatternProto.t() | nil, + :linearPattern => + GoogleApi.ContentWarehouse.V1.Model.GeostoreLinearStripePatternProto.t() | nil + } + + field(:barrierMaterials, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreBarrierLogicalMaterialProto + ) + + field(:crossingPattern, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCrossingStripePatternProto + ) + + field(:linearPattern, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreLinearStripePatternProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneMarkerProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneMarkerProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneMarkerProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_lane_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_lane_proto.ex new file mode 100644 index 0000000000..9abe272b75 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_lane_proto.ex @@ -0,0 +1,111 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneProto do + @moduledoc """ + Describes an individual road lane. Not only driving lanes, but also parking and biking lanes are covered by this. Note that we may eventually add curbs and walking to this schema. MOTIVATION/DESIGN DISCUSSION The intent of this schema is to model a schematic representation of the road for a bunch of use cases within GMM, navigation, map tiles. For rendering, we do not want to represent the geometry of each lane exactly, but do want to model types/width/gaps/lane markings so that a schematic rendering can be made. For navigation, we model lane connectivity and restrictions per lane, so that Pathfinder can potentially pick routes based on lanes, and definitely use the lanes to better describe the path to the driver. This schema is driven by the GT team, which is likely to be the only provider of this data. It is based on compromises that we are working out with other teams, based on what our operators can reasonably collect and what is useful. See docs here: https://docs.google.com/a/google.com/document/d/11XJ1WvqS5Sm7MxWXzzc3tnsk49VhrR3BYFjiRMAzYm0/edit?hl=en_US https://docs.google.com/a/google.com/document/d/1nzdupynTUKE8xY8JcfvQbU-KWtCJ6IwHiTaCxuq40EM/edit?hl=en_US Note: Some lane information (width, surface type, etc) may duplicate or contradict information stored at the segment level. + + ## Attributes + + * `boundingMarker` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreBoundingMarkerProto.t)`, *default:* `nil`) - References to any gcid:physical_lane_marker features that bound this lane. + * `conjoinedCategory` (*type:* `String.t`, *default:* `nil`) - If the current lane is part of a merge/split area, indicates the type (split or merge) and whether the current lane is on the left or right or in the middle of the merge/split area, as seen in the direction of traffic. See go/lane-split-merge-schema + * `distanceToNextLane` (*type:* `number()`, *default:* `nil`) - Gap between this lane and the next in meters. This is relevant when the divider is physical, or a wide painted area. For regular painted single or double lines, there is no gap. This distance is duplicated between the innermost lanes for each side. Note that this is not used to describe smallish islands - this is only for long-running gaps. In particular, this models the median width, the gap between HOV lanes/regular lanes on freeways, and the road verge between a curb and sidewalk. Note on split roads: We can model any split road with a median as a single sibling pair with this distance set to the width of the median, or as two one-way sibling pairs. + * `flow` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFlowLineProto.t`, *default:* `nil`) - The most logical path for the center of an object to travel along within the lane. Typically, this is the lane's center line, but doesn't have to be. + * `laneConnection` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneProtoLaneConnection.t)`, *default:* `nil`) - Connections to lanes of other segments at the end of this segment. These connections model the connectivity where you don't have to do a lane change maneuver. If any lane connection is present, assume that all others are forbidden. Also note that segment level restrictions do apply if present, and can disallow some turn even if the lanes are connected. For instance, this can happen with timed or vehicle type based restrictions on the segment. If lane connectivity implies a segment-level restriction (can't transition to some target segment), that restriction will also exist as a segment level restriction. In effect - PathFinder does not have to look at lane connectivity to figure out segment connectivity. Example: Typically, lanes are just connected to one other lane. Example: A splitting lane is connected to the two resulting lanes. Example: At an intersection, a lane is connected to crossing lanes according to how lanes are painted across the intersection. In the common case, the target segment will be connected to the same intersection as this segment. That will however NOT be true for complex intersections where there is an intersection group. The connections will be across the whole group, connecting to one of the outgoing segments from the group. This is analogous to how we do turn restrictions around intersection groups. + * `laneDividerCrossing` (*type:* `String.t`, *default:* `nil`) - clang-format on Whether the divider to the inside of this lane can be crossed. Note that we assume this is symmetric, and that this also describes whether someone in the next inside lane can cross to this one. The "inside" lane is the one with a lower lane_number. Note on lane markers: We do not model the painting, but only the resulting legality. There are many painted marker styles and colors that lead to the same legality. We expect Paint or Driveabout to render lanes stylized, with solid meaning "can't cross", and dashed meaning "can cross". Note on varying legality along segment: ALLOWED takes precedence - even if some small portion has a restriction (such as right before an intersection) , the lane change will be ALLOWED. + * `laneFollowsSegmentBeginFraction` (*type:* `number()`, *default:* `nil`) - These indicate for what portion of the segment the lane's flowline exactly follows the segment, and the lane is of constant width. This will be set to not include the whole segment where there is a split/turn/merge at either end of the lane. The painting of the lane should completely synthesize the lane geometry outside of this portion, connecting it to neighboring lanes to make graphical nice. + * `laneFollowsSegmentEndFraction` (*type:* `number()`, *default:* `nil`) - + * `laneNumber` (*type:* `integer()`, *default:* `nil`) - Lanes are numbered from inside of the road outward, i.e. the lane next to the center line is lane 0. The lanes then stack outwards, towards the side that one drives on this segment (right or left). NOTE: do NOT use the lane_number as index for lookup. Lane_number is not guaranteed to match the segment.lane repeated field index. + * `laneToken` (*type:* `String.t`, *default:* `nil`) - A token that can be used to identify the version of the data about this lane. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this lane. + * `restriction` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto.t)`, *default:* `nil`) - Restrictions that apply to this lane only. Examples include HOV lanes. If a lane restriction implies a segment-level restriction (can't route on the segment at all), that restriction will also exist as a segment level restriction. In effect - PathFinder does not have to look at lane restrictions to figure out segment restrictions. + * `shared` (*type:* `boolean()`, *default:* `nil`) - True if this lane is usable in both directions (left-turn lane, reversing lane, one-lane road, etc). To get the total number of lanes for a road, add up the lanes in each direction counting 0.5 for each shared lane. + * `stopLine` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - References to any gcid:physical_lane_marker features that intersect this lane, with the implication that a moving vehicle should stop there. + * `surface` (*type:* `String.t`, *default:* `nil`) - clang-format on LINT.ThenChange(//depot/google3/geostore/base/proto/segment.proto) Unlike the surface in SegmentProto, this field does not have a default value. This is because the lane-level surface overrides the segment-level surface. The lane's surface should be unset unless explicitly overriding the segment's surface. + * `type` (*type:* `String.t`, *default:* `nil`) - clang-format on + * `width` (*type:* `number()`, *default:* `nil`) - Width of this lane in meters. In many cases, we will collect this data by dividing the total road width by the number of lanes. On accuracy: This is a rough average width along this segment. If and when we wanted to be more accurate, we'd extend this schema to have full polygons for segments/lanes rather than just this average width. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :boundingMarker => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreBoundingMarkerProto.t()) | nil, + :conjoinedCategory => String.t() | nil, + :distanceToNextLane => number() | nil, + :flow => GoogleApi.ContentWarehouse.V1.Model.GeostoreFlowLineProto.t() | nil, + :laneConnection => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneProtoLaneConnection.t()) | nil, + :laneDividerCrossing => String.t() | nil, + :laneFollowsSegmentBeginFraction => number() | nil, + :laneFollowsSegmentEndFraction => number() | nil, + :laneNumber => integer() | nil, + :laneToken => String.t() | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :restriction => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto.t()) | nil, + :shared => boolean() | nil, + :stopLine => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :surface => String.t() | nil, + :type => String.t() | nil, + :width => number() | nil + } + + field(:boundingMarker, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreBoundingMarkerProto, + type: :list + ) + + field(:conjoinedCategory) + field(:distanceToNextLane) + field(:flow, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFlowLineProto) + + field(:laneConnection, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneProtoLaneConnection, + type: :list + ) + + field(:laneDividerCrossing) + field(:laneFollowsSegmentBeginFraction) + field(:laneFollowsSegmentEndFraction) + field(:laneNumber) + field(:laneToken) + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + + field(:restriction, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto, + type: :list + ) + + field(:shared) + field(:stopLine, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + field(:surface) + field(:type) + field(:width) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_lane_proto_lane_connection.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_lane_proto_lane_connection.ex new file mode 100644 index 0000000000..b8b5a646fa --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_lane_proto_lane_connection.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneProtoLaneConnection do + @moduledoc """ + + + ## Attributes + + * `boundingMarker` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreBoundingMarkerProto.t)`, *default:* `nil`) - References to any gcid:physical_lane_marker features that bound this lane connection. + * `connectionToken` (*type:* `String.t`, *default:* `nil`) - A token that can be used to identify the version of the data about this lane connection. + * `curve` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProto.t`, *default:* `nil`) - Specifies how the flowline should be synthesized in this connection region. If unspecified, heuristics may be used to pick a sweep shape based on retraction values or neighboring curves. + * `flow` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFlowLineProto.t`, *default:* `nil`) - The most logical path for the center of an object to travel along within the lane connection. Typically, this is the lane connection's center line, but doesn't have to be. + * `laneNumber` (*type:* `integer()`, *default:* `nil`) - This is the lane number on the target segment. This field is not set if the target segment doesn't have lanes, or we don't know the exact connectivity. + * `primaryConnection` (*type:* `boolean()`, *default:* `nil`) - True if this connects to the unique, natural continuation of the current lane. At most one LaneConnection per lane can have this field set true. This attribute is of interest to ADAS providers as a hint to which lane a vehicle is likely to follow, in the absence of other information about the vehicle's planned path. + * `segment` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - This reference to the other segment is weak, since strong would blow up bounds of all segments. + * `yieldToOtherConnections` (*type:* `boolean()`, *default:* `nil`) - The inverse of the primary connection bit that provides a hint that this connection is part of a merge and a vehicle following this connection should yield to vehicles following other incoming connections. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :boundingMarker => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreBoundingMarkerProto.t()) | nil, + :connectionToken => String.t() | nil, + :curve => GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProto.t() | nil, + :flow => GoogleApi.ContentWarehouse.V1.Model.GeostoreFlowLineProto.t() | nil, + :laneNumber => integer() | nil, + :primaryConnection => boolean() | nil, + :segment => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :yieldToOtherConnections => boolean() | nil + } + + field(:boundingMarker, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreBoundingMarkerProto, + type: :list + ) + + field(:connectionToken) + field(:curve, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProto) + field(:flow, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFlowLineProto) + field(:laneNumber) + field(:primaryConnection) + field(:segment, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:yieldToOtherConnections) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneProtoLaneConnection do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneProtoLaneConnection.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneProtoLaneConnection do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_language_tagged_text_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_language_tagged_text_proto.ex new file mode 100644 index 0000000000..70fc9ae80e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_language_tagged_text_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreLanguageTaggedTextProto do + @moduledoc """ + Represents a piece of text with an associated language. + + ## Attributes + + * `language` (*type:* `String.t`, *default:* `nil`) - The external form of a Google International Identifiers Initiative (III) LanguageCode object. See google3/i18n/identifiers/languagecode.h for details. We place extra restrictions on languages in addition to what the III library requires. See http://go/geo-schema-reference/feature-properties/languages.md + * `text` (*type:* `String.t`, *default:* `nil`) - The text (UTF-8 encoding). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :language => String.t() | nil, + :text => String.t() | nil + } + + field(:language) + field(:text) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLanguageTaggedTextProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreLanguageTaggedTextProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLanguageTaggedTextProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_level_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_level_proto.ex new file mode 100644 index 0000000000..b6fe738503 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_level_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreLevelProto do + @moduledoc """ + A feature used to represent a logical level, e.g. floor. A feature belonging to a given level should point to the level feature using relation RELATION_ON_LEVEL. The standard feature properties are interpreted as follows: name - Levels should have names according to the following: * Short, elevator-style names, such as "L" for "Lobby" and "2" for "Second floor", must be included and must be tagged with FLAG_ABBREVIATED. There must be an unambiguous "best" abbreviated name. * Longer names such as "Ticketing" or "Upper Level" may be present when the level has a specific name. * Non-abbreviated names should only be added if they are known to meaningfully expand upon the abbreviated name. For example, the long name "Observation Deck 2" for the abbreviated name "OD2" is a good additional name. In contrast, the name "Level 2" for the abbreviated name "2" is not desired. address - This should always be empty. point, polyline, polygon, center - These should never be set (since we are representing a logical entity). preferred_viewport - This should be the approximate extent of the level. child - This should always be empty. + + ## Attributes + + * `building` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - The building(s) to which this level belongs. A level will typically belong to a single building, but it is valid for a single level to be shared by multiple buildings (for example, a large underground parking lot). These buildings refer back to the level via another strong reference (the BuildingProto.level field). + * `number` (*type:* `number()`, *default:* `nil`) - The elevation of this level relative to the ground level, in levels. 0 = ground floor (even in locales that call the ground floor "1st floor"); 0.5 = between ground and first floor, eg mezzanine; 1 = first floor (one level above ground floor); -3 = three levels below ground floor. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :building => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :number => number() | nil + } + + field(:building, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + field(:number) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLevelProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreLevelProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLevelProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_linear_stripe_pattern_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_linear_stripe_pattern_proto.ex new file mode 100644 index 0000000000..0cd14a7d72 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_linear_stripe_pattern_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreLinearStripePatternProto do + @moduledoc """ + + + ## Attributes + + * `line` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePhysicalLineProto.t)`, *default:* `nil`) - A linear marker may consist of one or more parallel physical lines. These are ordered left to right along the direction of the marker core polyline. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :line => list(GoogleApi.ContentWarehouse.V1.Model.GeostorePhysicalLineProto.t()) | nil + } + + field(:line, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePhysicalLineProto, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLinearStripePatternProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreLinearStripePatternProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLinearStripePatternProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_locale_language_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_locale_language_proto.ex new file mode 100644 index 0000000000..abba3ec49b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_locale_language_proto.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreLocaleLanguageProto do + @moduledoc """ + This message describes the details of a single language within a locale. + + ## Attributes + + * `language` (*type:* `String.t`, *default:* `nil`) - The language associated with this preference. The external form of a Google International Identifiers Initiative (III) LanguageCode object. See google3/i18n/identifiers/languagecode.h for details. We place extra restrictions on languages in addition to what the III library requires. See http://go/geo-schema-reference/feature-properties/languages.md + * `official` (*type:* `boolean()`, *default:* `nil`) - Flag to indicate if the associated language is "official" within a locale. + * `preference` (*type:* `number()`, *default:* `nil`) - This value represents the preference of the associated language within a locale. It must be between 0.0 and 1.0. + * `speakingPercent` (*type:* `number()`, *default:* `nil`) - Percentage of population that can speak the associated language within a locale. It must be between 0 and 100. + * `writingPercent` (*type:* `number()`, *default:* `nil`) - Percentage of population that can write the associated language within a locale. It must be between 0 and 100. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :language => String.t() | nil, + :official => boolean() | nil, + :preference => number() | nil, + :speakingPercent => number() | nil, + :writingPercent => number() | nil + } + + field(:language) + field(:official) + field(:preference) + field(:speakingPercent) + field(:writingPercent) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLocaleLanguageProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreLocaleLanguageProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLocaleLanguageProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_locale_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_locale_proto.ex new file mode 100644 index 0000000000..041938fa9e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_locale_proto.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreLocaleProto do + @moduledoc """ + A locale is a meta-feature that describes the geographic extent of localization preferences such as the local language, and formatting conventions for numbers, dates and monetary values. Multilingual areas may be contained by multiple locales. We try to model locales fine-grained enough for deciding which languages are typically used within a city. For example, while French is an official language for all of Switzerland, we would prefer to have Zurich contained by a separate (more fine-grained) Swiss-German locale indicating that German, not French, is the predominantly spoken language in this city. Note that language borders are frequently considered a political question and often don't have clearly defined extents. For example, California has a significant Spanish-speaking population, but Spanish is not an official language of California. + + ## Attributes + + * `language` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreLocaleLanguageProto.t)`, *default:* `nil`) - This holds the list of languages spoken within a locale. + * `localizationPolicyId` (*type:* `String.t`, *default:* `nil`) - The ID of the localization policy (from googledata/geostore/localization/localization_policies.textpb) to apply to features that have this locale as their best match locale. Localization policy IDs are arbitrary identifiers that uniquely distinguish a set of language-selection rules. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :language => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreLocaleLanguageProto.t()) | nil, + :localizationPolicyId => String.t() | nil + } + + field(:language, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreLocaleLanguageProto, + type: :list + ) + + field(:localizationPolicyId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLocaleProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreLocaleProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLocaleProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_logical_border_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_logical_border_proto.ex new file mode 100644 index 0000000000..a1eaac678d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_logical_border_proto.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreLogicalBorderProto do + @moduledoc """ + A logical border is a grouping of border features, which together model a divide between two regions. The borders within this grouping share common attributes, such as the regions they divide, and may represent a conceptual group of borders, of which may be wholly disputed, wholly undisputed, or a mixture of disputed and undisputed. Note that any borders within this group may be part of multiple logical borders. A logical border is required to have a name describing what the grouping represents (e.g. "US - Mexico Border", "Kosovo - Serbia Border (Disputed)"). + + ## Attributes + + * `borderSegment` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - All the border segments which make up this logical border. Border segments must be TYPE_BORDER features which have the same left/right features. This is a many-to-many bidirectional relationship, so any border segment within this list might be part of another logical border. + * `status` (*type:* `String.t`, *default:* `nil`) - The logical border status identifies its legal status. This is similar to the BorderStatus present within border segments, but applies to the group as a whole. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :borderSegment => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :status => String.t() | nil + } + + field(:borderSegment, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, + type: :list + ) + + field(:status) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLogicalBorderProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreLogicalBorderProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreLogicalBorderProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_media_item_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_media_item_proto.ex new file mode 100644 index 0000000000..c48d043096 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_media_item_proto.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto do + @moduledoc """ + Media item attached to an element of price list. + + ## Attributes + + * `googleUrl` (*type:* `String.t`, *default:* `nil`) - The FIFE url associated with the media. NOTE: This FIFE URL must be PII-free, see go/product-catalogue-photo-storage + * `mediaFormat` (*type:* `String.t`, *default:* `nil`) - + * `mediaKey` (*type:* `String.t`, *default:* `nil`) - The mediaKey associated with the media. NOTE: This media key must be PII-free, see go/product-catalogue-photo-storage + * `mediaSize` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProtoMediaSize.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :googleUrl => String.t() | nil, + :mediaFormat => String.t() | nil, + :mediaKey => String.t() | nil, + :mediaSize => + GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProtoMediaSize.t() | nil + } + + field(:googleUrl) + field(:mediaFormat) + field(:mediaKey) + field(:mediaSize, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProtoMediaSize) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_media_item_proto_media_size.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_media_item_proto_media_size.ex new file mode 100644 index 0000000000..12df0713bc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_media_item_proto_media_size.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProtoMediaSize do + @moduledoc """ + Width and height of the original photo in pixels. + + ## Attributes + + * `originalHeightPx` (*type:* `integer()`, *default:* `nil`) - + * `originalWidthPx` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :originalHeightPx => integer() | nil, + :originalWidthPx => integer() | nil + } + + field(:originalHeightPx) + field(:originalWidthPx) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProtoMediaSize do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProtoMediaSize.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProtoMediaSize do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_name_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_name_proto.ex new file mode 100644 index 0000000000..e424a253ac --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_name_proto.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto do + @moduledoc """ + A name for a Feature (street name, point of interest, city, building, etc). We currently use NameProto for two essentially disjoint purposes: 1. Common names, which can be language-specific, or have other kinds of variations. 2. Opaque IDs, such as postal codes, which only have the `text` field set, and potentially some flags. This includes internal-only features like template ids. Each NameProto representing a common name corresponds to an assertion that a fluent speaker or writer of a language would recognize NameProto.text to name the given feature in that language. As such, NameProtos are stored in a repeated field, often having: 1. multiple names with the same text and varying languages, and 2. multiple names with the same language and varying texts. + + ## Attributes + + * `flag` (*type:* `list(String.t)`, *default:* `nil`) - clang-format on The set of flags that apply to this name. + * `language` (*type:* `String.t`, *default:* `nil`) - The external form of a Google International Identifiers Initiative (III) LanguageCode object. See google3/i18n/identifiers/languagecode.h for details. These strings should be treated as opaque blobs. You can use LanguageCodeConverter::FromOther to convert the string to a LanguageCode reference. You can then call methods on the LanguageCode class to extract language/script/region subtags (if any). See also http://g3doc/i18n/identifiers/g3doc/using-iii. We place extra restrictions on languages in addition to what the III library requires. See go/geo-schema-reference/feature-properties/languages. This field may be missing if the name does not have a concept of language but should be set if the language is unknown. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this name. NOTE: there are multiple NameProto fields in the Geo Schema. Metadata here is only expected to be present on FeatureProto.name[]. + * `rawText` (*type:* `String.t`, *default:* `nil`) - ** DEPRECATED ** The name text provided in the original source data (UTF-8 encoding). This is the text provided in the source data unmodified with the exception of being converted to UTF-8 and stripping extra leading, trailing and duplicate whitespaces (if necessary). + * `shortText` (*type:* `String.t`, *default:* `nil`) - The short name text (UTF-8 encoding). Acronyms/abbreviations should be consistently used, for example "NE 57th St" rather than "Northeast 57th Street", "N.E 57th St." or some other variant. This field should be populated with the chosen canonical version of the shortened name, based on per-term transformations. For feature specific abbreviations (such as 'CA' for 'California'), one should define a separate name with FLAG_ABBREVIATED set. For other variants of the shortened name that are not the canonical one, devise client based logic (ex: query rewriting rules). + * `temporaryData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - A place for clients to attach arbitrary data to a name. Never set in MapFacts. + * `text` (*type:* `String.t`, *default:* `nil`) - The name text (UTF-8 encoding). Acronyms/abbreviations should be fully expanded, for example "Northeast 57th Street" rather than "NE 57th St". They can be shortened at display or geocode time. This decision prevents ambiguity over such issues as whether "St" represents "Street" or "Saint". However, it pushes language-specific knowledge into code. We will have libraries and data files to contract acronyms/abbreviations at run-time. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :flag => list(String.t()) | nil, + :language => String.t() | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :rawText => String.t() | nil, + :shortText => String.t() | nil, + :temporaryData => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :text => String.t() | nil + } + + field(:flag, type: :list) + field(:language) + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:rawText) + field(:shortText) + field(:temporaryData, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + field(:text) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ontology_raw_g_concept_instance_container_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ontology_raw_g_concept_instance_container_proto.ex new file mode 100644 index 0000000000..54e3eb931b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ontology_raw_g_concept_instance_container_proto.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreOntologyRawGConceptInstanceContainerProto do + @moduledoc """ + The container for all GConceptInstances associated with a feature. + + ## Attributes + + * `instance` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreOntologyRawGConceptInstanceProto.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :instance => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreOntologyRawGConceptInstanceProto.t()) + | nil + } + + field(:instance, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreOntologyRawGConceptInstanceProto, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreOntologyRawGConceptInstanceContainerProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreOntologyRawGConceptInstanceContainerProto.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreOntologyRawGConceptInstanceContainerProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ontology_raw_g_concept_instance_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ontology_raw_g_concept_instance_proto.ex new file mode 100644 index 0000000000..16f8333adb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ontology_raw_g_concept_instance_proto.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreOntologyRawGConceptInstanceProto do + @moduledoc """ + A RawGConceptInstanceProto contains all data required by both internal and external clients. We store the 'public' data in a GConceptInstanceProto and the 'private' data inside of RawGConceptInstanceProto. NOTE: this doesn't really match the design we want anymore. Please talk to the Geo Schema team if you are planning to make use of the "private" fields below. + + ## Attributes + + * `instance` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreGConceptInstanceProto.t`, *default:* `nil`) - This is the 'public' section of the GConceptInstance. + * `isAddedByEdit` (*type:* `boolean()`, *default:* `nil`) - ** DEPRECATED ** Was this GConcept explicitly added by an edit? Examples of gconcepts not added by edits include those inferred through geo ontology and those mapped from legacy category forms by the feature updater. Note that it is possible for both is_added_by_edit and is_inferred to be true - it means this gconcept is added by an edit and there is also another more fine-grained gconcept added by an edit. + * `isInferred` (*type:* `boolean()`, *default:* `nil`) - RESERVED + * `provider` (*type:* `String.t`, *default:* `nil`) - ** DEPRECATED ** These two fields combined describe the source of a GConceptInstance. They are based on geostore/base/proto/datasourceprovider.proto. Their use has been deprecated. Use the FieldMetadataProto inside instance instead. + * `sourceDataset` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :instance => + GoogleApi.ContentWarehouse.V1.Model.GeostoreGConceptInstanceProto.t() | nil, + :isAddedByEdit => boolean() | nil, + :isInferred => boolean() | nil, + :provider => String.t() | nil, + :sourceDataset => String.t() | nil + } + + field(:instance, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreGConceptInstanceProto) + field(:isAddedByEdit) + field(:isInferred) + field(:provider) + field(:sourceDataset) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreOntologyRawGConceptInstanceProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreOntologyRawGConceptInstanceProto.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreOntologyRawGConceptInstanceProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_opening_hours_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_opening_hours_proto.ex new file mode 100644 index 0000000000..78856fdf1c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_opening_hours_proto.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreOpeningHoursProto do + @moduledoc """ + Message to represent opening hours including regular weekly hours and a set of exceptions. + + ## Attributes + + * `exception` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreExceptionalHoursProto.t)`, *default:* `nil`) - Date delimited exceptions to the typical recurring opening hours. May only be present if regular weekly hours are also specified. + * `regularHours` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessHoursProto.t`, *default:* `nil`) - Typical recurring opening hours, expressed as a weekly schedule. NOTE: this field was introduced to have a more client-friendly format for representing weekly hours but, as of November 2018, it's not used for the main opening hours of TYPE_ESTABLISHMENT features (instead, the data is stored in the `EstablishmentProto.hours` field, see b/23105782 tracking the possible schema migration). It is however used in other contexts where `OpeningHoursProto` appears in the Geo Schema. In openinghours.h there is a utility function `GetOpeningHoursFromFeature` that merges `EstablishmentProto.hours` into this proto. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :exception => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreExceptionalHoursProto.t()) | nil, + :regularHours => + GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessHoursProto.t() | nil + } + + field(:exception, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreExceptionalHoursProto, + type: :list + ) + + field(:regularHours, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessHoursProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreOpeningHoursProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreOpeningHoursProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreOpeningHoursProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_operations_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_operations_proto.ex new file mode 100644 index 0000000000..5f162b9fe0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_operations_proto.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreOperationsProto do + @moduledoc """ + Information about a feature's operations, e.g. when the feature is temporarily closed. + + ## Attributes + + * `temporaryClosure` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTemporaryClosureProto.t)`, *default:* `nil`) - Records temporary status change of the feature, such as remodel, vacation, etc.: the feature is temporarily (but not permanently) unavailable. This prevents users from going to the feature. Supports an arbitrary number of past, present, and future temporary closures, with the feature's data owner choosing which range of past and future closures to permit or guarantee to keep. All start and end dates must be unique from each other. If two consecutive dates are a start and an end of a TemporaryClosureProto, then the two dates must be from the same TemporaryClosureProto. Otherwise, exact dates may be missing so long as there exist a possible sequence of temporary closures with both exact start_date and end_date that keeps any known exact start_date and end_date. The earliest temporary closure must begin after whenever initial operations begin. Likewise, the latest temporary closure must end before whenever the permanent closure begins. NOTE: does *not* guarantee chronological order. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :temporaryClosure => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTemporaryClosureProto.t()) | nil + } + + field(:temporaryClosure, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTemporaryClosureProto, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreOperationsProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreOperationsProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreOperationsProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_override_border_status_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_override_border_status_proto.ex new file mode 100644 index 0000000000..2a121fcaee --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_override_border_status_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreOverrideBorderStatusProto do + @moduledoc """ + This message captures a border status override. For instance, if the TYPE_BORDER feature between China and Hong Kong must be hidden on ditu.google.cn (the Chinese domain for Google Maps) but may be displayed on other domains, we will have a country override border status for "CN" set to STATUS_NEVER_DISPLAY. At least one override restriction must be defined. Currently the only supported restriction is by country code. + + ## Attributes + + * `countryCode` (*type:* `String.t`, *default:* `nil`) - The two-letter ISO 3166-1 country code corresponding to the domain this status override applies to, when rendering the border polyline. + * `status` (*type:* `String.t`, *default:* `nil`) - The override status, from the BorderStatus enumeration. The value here must be different from the main status (otherwise there's no point in providing the override). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :countryCode => String.t() | nil, + :status => String.t() | nil + } + + field(:countryCode) + field(:status) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreOverrideBorderStatusProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreOverrideBorderStatusProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreOverrideBorderStatusProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_painted_element_logical_color_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_painted_element_logical_color_proto.ex new file mode 100644 index 0000000000..37d350a35b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_painted_element_logical_color_proto.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePaintedElementLogicalColorProto do + @moduledoc """ + Painted element logical color. Most legal definitions only specify a color category (like "yellow") and don't specify an exact hue, rather stating that the colors must be distinguishable from each other. We refer to this as the "logical" color. + + ## Attributes + + * `color` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :color => String.t() | nil + } + + field(:color) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostorePaintedElementLogicalColorProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePaintedElementLogicalColorProto.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostorePaintedElementLogicalColorProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_parking_allowance_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_parking_allowance_proto.ex new file mode 100644 index 0000000000..8eedc9e194 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_parking_allowance_proto.ex @@ -0,0 +1,81 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingAllowanceProto do + @moduledoc """ + Describes the parking allowances for a feature, or the situations and requirements under which one may be permitted to park, such as certain vehicle types, valet parking, and permit parking. Also describes the cost of parking, which may vary based on the time and duration parked. Includes vehicle type, any other conditions for eligibility, and the cost of parking, which may vary based on the time and duration parked. If is_discount is set to true on a given allowance, that allowance represents a discount that can be applied to lower the cost of non-discount allowances specified on feature via parking_provider_feature. In this way, allowances can be 'layered,' i.e. appended, onto each other when denormalizing references via parking_provider_feature. + + ## Attributes + + * `allowanceType` (*type:* `String.t`, *default:* `nil`) - The type of parking for this allowance. Allowance details only apply to the type of parking specified. + * `isDiscount` (*type:* `boolean()`, *default:* `nil`) - If true, this allowance represents a discount rather than an individual rate; any rate values specified in this allowance describe a discount to be applied to the non-discount allowances in the ParkingProto. + * `minPurchaseForValidation` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.FreebaseTopic.t)`, *default:* `nil`) - If this rate requires validation, this expresses the minimum purchase required for validation in each applicable currency. Should have an ID of /measurement_unit/money_value and consist of two properties: one with an ID of /measurement_unit/money_value/amount and a float value with the amount, and another with the ID /measurement_unit/money_value/currency and an ID value with the MID of the proper currency (from the /finance/currency type). A value of 0 suggests that no purchase is required. If empty, this suggests that no validation is required for this rate. + * `permitType` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreLanguageTaggedTextProto.t)`, *default:* `nil`) - Any additional details about the permit type; e.g. “Zone A”. In any local languages. Should only be set if allowance_type is PERMIT. + * `serviceType` (*type:* `list(String.t)`, *default:* `nil`) - The types of services that this parking allowance applies to. For instance, some cities have streets that only allow traditional taxis to pick up passengers. + * `timeBasedRate` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeBasedRateProto.t)`, *default:* `nil`) - Describes the rate structures. Each TimeBasedRateProto defines a rate which may apply based on a particular arrival, departure or utilization time; for example, one rate might apply if arriving before 9am, and another might apply regardless of arrival or departure time. + * `vehicleType` (*type:* `String.t`, *default:* `nil`) - Restrictions on which vehicle type(s) the allowance applies to. By default, the allowance applies to any vehicle types. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowanceType => String.t() | nil, + :isDiscount => boolean() | nil, + :minPurchaseForValidation => + list(GoogleApi.ContentWarehouse.V1.Model.FreebaseTopic.t()) | nil, + :permitType => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreLanguageTaggedTextProto.t()) | nil, + :serviceType => list(String.t()) | nil, + :timeBasedRate => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeBasedRateProto.t()) | nil, + :vehicleType => String.t() | nil + } + + field(:allowanceType) + field(:isDiscount) + + field(:minPurchaseForValidation, + as: GoogleApi.ContentWarehouse.V1.Model.FreebaseTopic, + type: :list + ) + + field(:permitType, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreLanguageTaggedTextProto, + type: :list + ) + + field(:serviceType, type: :list) + + field(:timeBasedRate, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeBasedRateProto, + type: :list + ) + + field(:vehicleType) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingAllowanceProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingAllowanceProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingAllowanceProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_parking_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_parking_proto.ex new file mode 100644 index 0000000000..2187e4447c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_parking_proto.ex @@ -0,0 +1,74 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingProto do + @moduledoc """ + Used to describe the parking facilities provided by or available to a feature. Features of TYPE_ROAD or TYPE_COMPOUND can have a ParkingProto (with parking_provider_feature unset) that describes the parking facilities provided by that feature. Features of TYPE_COMPOUND or TYPE_ESTABLISHMENT_POI can have a ParkingProto (with parking_provider_feature set) to indicate that the feature has dedicated parking and provide details about it, and defer some details of the parking facilities to the referent feature(s). ParkingProto is maintained by the Harbor Pilot team (go/harbor-pilot). Detailed modeling information is described at go/parking-schema. + + ## Attributes + + * `allowance` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingAllowanceProto.t)`, *default:* `nil`) - Describes the parking allowances for the feature, which are the situations and requirements under which one is permitted to park at the feature’s parking facilities, or discounts that a user may be eligible for. + * `openingHours` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreOpeningHoursProto.t`, *default:* `nil`) - Hours in which the parking facility is open; that is, permits both arrivals and departures of the facility. Should only be set on compounds (i.e. parking lots or garages); roads are considered to always be “open,” though parking at certain times may be prohibited via restrictions. If unset on a compound, this suggests we don’t know the opening hours, or they are the same as the hours of the entity for which this feature offers parking facilities. + * `parkingAvailable` (*type:* `boolean()`, *default:* `nil`) - Indicates whether long-term parking is available at the feature; if true, long-term parking is available at the feature and parking allowances may be present on this feature, or parking_provider_feature may indicate deferred parking feature(s). If false, this is an explicit statement that there is no long-term parking associated with this feature. If unset, we don't know whether there is long-term parking associated with this feature. If false or unset, only additional restrictions or short-term allowances will be populated. + * `parkingProviderFeature` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - If empty, indicates that the feature containing this ParkingProto provides parking facilities, which are described by this proto. If nonempty, indicates that the feature with this ParkingProto does not contain parking facilities itself, but visitors of this feature may use the parking available to the referent feature(s). The referent feature(s) may themselves contain parking facilities or defer to other features. A ParkingProto may defer parking details to another feature, but still include its own data. This suggests that a visitor of the referrer feature is eligible for different rates or discounts. The data in these fields applies transitively, and any fields in a referrer may be applied to the referent (for a visitor of the referrer). + * `restriction` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingRestrictionProto.t)`, *default:* `nil`) - Describes any parking restrictions that apply to this feature. Should only be set on road segments for which parking is explicitly prohibited for some or all times; for roads which do not prohibit parking and for all other facilities, the ability to park should be expressed using allowances. In the instance that both a restriction and an allowance applies at a given time, restrictions always have precedence over the same parking allowances. However, explicit short-term allowances (PICKUP_GOODS, PICKUP_PASSENGERS) take precedence over general NO_PARKING, NO_STANDING, or NO_STOPPING restrictions. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowance => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingAllowanceProto.t()) | nil, + :openingHours => + GoogleApi.ContentWarehouse.V1.Model.GeostoreOpeningHoursProto.t() | nil, + :parkingAvailable => boolean() | nil, + :parkingProviderFeature => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :restriction => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingRestrictionProto.t()) | nil + } + + field(:allowance, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingAllowanceProto, + type: :list + ) + + field(:openingHours, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreOpeningHoursProto) + field(:parkingAvailable) + + field(:parkingProviderFeature, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, + type: :list + ) + + field(:restriction, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingRestrictionProto, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_parking_restriction_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_parking_restriction_proto.ex new file mode 100644 index 0000000000..0170787361 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_parking_restriction_proto.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingRestrictionProto do + @moduledoc """ + Expresses a parking restriction on a road; i.e. times at which parking on the road is prohibited. + + ## Attributes + + * `restrictedHours` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t`, *default:* `nil`) - Times at which parking is prohibited. + * `restrictionType` (*type:* `String.t`, *default:* `nil`) - clang-format on The type of restriction that applies at this time. + * `serviceType` (*type:* `list(String.t)`, *default:* `nil`) - The types of services that this parking restriction applies to. We expect most parking restrictions to apply to all services, but some airports have specific rideshare parking or taxi parking zones. + * `vehicleType` (*type:* `list(String.t)`, *default:* `nil`) - The types of vehicles that this parking restriction applies to. For instance, some streets may allow motorcycles to park but not automobiles or trucks. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :restrictedHours => + GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t() | nil, + :restrictionType => String.t() | nil, + :serviceType => list(String.t()) | nil, + :vehicleType => list(String.t()) | nil + } + + field(:restrictedHours, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto) + field(:restrictionType) + field(:serviceType, type: :list) + field(:vehicleType, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingRestrictionProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingRestrictionProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingRestrictionProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_peak_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_peak_proto.ex new file mode 100644 index 0000000000..b0b9d54399 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_peak_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePeakProto do + @moduledoc """ + This protocol buffer holds related data for features of type TYPE_PEAK and TYPE_VOLCANO. + + ## Attributes + + * `prominenceMeters` (*type:* `float()`, *default:* `nil`) - Topographic prominence in meters: the height of the peak’s summit above the lowest contour line encircling it and no higher summit. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :prominenceMeters => float() | nil + } + + field(:prominenceMeters) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePeakProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePeakProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePeakProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_pedestrian_crossing_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_pedestrian_crossing_proto.ex new file mode 100644 index 0000000000..5ec6ee20df --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_pedestrian_crossing_proto.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePedestrianCrossingProto do + @moduledoc """ + A crossing describes a path from the end point of a segment to the start point of its sibling. Each individual crossing should uniquely represent a physically distinct crossing in the real world. Pedestrian crossings are bidirectional. This proto represents "simple" crossings. More complicated crossings (such as the diagonal crosswalk at Shibuya Station in Tokyo) will be represented using a separate pedestrian network. Example 1: Standard four way crossing. Assume each road (A/B/C) has a crosswalk (denoted by a '-') right before intersection X. Assume crossing at D is prohibited (denoted by a '%'). Assume "prime" roads (A',B',...) are OUT segments relative to X. A\\\\A' B//B' \\\\ // \\\\ // - - X - % // \\\\ // \\\\ C'//C D'\\\\D * A CROSSABLE PedestrianCrossing should be added to A, B and C. * An UNCROSSABLE PedestrianCrossing should be added to D. Example 2: Simple intersection with one crossing. Assume intersection X was added to accommodate the crosswalk (through X, denoted by '-'). Assume "prime" roads (A',B',...) are OUT segments relative to X. A\\\\A' \\\\ \\\\ -X- \\\\ \\\\ B'\\\\B * A CROSSABLE PedestrianCrossing must be added to either A or B, but not both because each real-world crossing should be represented exactly once. Duplicative crossings may be arbitrarily removed. + + ## Attributes + + * `angleDegrees` (*type:* `float()`, *default:* `nil`) - This value specifies the angle of the crosswalk. Zero degrees represents a crosswalk perpendicular to the direction of travel, towards the right side of the segment. The crosswalk angle, winds clockwise. Range [-90, 90]. The following crosswalk would have a 15 degree angle: / / <--/-------------------------------- / / + * `crossAnywhere` (*type:* `boolean()`, *default:* `nil`) - This value enables crossing anywhere (not just at the segment’s endpoint), typically used on long, low-traffic residential streets. This attribute is only respected for trivial segment -> sibling routes. All other routes can cross at a MapFacts intersection. + * `crossingType` (*type:* `String.t`, *default:* `nil`) - Crossing type is used as a restriction and can also be used for rendering. + * `offset` (*type:* `number()`, *default:* `nil`) - The crossing offset defines a fraction between the distance from the segment endpoint to the centerline of the crosswalk and the length of the segment. For example, the segment length is 20 meters and the distance from segment end to center of crosswalk is 2 meters, the value of offset will be 0.1. + * `restriction` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto.t)`, *default:* `nil`) - Restrictions for this crossing (such as constructions on the crosswalk). They must not have subpath or travel_mode. + * `width` (*type:* `number()`, *default:* `nil`) - This value defines the full width of the crossing in the direction perpendicular to the direction which pedestrians walk on the crossing (in meters). The crossing is allowed to "spill" into the next segment (0.5 * width can be greater than the offset). Cannot be a negative value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :angleDegrees => float() | nil, + :crossAnywhere => boolean() | nil, + :crossingType => String.t() | nil, + :offset => number() | nil, + :restriction => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto.t()) | nil, + :width => number() | nil + } + + field(:angleDegrees) + field(:crossAnywhere) + field(:crossingType) + field(:offset) + + field(:restriction, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto, + type: :list + ) + + field(:width) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePedestrianCrossingProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePedestrianCrossingProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePedestrianCrossingProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_physical_line_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_physical_line_proto.ex new file mode 100644 index 0000000000..6dc64b4ab4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_physical_line_proto.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePhysicalLineProto do + @moduledoc """ + Describes a single physical marker line. NOTE: PhysicalLineProto could be compared against one another by canonicalizing them via GetCanonicalPhysicalLine() in google3/geostore/base/internal/lane_marker.cc. Any fields that don't contribute to the definition of a physical line in the real world should be bundled with the annotative fields near the bottom and excluded in GetCanonicalPhysicalLine(). LINT.IfChange + + ## Attributes + + * `dashLengthMeters` (*type:* `number()`, *default:* `nil`) - Applicable for DASHED and DOTTED_DASHED lines. + * `gapColor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePaintedElementLogicalColorProto.t`, *default:* `nil`) - This should be rarely needed, but can represent patterns of alternating colors. + * `gapLengthMeters` (*type:* `number()`, *default:* `nil`) - Applicable for DASHED, DOTTED, and DOTTED_DASHED lines. + * `material` (*type:* `list(String.t)`, *default:* `nil`) - + * `paintColor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePaintedElementLogicalColorProto.t`, *default:* `nil`) - Color for the painted elements. Applicable to all types. + * `pattern` (*type:* `String.t`, *default:* `nil`) - + * `physicalLineToken` (*type:* `String.t`, *default:* `nil`) - A token that can be used to identify the version of the data about this marker line. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dashLengthMeters => number() | nil, + :gapColor => + GoogleApi.ContentWarehouse.V1.Model.GeostorePaintedElementLogicalColorProto.t() | nil, + :gapLengthMeters => number() | nil, + :material => list(String.t()) | nil, + :paintColor => + GoogleApi.ContentWarehouse.V1.Model.GeostorePaintedElementLogicalColorProto.t() | nil, + :pattern => String.t() | nil, + :physicalLineToken => String.t() | nil + } + + field(:dashLengthMeters) + + field(:gapColor, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePaintedElementLogicalColorProto) + + field(:gapLengthMeters) + field(:material, type: :list) + + field(:paintColor, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePaintedElementLogicalColorProto + ) + + field(:pattern) + field(:physicalLineToken) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePhysicalLineProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePhysicalLineProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePhysicalLineProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_point_curvature_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_point_curvature_proto.ex new file mode 100644 index 0000000000..121644bcaf --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_point_curvature_proto.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePointCurvatureProto do + @moduledoc """ + + + ## Attributes + + * `curvatureStatus` (*type:* `String.t`, *default:* `nil`) - + * `radiansPerMeter` (*type:* `number()`, *default:* `nil`) - Curvature in radians per meter. Negative is a curve to the left and positive is a curve to the right. + * `startPointFraction` (*type:* `number()`, *default:* `nil`) - How far along the line this curvature value starts to apply, in the format of decimal between 0 and 1. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :curvatureStatus => String.t() | nil, + :radiansPerMeter => number() | nil, + :startPointFraction => number() | nil + } + + field(:curvatureStatus) + field(:radiansPerMeter) + field(:startPointFraction) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePointCurvatureProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePointCurvatureProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePointCurvatureProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_point_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_point_proto.ex new file mode 100644 index 0000000000..1063646de8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_point_proto.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto do + @moduledoc """ + + + ## Attributes + + * `latE7` (*type:* `integer()`, *default:* `nil`) - + * `lngE7` (*type:* `integer()`, *default:* `nil`) - + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - NOTE: If removing metadata, remove 'option objc_class_prefix = "GS";' together. See cl/189921100. Field-level metadata for this point. NOTE: there are multiple PointProto fields in the Geo Schema. Metadata here is only expected to be present on FeatureProto.point[] and FeatureProto.center. + * `temporaryData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - A place for clients to attach arbitrary data to a point. Never set in MapFacts. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :latE7 => integer() | nil, + :lngE7 => integer() | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :temporaryData => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil + } + + field(:latE7) + field(:lngE7) + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:temporaryData, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_point_with_height_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_point_with_height_proto.ex new file mode 100644 index 0000000000..f6f4d12d7b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_point_with_height_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePointWithHeightProto do + @moduledoc """ + PointWithHeightProto encodes lat/lng through PointProto and contains altitude information. + + ## Attributes + + * `altitudeMeters` (*type:* `number()`, *default:* `nil`) - Altitude of this point is assumed to be relative to the ground level. + * `point` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :altitudeMeters => number() | nil, + :point => GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t() | nil + } + + field(:altitudeMeters) + field(:point, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePointWithHeightProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePointWithHeightProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePointWithHeightProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_political_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_political_proto.ex new file mode 100644 index 0000000000..cc8ba1f274 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_political_proto.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePoliticalProto do + @moduledoc """ + This protocol buffer is included from feature.proto as an optional message. Political features represent the different ways that people are divided into geographical regions. + + ## Attributes + + * `capital` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - Many political regions have a conceptual center (capitals of a country or a top-level division are examples). If set, the target feature must be a TYPE_LOCALITY feature. + * `claim` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - Feature IDs of the features claimed by this feature's government that are not necessarily included in the feature's geometry. + * `grossDomesticProductUsdMillions` (*type:* `float()`, *default:* `nil`) - The Gross Domestic Product of the political region measured in millions of current United States dollars. It must not be negative. + * `literacyPercent` (*type:* `number()`, *default:* `nil`) - Percentage of population that are literate within a political region. It must be between 0 and 100. + * `population` (*type:* `String.t`, *default:* `nil`) - The number of people in this political region. This field is intended to store accurate population, not an estimation such as representative value for population range. It must not be negative. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :capital => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :claim => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :grossDomesticProductUsdMillions => float() | nil, + :literacyPercent => number() | nil, + :population => String.t() | nil + } + + field(:capital, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:claim, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + field(:grossDomesticProductUsdMillions) + field(:literacyPercent) + field(:population) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePoliticalProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePoliticalProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePoliticalProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_poly_line_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_poly_line_proto.ex new file mode 100644 index 0000000000..c3c1b6d598 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_poly_line_proto.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePolyLineProto do + @moduledoc """ + + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this polyline. NOTE: there are multiple PolyLineProto fields in the Geo Schema. Metadata here is only expected to be present on FeatureProto.polyline[]. + * `temporaryData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - A place for clients to attach arbitrary data to a polyline. Never set in MapFacts. + * `vertex` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t)`, *default:* `nil`) - A sequence of vertices connected by geodesics (the equivalent of straight lines on the sphere). Adjacent vertices are connected by the shorter of the two geodesics that connect them, i.e. all edges are 180 degrees or less. Note that the edge definition becomes numerically unstable as the arc length approaches 180 degrees. Polylines are generally expected to be non-self-intersecting, but any such restriction is imposed by the user of the polyline rather than the polyline itself. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :temporaryData => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :vertex => list(GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t()) | nil + } + + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:temporaryData, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + field(:vertex, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePolyLineProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePolyLineProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePolyLineProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_polygon_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_polygon_proto.ex new file mode 100644 index 0000000000..1d7ff0f367 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_polygon_proto.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto do + @moduledoc """ + A general non-self-intersecting spherical polygon, consisting of one or more loops defining multiple disconnected regions possibly with holes. All loops should be oriented CCW around the region they define. This applies to the exterior loop(s) as well as any holes. Within MapFacts (and underlying infrastructure) the data fields may be replaced by a single shape_id stored in internal_feature. Any such PolygonProtos shouldn't be expected to work with public functions in //geostore/base/public/polygon.h. + + ## Attributes + + * `baseMeters` (*type:* `number()`, *default:* `nil`) - The polygon loops above are basically flat: each point has a latitude and a longitude but no altitude. We don't want to build real 3D models here, but we do want to be able to generate 2.5D models. A 2.5D model is built by translating the flat polygon upward some distance (base) then extruding it upward some additional distance (height). The elevation of the bottom of the extruded polygon (above ground level). + * `cellId` (*type:* `String.t`, *default:* `nil`) - ** DEPRECATED ** This is part of a splitting strategy for large polygons, which was never fully launched and we decided not to pursue. For features with very complex polygonal geometry, we break up the polygon into pieces that align with S2 cells at various levels. We do this for performance reasons as some geometry operations have quadratic complexity with regards to the total number of vertices. In these cases, we store the S2 cell ID corresponding to the piece of the overall polygon that is described by this specific PolygonProto message. Each polygon piece is expected to be fully contained by the S2 cell corresponding to this cell ID. However, note that the S2 cell ID is not required to correspond to the smallest S2 cell that fully contains the polygon (and often won't be). In addition, polygon pieces are required to not have any overlap (which translates to having entirely disjoint S2 cell IDs, i.e. one can not be parent (or grand parent, etc.) of another). + * `encoded` (*type:* `String.t`, *default:* `nil`) - Encoding of the polygon using S2Polygon::Encode()'s compressed representation. + * `heightMeters` (*type:* `number()`, *default:* `nil`) - The distance from the bottom of the extruded polygon to the top. + * `loop` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePolyLineProto.t)`, *default:* `nil`) - ** DEPRECATED ** We have switched to using exclusively the encoded form in the wire format to and from MapFacts, so this field should never be populated there. See go/encoded-polygons for more info. "Classic" polygon representation, defined by one or more loops. The last vertex of each polyline is implicitly connected to the first vertex. All loops should be specified in CCW order. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this polygon. + * `temporaryData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - A place for clients to attach arbitrary data to a polygon. Never set in MapFacts. + * `unsuitableForDisplay` (*type:* `boolean()`, *default:* `nil`) - Some polygons are known to be rough proxies for a feature's "real" polygonal representation. Such polygons are generally unsuitable for display. Rendering clients should not show these in most cases. Polygons unsuitable for display do have other uses, such as user location or containment analysis, or as an input to learning algorithms. This is an orthogonal concept to FeatureProto.synthetic_geometry, which only pertains to the method by which a polygon was created, rather than its fidelity to ground truth. For features that have multiple polygons, this bit should be consistently set to the same value on all polygons. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :baseMeters => number() | nil, + :cellId => String.t() | nil, + :encoded => String.t() | nil, + :heightMeters => number() | nil, + :loop => list(GoogleApi.ContentWarehouse.V1.Model.GeostorePolyLineProto.t()) | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :temporaryData => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :unsuitableForDisplay => boolean() | nil + } + + field(:baseMeters) + field(:cellId) + field(:encoded) + field(:heightMeters) + field(:loop, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePolyLineProto, type: :list) + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:temporaryData, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + field(:unsuitableForDisplay) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_pose_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_pose_proto.ex new file mode 100644 index 0000000000..be26eea6fd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_pose_proto.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePoseProto do + @moduledoc """ + A pose is an object's position in space, as well as its orientation. All fields except lat and lng are optional. All fields are in the WGS-84 ellipsoid, and rotations are right-hand rule (i.e. if the right hand thumb points along a vector, curled fingers indicate positive rotation direction). An un-rotated pose would be pointing due North, along the surface of the ellipsoid. Rotations are applied in the order: yaw, pitch, roll. Note that the rotation axes are rotated along with the model for each rotation step. WARNING: This proto is not meant to be used directly. Please use the provided libraries: //geostore/base/public/pose.h //java/com/google/geostore/base/Pose.java + + ## Attributes + + * `altitude` (*type:* `float()`, *default:* `nil`) - The height of the pose. A positive height is above the WGS-84 ellipsoid in meters; negative is below. + * `index` (*type:* `integer()`, *default:* `nil`) - The index of the PoseProto in a list of PoseProtos. + * `lat` (*type:* `float()`, *default:* `nil`) - The latitude of the pose in degrees [-90, 90]. + * `lng` (*type:* `float()`, *default:* `nil`) - The longitude of the pose in degrees (-180,180]. + * `pitch` (*type:* `float()`, *default:* `nil`) - The rotation around the longitude line East tangent in degrees [-90, 90]. + * `roll` (*type:* `float()`, *default:* `nil`) - The rotation around the latitude line North tangent in degrees (-180, 180]. + * `yaw` (*type:* `float()`, *default:* `nil`) - The rotation around the Up vector, from North, in degrees (-180, 180]. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :altitude => float() | nil, + :index => integer() | nil, + :lat => float() | nil, + :lng => float() | nil, + :pitch => float() | nil, + :roll => float() | nil, + :yaw => float() | nil + } + + field(:altitude) + field(:index) + field(:lat) + field(:lng) + field(:pitch) + field(:roll) + field(:yaw) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePoseProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePoseProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePoseProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_food_nutrition_facts.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_food_nutrition_facts.ex new file mode 100644 index 0000000000..0f4dd3b24d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_food_nutrition_facts.ex @@ -0,0 +1,92 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFacts do + @moduledoc """ + This message represents nutrition facts for a food dish. + + ## Attributes + + * `calories` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsCaloriesFact.t`, *default:* `nil`) - + * `cholesterol` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact.t`, *default:* `nil`) - Cholesterol information for a given food dish. + * `protein` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact.t`, *default:* `nil`) - Protein information for a given food dish. + * `sodium` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact.t`, *default:* `nil`) - Sodium information for a given food dish. + * `totalCarbohydrate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact.t`, *default:* `nil`) - Carbohydrate information for a given food dish. + * `totalFat` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact.t`, *default:* `nil`) - Fat information for a given food dish. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :calories => + GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsCaloriesFact.t() + | nil, + :cholesterol => + GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact.t() + | nil, + :protein => + GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact.t() + | nil, + :sodium => + GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact.t() + | nil, + :totalCarbohydrate => + GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact.t() + | nil, + :totalFat => + GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact.t() + | nil + } + + field(:calories, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsCaloriesFact + ) + + field(:cholesterol, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact + ) + + field(:protein, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact + ) + + field(:sodium, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact + ) + + field(:totalCarbohydrate, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact + ) + + field(:totalFat, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFacts do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFacts.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFacts do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_food_nutrition_facts_calories_fact.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_food_nutrition_facts_calories_fact.ex new file mode 100644 index 0000000000..71ba3feb4c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_food_nutrition_facts_calories_fact.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsCaloriesFact do + @moduledoc """ + This message denotes calories information with an upper bound and lower bound range. + + ## Attributes + + * `lowerAmount` (*type:* `integer()`, *default:* `nil`) - + * `unit` (*type:* `String.t`, *default:* `nil`) - Unit of the given calories information. + * `upperAmount` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lowerAmount => integer() | nil, + :unit => String.t() | nil, + :upperAmount => integer() | nil + } + + field(:lowerAmount) + field(:unit) + field(:upperAmount) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsCaloriesFact do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsCaloriesFact.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsCaloriesFact do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_food_nutrition_facts_nutrition_fact.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_food_nutrition_facts_nutrition_fact.ex new file mode 100644 index 0000000000..91a8fefff7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_food_nutrition_facts_nutrition_fact.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact do + @moduledoc """ + This message denotes nutrition information with an upper bound and lower bound range and can be represented by mass unit. + + ## Attributes + + * `lowerAmount` (*type:* `float()`, *default:* `nil`) - + * `unit` (*type:* `String.t`, *default:* `nil`) - Unit of the given nutrition information. + * `upperAmount` (*type:* `float()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lowerAmount => float() | nil, + :unit => String.t() | nil, + :upperAmount => float() | nil + } + + field(:lowerAmount) + field(:unit) + field(:upperAmount) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFactsNutritionFact do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_proto.ex new file mode 100644 index 0000000000..82260149c8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_proto.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoProto do + @moduledoc """ + + + ## Attributes + + * `priceList` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListProto.t)`, *default:* `nil`) - The actual food menus. This is a repeated field because a restaurant may offer multiple menus, e.g. for different language or for different available time, such as holidays vs non-holidays. + * `priceListUrl` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlListProto.t)`, *default:* `nil`) - All URLs that give price list information for this establishment. For food menus, this would represent menu_urls. Note that this field is a repeated list of UrlListProtos. Each UrlListProto instance in the list is intended to hold lists of URLs that are translations of the same URL. + * `status` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoStatus.t`, *default:* `nil`) - Message containing metadata about the verified status of the PriceInfo. Only verified listings should be displayed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :priceList => + list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListProto.t()) | nil, + :priceListUrl => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlListProto.t()) | nil, + :status => GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoStatus.t() | nil + } + + field(:priceList, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListProto, type: :list) + field(:priceListUrl, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlListProto, type: :list) + field(:status, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoStatus) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_status.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_status.ex new file mode 100644 index 0000000000..73672a96b9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_info_status.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoStatus do + @moduledoc """ + Providers of PriceInfo (e.g. SinglePlatform, YEXT) send verified and unverified listings. PriceInfoStatus is used to encapsulate this information. + + ## Attributes + + * `isVerified` (*type:* `boolean()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isVerified => boolean() | nil + } + + field(:isVerified) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoStatus do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoStatus.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoStatus do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_list_name_info_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_list_name_info_proto.ex new file mode 100644 index 0000000000..6c6614717a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_list_name_info_proto.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto do + @moduledoc """ + A PriceListNameInfoProto is used by PriceListProto and fields and messages contained in it for storing names, descriptions, languages, and IDs. The name field and the description field must be in the same language, as specified by the language field. None of the fields in this proto is required, although it is not expected to have the language field set unless there is a name or description. When the language field is not set, it is understood to be the preferred language of the locale where the establishment is located. An empty string for any of the fields is not allowed (as enforced by lints). + + ## Attributes + + * `description` (*type:* `String.t`, *default:* `nil`) - + * `id` (*type:* `String.t`, *default:* `nil`) - IDs are intended to be unique identifiers of PriceInfoLists, Sections, and Menu items. This is enforced by the ID_DUPLICATE_PRICE_LIST_ID lint. + * `language` (*type:* `String.t`, *default:* `nil`) - The external form of a Google International Identifiers Initiative (III) LanguageCode object. See google3/i18n/identifiers/languagecode.h for details. We place extra restrictions on languages in addition to what the III library requires. See go/geo-schema-reference/feature-properties/languages. + * `name` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :description => String.t() | nil, + :id => String.t() | nil, + :language => String.t() | nil, + :name => String.t() | nil + } + + field(:description) + field(:id) + field(:language) + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_list_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_list_proto.ex new file mode 100644 index 0000000000..7a615cacc9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_list_proto.ex @@ -0,0 +1,73 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListProto do + @moduledoc """ + A PriceListProto can be used to represent any type of price lists, one of which is a menu of food and drinks. It contains names and descriptions, together with its source URL list if it is extracted or attributed to that URL. The names and descriptions are represented using repeated PriceListNameInfo fields to allow versions in different languages. A PriceListProto may contain multiple sections; in the context of a food menu, this would be multiple menu sections, e.g. for breakfast, lunch, dinner, prix fixe, or dinner for two, etc. At least one menu section must be present. Each section contains a number of items; for food menus, it may be FoodMenuItems defined below. At least one item must be present in each section. + + ## Attributes + + * `aggregatorId` (*type:* `String.t`, *default:* `nil`) - For third party lists, represents the ID of the aggregator which provided this data. Optional. + * `availableTime` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t`, *default:* `nil`) - The time period when this price list is available. Establishments are not required to give available_time for any given price list, however, when this field is not set, the price list is understood as available any time the establishment is open. + * `cuisines` (*type:* `list(String.t)`, *default:* `nil`) - Cuisine information if the location the price lists attached to is an eligible feature for a food menu price list. Cuisine information should also only show up in a food price list. + * `nameInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t)`, *default:* `nil`) - The repeated name_info field is for price lists listed in multiple languages. When a price list has no names or descriptions, the size of the repeated field name_info may be 0. There should be at most one name_info for any given language. + * `section` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListSectionProto.t)`, *default:* `nil`) - Each price list may have multiple sections. Note that these sections within the same price list should most times contain only the same type of items for sale, e.g. all sections should usually contain only food items if the enclosing price list is representing food menu. However, sometimes such a requirement may be wrong, for example, McDonald's may sell burgers as well as toys, and the toys may be in its own section. Thus we don't enforce any requirement that all sections contain only the same type of items. + * `sourceUrl` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlListProto.t`, *default:* `nil`) - Where this price list comes from. If set, this must also be a member of the price_list_url field, and represents translations of a single URL. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :aggregatorId => String.t() | nil, + :availableTime => + GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t() | nil, + :cuisines => list(String.t()) | nil, + :nameInfo => + list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t()) | nil, + :section => + list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListSectionProto.t()) | nil, + :sourceUrl => GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlListProto.t() | nil + } + + field(:aggregatorId) + field(:availableTime, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto) + field(:cuisines, type: :list) + + field(:nameInfo, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto, + type: :list + ) + + field(:section, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListSectionProto, + type: :list + ) + + field(:sourceUrl, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlListProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_list_section_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_list_section_proto.ex new file mode 100644 index 0000000000..910c87bd79 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_list_section_proto.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListSectionProto do + @moduledoc """ + A PriceListSectionProto is used to store a section of a PriceListProto. For example, for a PriceListProto representing a food menu, a PriceListSectionProto represents a menu section. Each PriceListSectionProto contains a repeated list of items for sale; these items can be products or services. Right now every section should contain items of one type. + + ## Attributes + + * `callToAction` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreCallToActionProto.t`, *default:* `nil`) - Call to action for the section. + * `foodItem` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemProto.t)`, *default:* `nil`) - To store food and drink items when the containing PriceListSectionProto is a food menu section. + * `item` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreComposableItemProto.t)`, *default:* `nil`) - To store any items when the containing PriceListSectionProto is not food / legacy services. + * `itemType` (*type:* `list(String.t)`, *default:* `nil`) - This has to have at most one value. + * `language` (*type:* `String.t`, *default:* `nil`) - The external form of a Google International Identifiers Initiative (III) LanguageCode object. See google3/i18n/identifiers/languagecode.h for details. We place extra restrictions on languages in addition to what the III library requires. See go/geo-schema-reference/feature-properties/languages. When set, represents the language of the section and its items. Any section and item level name infos must match this language. Optional. + * `media` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto.t)`, *default:* `nil`) - One or more media items (photos, videos, etc.) describing this section / category. + * `nameInfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t)`, *default:* `nil`) - The repeated name_info field is for price list sections listed in multiple languages. When a price list section has no names or descriptions, the size of the repeated field name_info may be 0. There should be at most one name_info for any given language. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :callToAction => + GoogleApi.ContentWarehouse.V1.Model.GeostoreCallToActionProto.t() | nil, + :foodItem => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemProto.t()) | nil, + :item => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreComposableItemProto.t()) | nil, + :itemType => list(String.t()) | nil, + :language => String.t() | nil, + :media => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto.t()) | nil, + :nameInfo => + list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t()) | nil + } + + field(:callToAction, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCallToActionProto) + field(:foodItem, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemProto, type: :list) + field(:item, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreComposableItemProto, type: :list) + field(:itemType, type: :list) + field(:language) + field(:media, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto, type: :list) + + field(:nameInfo, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListSectionProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListSectionProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListSectionProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_range_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_range_proto.ex new file mode 100644 index 0000000000..320eca90de --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_price_range_proto.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto do + @moduledoc """ + This message represents a price range of an attribute. The meaning of the price bounds is domain specific. But mainly they are soft bounds for a normal usage. E.g. "restaurant prices" are subject to an higher level of "soft" bounds than "museum admission price" + + ## Attributes + + * `currency` (*type:* `String.t`, *default:* `nil`) - Currency code for the price range: a valid currency code from i18n/identifiers/currencycode.h. Lower and upper price are both assumed to use the same currency. + * `lowerPrice` (*type:* `float()`, *default:* `nil`) - This message allows unbounded price ranges. e.g. Lower_price is undefined. At least one of the two prices must be set for the price range to be meaningful. + * `units` (*type:* `String.t`, *default:* `nil`) - clang-format on + * `upperPrice` (*type:* `float()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :currency => String.t() | nil, + :lowerPrice => float() | nil, + :units => String.t() | nil, + :upperPrice => float() | nil + } + + field(:currency) + field(:lowerPrice) + field(:units) + field(:upperPrice) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_property_value_status_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_property_value_status_proto.ex new file mode 100644 index 0000000000..c7a809289c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_property_value_status_proto.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostorePropertyValueStatusProto do + @moduledoc """ + PropertyValueStatusProto specifies what we know about a field corresponding to FeaturePropertyId's value in the absence of any specific value. For now, it just indicates when we know that there is no value. Eventually it might also indicate that we know it has value, just not what it is, etc. + + ## Attributes + + * `propertyId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeaturePropertyIdProto.t`, *default:* `nil`) - The property ID whose value status is defined by this proto. + * `valueStatus` (*type:* `String.t`, *default:* `nil`) - `value_status` specifies whether the feature has a value for the property. This should always be set to something other than the default value (`PROPERTY_VALUE_STATUS_UNSPECIFIED`). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :propertyId => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeaturePropertyIdProto.t() | nil, + :valueStatus => String.t() | nil + } + + field(:propertyId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeaturePropertyIdProto) + field(:valueStatus) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePropertyValueStatusProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostorePropertyValueStatusProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostorePropertyValueStatusProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_provenance_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_provenance_proto.ex new file mode 100644 index 0000000000..aac2b056c6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_provenance_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreProvenanceProto do + @moduledoc """ + This is a minimal version of SourceInfoProto. + + ## Attributes + + * `dataset` (*type:* `String.t`, *default:* `nil`) - The dataset from which this the referenced data was created. The content of this string will be determined by the data provider, and may encode extra information, such as data confidence. + * `provider` (*type:* `String.t`, *default:* `nil`) - The data provider from which the referenced data was generated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataset => String.t() | nil, + :provider => String.t() | nil + } + + field(:dataset) + field(:provider) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreProvenanceProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreProvenanceProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreProvenanceProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_rank_details_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_rank_details_proto.ex new file mode 100644 index 0000000000..c4674a335e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_rank_details_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRankDetailsProto do + @moduledoc """ + This message is embedded within a FeatureProto. It has rank calculation details such as available rank signals and rank signal mixer used to compute final rank. For more details, see the Oyster Rank wiki page: http://wiki.corp.google.com/twiki/bin/view/Main/OysterRank + + ## Attributes + + * `signal` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRankSignalProto.t)`, *default:* `nil`) - A list of signals. Each one is extracted separately by a SignalExtractor. + * `signalMixerType` (*type:* `String.t`, *default:* `nil`) - The signal mixer that was used to calculate the rank. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :signal => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRankSignalProto.t()) | nil, + :signalMixerType => String.t() | nil + } + + field(:signal, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRankSignalProto, type: :list) + field(:signalMixerType) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRankDetailsProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRankDetailsProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRankDetailsProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_rank_signal_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_rank_signal_proto.ex new file mode 100644 index 0000000000..aeabbd10e5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_rank_signal_proto.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRankSignalProto do + @moduledoc """ + This message is embedded in the RankDetailsProto (below). It represents one rank signal, which is a floating point value estimating the Oyster Rank of the feature. + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this signal. + * `rank` (*type:* `number()`, *default:* `nil`) - A value in the range [0, 1] estimating Oyster Rank according to this signal. Non-provider specific signals (e.g. SIGNAL_POPULATION) are interpreted by some common code in the ranking pipeline. Because of that, data providers should leave this field empty when setting such signals (so that the rank assignment can be uniform across all features regardless of contributing data providers). On the other hand, provider-specific signals (e.g. SIGNAL_ZENRIN_CITY_CATEGORY) are required to specify the rank field (it is not optional for them). That is because no code other than that of the provider itself will be able to fill in a meaningful value later on. We don't want clients to be reading from the raw_scalar / raw_string fields to interpret the data. + * `rawScalar` (*type:* `number()`, *default:* `nil`) - The raw scalar value that was used to compute 'rank' above. The meaning of this attribute changes depending on the signal type. + * `rawString` (*type:* `String.t`, *default:* `nil`) - The raw string value that was used to compute 'rank' above. The meaning of this attribute changes depending on the signal type. + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :rank => number() | nil, + :rawScalar => number() | nil, + :rawString => String.t() | nil, + :type => String.t() | nil + } + + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:rank) + field(:rawScalar) + field(:rawString) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRankSignalProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRankSignalProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRankSignalProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_raw_data_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_raw_data_proto.ex new file mode 100644 index 0000000000..73ae42089a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_raw_data_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRawDataProto do + @moduledoc """ + A RawDataProto is a key-value pair that represents arbitrary source data from a particular provider. Raw data can be attached to features using their source_info field. + + ## Attributes + + * `key` (*type:* `String.t`, *default:* `nil`) - The key associated with this data item. For source data in shape file format, this will typically be a column name. Keys need to be unique with respect to a particular data source (see DataSourceProto), but they do not need to be globally unique. You can look up the documentation for a key (e.g. a longer label and description) by following the source_id link of the parent SourceInfoProto, which takes you to a TYPE_DATA_SOURCE feature, and then looking up the corresponding RawMetadataProto object for this key in that feature's optional data_source field. + * `valueString` (*type:* `String.t`, *default:* `nil`) - All data items are represented as strings, the logic being that it is easy to convert other data types to strings, and there is no need to access this data efficiently. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :key => String.t() | nil, + :valueString => String.t() | nil + } + + field(:key) + field(:valueString) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRawDataProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRawDataProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRawDataProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_raw_metadata_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_raw_metadata_proto.ex new file mode 100644 index 0000000000..82a30d9173 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_raw_metadata_proto.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRawMetadataProto do + @moduledoc """ + + + ## Attributes + + * `conflationMethod` (*type:* `String.t`, *default:* `nil`) - Method to use when conflating together RawDataProto values at the same key NB: If you add a new ConflationMethod, then you must add the corresponding logic to MergeRawData to conflate the RawDataProto values using this method. + * `description` (*type:* `String.t`, *default:* `nil`) - Self-contained documentation about what this field represents and how its values are encoded. + * `key` (*type:* `String.t`, *default:* `nil`) - The key being described. + * `label` (*type:* `String.t`, *default:* `nil`) - A longer, human-readable name associated with this key. The label might be used in a data explorer tool, for example. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conflationMethod => String.t() | nil, + :description => String.t() | nil, + :key => String.t() | nil, + :label => String.t() | nil + } + + field(:conflationMethod) + field(:description) + field(:key) + field(:label) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRawMetadataProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRawMetadataProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRawMetadataProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_rect_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_rect_proto.ex new file mode 100644 index 0000000000..2d3a00a91c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_rect_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRectProto do + @moduledoc """ + A latitude-longitude rectangle, represented as two diagonally opposite points "lo" and "hi". The rectangle is considered to be a closed region, i.e. it includes its boundary. The latitude bounds must be in the range -90 to 90 degrees inclusive, and the longitude bounds must be in the range -180 to 180 degrees inclusive. Various cases include: - If lo == hi, the rectangle consists of a single point. - If lo.longitude > hi.longitude, the longitude range is "inverted" (the rectangle crosses the 180 degree longitude line). - If lo.longitude == -180 degrees and hi.longitude = 180 degrees, the rectangle includes all longitudes. - If lo.longitude = 180 degrees and hi.longitude = -180 degrees, the longitude range is empty. - If lo.latitude > hi.latitude, the latitude range is empty. + + ## Attributes + + * `hi` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t`, *default:* `nil`) - + * `lo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :hi => GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t() | nil, + :lo => GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto.t() | nil + } + + field(:hi, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto) + field(:lo, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePointProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRectProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRectProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRectProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_region_specific_name_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_region_specific_name_proto.ex new file mode 100644 index 0000000000..3862e8d1e7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_region_specific_name_proto.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRegionSpecificNameProto do + @moduledoc """ + This protocol buffer supports a name per region per language, allowing it to represent the name of a given feature in different regions and languages. For example, the Persian Gulf has different English names in UAE versus Lebanon. + + ## Attributes + + * `displayableAsAlternativeName` (*type:* `boolean()`, *default:* `nil`) - If true, this region specific name should be appended, in parentheses, to the appropriate name from FeatureProto.name, for the default rest of world behavior. + * `name` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto.t`, *default:* `nil`) - Name to be used for this feature in a specific region and language. + * `regionCode` (*type:* `String.t`, *default:* `nil`) - Region code (or other identifier) for the region. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayableAsAlternativeName => boolean() | nil, + :name => GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto.t() | nil, + :regionCode => String.t() | nil + } + + field(:displayableAsAlternativeName) + field(:name, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto) + field(:regionCode) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRegionSpecificNameProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRegionSpecificNameProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRegionSpecificNameProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_regulated_area_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_regulated_area_proto.ex new file mode 100644 index 0000000000..f860cc9555 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_regulated_area_proto.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRegulatedAreaProto do + @moduledoc """ + A collection of information that applies to a polygonal area. + + ## Attributes + + * `restriction` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto.t)`, *default:* `nil`) - The set of restrictions that apply to a zone. These restrictions may limit the routability of every segment contained within the defined feature.polygon. Repeated restrictions are treated collectively as an OR meaning that segments in the zone are only routable if none of the restrictions apply. If any segments within the defined polygon should not have these restrictions applied, they must list this regulated area's feature id in their feature.exempt_regulated_area field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :restriction => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto.t()) | nil + } + + field(:restriction, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRegulatedAreaProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRegulatedAreaProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRegulatedAreaProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_relation_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_relation_proto.ex new file mode 100644 index 0000000000..8fb273a229 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_relation_proto.ex @@ -0,0 +1,74 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRelationProto do + @moduledoc """ + This message is embedded within a FeatureProto, and represents a geographic or logical relationship of that feature to some other feature. Note that some relation types are there purely for the purpose of grouping together other relation types. They are noted as ABSTRACT in comments. Other relation types are no longer supported / in use. They are noted as DEPRECATED in comments (and marked with the standard deprecated option, too). Other relation types are reserved for future use or just not intended for use at all, for various internal reasons. They are noted as RESERVED in comments. WARNING: Updates to this proto within a FeatureProto's related_feature field handled by standalone pipelines and are NOT atomic with regard to updates to the features being referenced; we do not guarantee that a given MapFacts snapshot will be consistent between this field and the related features. + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this relation. + * `otherFeatureCountryCode` (*type:* `String.t`, *default:* `nil`) - If and only if the other feature is of TYPE_COUNTRY, the 2-letter country code. This is the FLAG_COUNTRY_CODE_2 name of the country component. + * `otherFeatureId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - The feature ID of the feature to which we're relating. WARNING: the related feature does not necessarily have a bound that encloses this feature, so in a bucketing MapReduce, you may not be able to follow all relationships. Relations that use strong references are annotated above but you can also refer to IsRelationStrong() in geostore/base/public/relation.h. + * `otherFeatureName` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto.t)`, *default:* `nil`) - RESERVED + * `otherFeatureTerritorialAdministrator` (*type:* `String.t`, *default:* `nil`) - If and only if the other feature is of TYPE_DISPUTED_AREA, the territorial administrator found in its GeopoliticalAttachmentProto.administered_by field, if any. Since this string is copied exactly, it may be a 2-letter country code or another type of descriptive string. + * `otherFeatureType` (*type:* `integer()`, *default:* `nil`) - The type of the feature to which we're relating. + * `overlapFraction` (*type:* `number()`, *default:* `nil`) - ** DEPRECATED ** If relation is exactly RELATION_OVERLAPS but not any of its subcategories, overlap_fraction contains an estimate of the fraction of the geometry of this feature that intersects with the other feature, ranging from 0.0 to 1.0. Note that this is a rough estimate based on cell coverings, and may not be very accurate. In particular, values of 0.0 and 1.0 are possible, even though in principle they should not be. + * `relation` (*type:* `String.t`, *default:* `nil`) - The relationship of the feature that contains this RelationProto to the feature other_feature_id. Note the relation_is_reversed field below. Some relations imply weak references, other strong ones. Strong references are annotated above but you can also refer to IsRelationStrong() in geostore/base/public/relation.h. + * `relationIsReversed` (*type:* `boolean()`, *default:* `nil`) - RESERVED + * `temporaryData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - A place for clients to attach arbitrary data to a relation. Never set in MapFacts. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :otherFeatureCountryCode => String.t() | nil, + :otherFeatureId => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :otherFeatureName => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto.t()) | nil, + :otherFeatureTerritorialAdministrator => String.t() | nil, + :otherFeatureType => integer() | nil, + :overlapFraction => number() | nil, + :relation => String.t() | nil, + :relationIsReversed => boolean() | nil, + :temporaryData => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil + } + + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:otherFeatureCountryCode) + field(:otherFeatureId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:otherFeatureName, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto, type: :list) + field(:otherFeatureTerritorialAdministrator) + field(:otherFeatureType) + field(:overlapFraction) + field(:relation) + field(:relationIsReversed) + field(:temporaryData, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRelationProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRelationProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRelationProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_restriction_group_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_restriction_group_proto.ex new file mode 100644 index 0000000000..0149df0bcd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_restriction_group_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionGroupProto do + @moduledoc """ + A restriction group represents common properties of a set of restrictions on segments that are associated with the same underlying cause across a geographic region. Every segment referenced by this restriction group should have at least one restriction that refers backs to this restriction group. The standard feature properties have the following interpretations: name - A name that represents the name for this restriction group. kg_property - A reference back to a KG event in case this restriction group belongs to an event in KG. /geo/type/restriction_group/associated_event contains a mid to the associated event. + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this restriction group. + * `segment` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - FeatureId of all segments that have a RestrictionProto referring back to this RestrictionGroup. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :segment => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil + } + + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:segment, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionGroupProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionGroupProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionGroupProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_restriction_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_restriction_proto.ex new file mode 100644 index 0000000000..e4ab9b7f9c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_restriction_proto.ex @@ -0,0 +1,88 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto do + @moduledoc """ + A restriction is an expression that limits when an action can be taken. Each restriction has a set of conditions. If all of the conditions are true, then the restriction applies and the action cannot be taken. For example, the restriction "no turns 3-5pm except buses" would have two conditions: "time is 3-5pm" and "vehicle is not a bus". If both of these conditions apply, the restriction is true, and the turn is prohibited. Multiple restrictions may apply to the same action. Clients handle this by always declaring RestrictionProto as a "repeated" element. The semantics of having multiple restrictions are that if any restriction applies, then the action cannot be taken. In other words, restrictions are OR-ed together. Putting all of this together, a set of RestrictionProtos can be interpreted as an bool expression in disjunctive normal form: (A and B) or (D and E and F) or (G and H) The action is prohibited if this expression is true. Note that a restriction with no conditions is always true, i.e. its action is always prohibited. NOTE: RestrictionProtos are often compared against one another (e.g. to check for duplicate/redundant restrictions) by canonicalizing them via GetCanonicalRestriction() in google3/geostore/base/internal/restriction.cc. Any fields that don't contribute to the definition of a restriction in the real world should be bundled with the annotative fields near the bottom and excluded in GetCanonicalRestriction(). LINT.IfChange + + ## Attributes + + * `autonomousDrivingProducts` (*type:* `list(String.t)`, *default:* `nil`) - The restriction only applies in these specific autonomous driving product scenarios. NOTE: This should only be set on restrictions with TRAVEL_AUTONOMOUS_VEHICLE travel mode. + * `intersectionGroup` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - Actually *required* if style=STYLE_IN_OUT, otherwise forbidden. Typically the intersection group type is artifact, but either artifact or logical groups can be used for STYLE_IN_OUT restrictions. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this restriction. + * `restrictionGroup` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - Restriction group this restriction belongs to. + * `restrictionToken` (*type:* `String.t`, *default:* `nil`) - A token that can be used to identify the version of the data about this restriction. + * `schedule` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t`, *default:* `nil`) - When specified, restriction applies only at particular times (operating hours or times of the year: reversing lanes, seasonal roads, no left turns from 3-5pm Mon-Fri except holidays). Otherwise, restriction is in effect at all times. + * `scope` (*type:* `String.t`, *default:* `nil`) - The scope that the restriction applies to. - SCOPE_DIRECTION means the segment/sibling pair is restricted in the direction of the segment that contains this RestrictionProto. For segment/sibling pairs with pedestrian facilities (and thus side-of-road routing) the RestrictionProto restricts both facilities in the direction of the segment (assuming that the restriction applies to travel mode TRAVEL_PEDESTRIAN). - SCOPE_SIDE means the RestrictionProto applies only to the side of road that the containing segment represents. That sibling's pedestrian facility is restricted in both directions. Schema constraints: - SCOPE_SIDE must be set if and only if travel_mode == [TRAVEL_PEDESTRIAN] and the segment containing the restriction has the pedestrian_facility field set and is not set to PEDESTRIAN_FACILITY_UNKNOWN. Such restrictions must have no subpath. - All other restrictions must have this field set to SCOPE_DIRECTION (whether explicitly or implicitly). This distinction is necessary for cases such as pedestrian facility on one-way segment/sibling roads. + * `style` (*type:* `String.t`, *default:* `nil`) - Restriction Style defines the semantics of the subpath field, as defined above in the documentation of subpath. + * `subpath` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - "subpath" specifies the GeoStore segments that this restriction applies to, according to the restriction_style field below. Segments that are referenced by this subpath field also refer to this feature back via the same subpath field. For all styles of restriction, all segments in the subpath must have identical copies of the restriction. In other words, restrictions are duplicated along every segment in the subpath. Note that subpaths of length 1 do not have any purpose and are disallowed. Note that it is possible to represent restrictions either using STYLE_CONTIGUOUS, or depending on the length of the subpath, one of the more specific STYLE_SINGLE, STYLE_TURN, or STYLE_IN_OUT. New code should use the more specific alternatives if possible, as they support instant updates. For restriction_style == STYLE_CONTIGUOUS (the default): "subpath" can either be empty, for a single-segment restriction, or it specifies exactly the sequence of segments which this restriction applies to. The subpath may be used to specify a turn restriction (a subpath of length 2) or to prohibit more complex maneuvers. For example, when merging onto a road from the right-hand side it may not be possible to make an immediate left turn due to insufficient time to cross the intervening lanes or the presence of a physical barrier. This would be indicated by a subpath restriction of length 3 or more. For restriction_style == STYLE_SINGLE: The subpath field of the Restriction must be empty. The restriction applies only to the segment it is attached to. There must not be an intersection group specified. For restriction_style == STYLE_TURN: The subpath field of the Restriction must contain exactly two segments. The first is called the "in_segment", the second is the "out_segment". They must be contiguous, i.e. the end intersection of the in_segment is the start intersection of the out_segment. The restriction applies only to a direct maneuver from the in_segment to the out_segment. Other paths from the in_segment to the out_segment are not restricted. There must not be an intersection group specified. For restriction_style == STYLE_IN_OUT: The subpath field of the Restriction must contain exactly two segments. The first is called the "in_segment", the second is the "out_segment". Note that the two segments define paths, but may not actually be one. The end intersection of the in_segment must be in an intersection group which also contains the start intersection of the out_segment. The in- and out-segments are not required to be adjacent, but may be. Either way, the restriction applies to any path from the in_segment to the out_segment through the intersection group, not just direct turns. The intersection_group must be specified. Note that clients which read restrictions and need to know which paths are restricted by a given IN_OUT restriction must expand the IN_OUT restriction by finding all paths through the intersection group from the in_segment to the out_segment. + * `temporaryData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - A place for clients to attach arbitrary data to a restriction. Never set in MapFacts. + * `travelMode` (*type:* `list(String.t)`, *default:* `nil`) - Restriction applies only to the given travel modes. This field should always be set, but may be missing in old data. WARNING: Restrictions with no travel modes are DEPRECATED. Historically, no travel modes has meant "all travel modes", except they didn't really even mean that, because Pathfinder would use a complex set of heuristics to interpret the "correct" travel modes. Pathfinder currently (last updated August 2013) has heuristics to cope with incomplete data that reduce or extend application of the specified restrictions to pedestrians or bicycles. We are actively working to remove these heuristics and replace them with explicit, correct travel modes in the data. See b/8746491. + * `type` (*type:* `String.t`, *default:* `nil`) - LINT.ThenChange(//depot/google3/google/geo/entities/v1/fields/segment.proto) clang-format on The type of restriction. This is not a condition, but rather tells you what kind of restriction it is. This field should always be set. + * `vehicleAttributeFilter` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreVehicleAttributeFilterProto.t`, *default:* `nil`) - The restriction only applies to vehicles that meet all of the attributes defined here. If this is empty, it does not affect the scope of the restriction. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :autonomousDrivingProducts => list(String.t()) | nil, + :intersectionGroup => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :restrictionGroup => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :restrictionToken => String.t() | nil, + :schedule => GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t() | nil, + :scope => String.t() | nil, + :style => String.t() | nil, + :subpath => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :temporaryData => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :travelMode => list(String.t()) | nil, + :type => String.t() | nil, + :vehicleAttributeFilter => + GoogleApi.ContentWarehouse.V1.Model.GeostoreVehicleAttributeFilterProto.t() | nil + } + + field(:autonomousDrivingProducts, type: :list) + field(:intersectionGroup, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:restrictionGroup, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:restrictionToken) + field(:schedule, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto) + field(:scope) + field(:style) + field(:subpath, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + field(:temporaryData, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + field(:travelMode, type: :list) + field(:type) + + field(:vehicleAttributeFilter, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreVehicleAttributeFilterProto + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_rights_status_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_rights_status_proto.ex new file mode 100644 index 0000000000..0040a1d946 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_rights_status_proto.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRightsStatusProto do + @moduledoc """ + Proto used to represent rights for FeatureProto. See go/geo-rights for more details. NOTE: Use google3/geostore/provenance/public/rights.h or google3/java/com/google/geostore/provenance/rights/Rights.java instead of accessing this proto directly. + + ## Attributes + + * `fieldWithRights` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldWithRightsProto.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fieldWithRights => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldWithRightsProto.t()) | nil + } + + field(:fieldWithRights, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldWithRightsProto, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRightsStatusProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRightsStatusProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRightsStatusProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_road_conditional_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_road_conditional_proto.ex new file mode 100644 index 0000000000..28fe035084 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_road_conditional_proto.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadConditionalProto do + @moduledoc """ + A RoadConditionalProto defines conditions that affect when the road traversal information is applicable. + + ## Attributes + + * `timeSchedule` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t`, *default:* `nil`) - Specifies what times the information is applicable. This can be specific times (3-5 PM) or days of the week (Mon - Fri), as well as more general times like school hours, dusk to dawn, etc. If no value is set, the restriction is applicable at all times. + * `vehicleAttribute` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreVehicleAttributeFilterProto.t`, *default:* `nil`) - Additional attributes that apply to the applied vehicle types. + * `vehicleType` (*type:* `list(String.t)`, *default:* `nil`) - Restrictions applying to specific types of vehicles. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :timeSchedule => + GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t() | nil, + :vehicleAttribute => + GoogleApi.ContentWarehouse.V1.Model.GeostoreVehicleAttributeFilterProto.t() | nil, + :vehicleType => list(String.t()) | nil + } + + field(:timeSchedule, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto) + + field(:vehicleAttribute, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreVehicleAttributeFilterProto + ) + + field(:vehicleType, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadConditionalProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadConditionalProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadConditionalProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_road_monitor_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_road_monitor_proto.ex new file mode 100644 index 0000000000..2a9b34bea5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_road_monitor_proto.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadMonitorProto do + @moduledoc """ + A road monitor is a device that observes traffic for road violations like speeding or running a red light. These are modeled within MapFacts so that navigation services can warn users when they drive along road segments that are monitored. + + ## Attributes + + * `monitoredRoad` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - The TYPE_ROAD segment features that this road monitor may observe. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :monitoredRoad => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil + } + + field(:monitoredRoad, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadMonitorProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadMonitorProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadMonitorProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_road_sign_component_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_road_sign_component_proto.ex new file mode 100644 index 0000000000..e6ad1317ee --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_road_sign_component_proto.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadSignComponentProto do + @moduledoc """ + Below is some horrible ASCII art and a description of the components of a road sign. +-------------------+ | A11 E50 Paris | | Chartres | +-------------------+ This sign would be composed of four components (all of them text components, the only option we support for now). The three in the first row would all have a "major_position" of zero. Their "minor_position" values would be zero for "A11", one for "E50", and two for "Paris". The component in the second row would have "major_position" value of one. This message provides the details of a single component of a road sign. A component defines its position within a sign, its type, and its content. + + ## Attributes + + * `featureId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - The id of the feature referred to by this component, typically the route or locality feature this sign points towards. In the ASCII art example above, this field would contain the id for the routes A11 and E50 and the localities Chartres and Paris in the corresponding component. + * `featureType` (*type:* `integer()`, *default:* `nil`) - The type of the feature referred to by this component. If feature_id is specified type of that feature should be the same as this field. + * `majorPosition` (*type:* `integer()`, *default:* `nil`) - This is the "major" position of this component within the set of components that make up a sign. This number can be thought of as the "row" of the sign on which the component appears, but no guarantees are made that there is a one-to-one mapping between "major_position" and the rows of information on the actual sign being modeled. A "major_position" value of zero would indicate that the component is near the top of the sign. + * `minorPosition` (*type:* `integer()`, *default:* `nil`) - This is the position of a component within the components of a sign that share a common "major_position". It can be though of as the "column" of the component, but like "major_position", no guarantees are made regarding its mapping to reality. For data sources that don't provide enough information to determine a component's major and minor positions, major position should be populated and minor position should not be present. A "minor_position" value of zero would indicate that the component is near the "beginning" of the sign. In countries where signs are read from left to right, "minor_position" zero would be near the left side of the sign. + * `routeDirection` (*type:* `String.t`, *default:* `nil`) - The direction of traffic for the referenced TYPE_ROUTE feature. + * `semanticType` (*type:* `String.t`, *default:* `nil`) - The semantic type of sign. + * `text` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto.t`, *default:* `nil`) - If this sign component is of type "TYPE_TEXT", this field contains the text of the component. A NameProto is used to allow language and flags to be associated with the text. + * `type` (*type:* `String.t`, *default:* `nil`) - This type of content represented by this sign component. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :featureId => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :featureType => integer() | nil, + :majorPosition => integer() | nil, + :minorPosition => integer() | nil, + :routeDirection => String.t() | nil, + :semanticType => String.t() | nil, + :text => GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto.t() | nil, + :type => String.t() | nil + } + + field(:featureId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:featureType) + field(:majorPosition) + field(:minorPosition) + field(:routeDirection) + field(:semanticType) + field(:text, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadSignComponentProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadSignComponentProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadSignComponentProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_road_sign_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_road_sign_proto.ex new file mode 100644 index 0000000000..41f3f314e0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_road_sign_proto.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadSignProto do + @moduledoc """ + A RoadSignProto holds the details of a road sign. Currently this is simply a list of the items that appear on the sign and their relative position. + + ## Attributes + + * `component` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadSignComponentProto.t)`, *default:* `nil`) - The list of components for a single road sign. A sign may be composed of multiple components, each with its own position and content. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :component => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadSignComponentProto.t()) | nil + } + + field(:component, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadSignComponentProto, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadSignProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadSignProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadSignProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_route_association_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_route_association_proto.ex new file mode 100644 index 0000000000..695c38cd5d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_route_association_proto.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRouteAssociationProto do + @moduledoc """ + This protocol buffer holds metadata about the association between a segment and a route. + + ## Attributes + + * `displayPreference` (*type:* `String.t`, *default:* `nil`) - clang-format on + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for the route association. + * `route` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - Identifies the route feature to which this metadata applies. This is one of the routes the segment refers to via the SegmentProto.route field. + * `routeDirection` (*type:* `String.t`, *default:* `nil`) - The direction of the TYPE_ROUTE feature in this route association. A small number of countries (mostly just the United States, Mexico, and Canada) use directional routes. For example, in the United States highway US-1 is referred to as US-1 North or US-1 South on the sides where flow of traffic moves in those directions. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayPreference => String.t() | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :route => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :routeDirection => String.t() | nil + } + + field(:displayPreference) + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:route, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:routeDirection) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRouteAssociationProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRouteAssociationProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRouteAssociationProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_route_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_route_proto.ex new file mode 100644 index 0000000000..6ce33a0bc2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_route_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreRouteProto do + @moduledoc """ + A route is a collection of segments that forms a logical group - usually a named road or highway. Segments can belong to more than one route, and the segments of one route may be a subset of the segments of another route (e.g. I-5 N is a subset of I-5). Segments in the collection that define the route do not need to constitute a single uninterrupted line, there can be disconnects. The standard feature properties are interpreted as follows: name - Routes should have one or more names. (While unnamed roads certainly exist in the real world, we choose not to create route features for such roads. Instead, the unnamed segments are merely not part of any route.) address - This should always be empty. type - Specifies a particular route subtype, see feature.proto. point - This should always be empty. polyline - This should always be empty. polygon - This should always be empty. child - The pairs of segments that belong to this route (a given route should always reference segments in both travel directions). + + ## Attributes + + * `childType` (*type:* `integer()`, *default:* `nil`) - The feature type of the route children. Should be set if and only if all children are of the same feature type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :childType => integer() | nil + } + + field(:childType) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRouteProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreRouteProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreRouteProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_school_district_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_school_district_proto.ex new file mode 100644 index 0000000000..56fdfba100 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_school_district_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreSchoolDistrictProto do + @moduledoc """ + This protocol buffer holds school district specific attributes for features of TYPE_SCHOOL_DISTRICT. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSchoolDistrictProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreSchoolDistrictProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSchoolDistrictProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_segment_path_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_segment_path_proto.ex new file mode 100644 index 0000000000..1f1e1a7f08 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_segment_path_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentPathProto do + @moduledoc """ + A segment path describes a path through a short set of segments. The segment path can be used for any purpose. At the moment, only TYPE_ROAD_SIGN features can have associated segment paths: The segment path lists the segments that refer to the sign. These are the segments for which the sign is applicable. The sign's physical location is independent of the segments in the path. + + ## Attributes + + * `subpath` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - Specifies a sequence of feature ids of GeoStore segments. The feature ids are ordered. The path "AB" is not the same as the path "BA". The segments along the path are assumed to be connected via the appropriate intersections. The segment features that are referenced by this subpath refer to this feature back via the road_sign field in segment proto extension. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :subpath => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil + } + + field(:subpath, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentPathProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentPathProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentPathProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_segment_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_segment_proto.ex new file mode 100644 index 0000000000..23b980fb4d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_segment_proto.ex @@ -0,0 +1,267 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentProto do + @moduledoc """ + --------------------------------------------------------------------------- WARNING - if you add new fields to SegmentProto (or to other protos used by SegmentProto), you need to: - ensure that the ShortSegmentsMerger class (in geostore/tools/internal/mr-mergesegments.cc) is aware of them, otherwise the new fields will be discarded randomly. - consider whether they should be cleared in the ClearFeature() function (in maps/render/process-high-priority-roads.cc) if they are irrelevant for rendering high priority roads at far-out zoom levels. - update the test cases that ensure these two packages know all the SegmentProto fields in both mr-mergesegments_test.cc and maps/render/process-high-priority-roads_test.cc or you will break the VersaTile build. --------------------------------------------------------------------------- + + ## Attributes + + * `intersection` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - The intersection feature corresponding to the destination of this segment. Intersections are used to represent the connectivity between segments. Each intersection stores the segment ids of all the incoming and outgoing segments that meet at that intersection. Turns can be made from this segment to any of the outgoing segments of its intersection, unless there is a restriction that explicitly disallows the turn (see below). Every segment has an intersection object, even if there are no other segments to connect to (i.e., a cul-de-sac or dead end). + * `onRight` (*type:* `boolean()`, *default:* `nil`) - Specifies whether this segment carries right-hand traffic (cars keep to the right side of the road) instead of left-hand traffic (cars keep to the left side). This is true for US roads and false for UK roads, for example. See go/wikip/Left-_and_right-hand_traffic. + * `surface` (*type:* `String.t`, *default:* `nil`) - clang-format on LINT.ThenChange(//depot/google3/geostore/base/proto/lane.proto) Specific lanes may override this segment-level surface type. + * `pedestrianCrossing` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePedestrianCrossingProto.t`, *default:* `nil`) - Defines the pedestrian crossing(s) between the end point of this segment and the start point of this segment's sibling. + * `legalMaximumSpeed` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAppliedSpeedLimitProto.t)`, *default:* `nil`) - The legal maximum, legal minimum, and advisory (recommended but non-legally binding) maximum speed limits that are permitted on this segment. These should be the segment's legal limits; however, note that it may contain estimated values based on country-wide defaults and other heuristics (see 'AppliedSpeedLimitProto.trust_level'). Before exposing these fields to users as the legal speed limit please consult with Google lawyers. + * `routeAssociation` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRouteAssociationProto.t)`, *default:* `nil`) - Holds metadata about the associations between this segment and the route features listed in the route field. This metadata need not be present; the only consistency requirement is that every feature ID that appears inside 'route_association' must also appear in the repeated 'route' field. If a route does not appear in route_association, consumers should assume that it has a default initialized RouteAssociationProto. + * `maxPermittedSpeedKphMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for the maximum permitted speed. + * `pedestrianGrade` (*type:* `String.t`, *default:* `nil`) - + * `roadMonitor` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - The road monitors that monitor this segment for traffic violations. + * `maxPermittedSpeedKph` (*type:* `number()`, *default:* `nil`) - The maximum speed that is permitted on this segment, in kilometers per hour. This should be the segment's legal speed limit; however, note that it may contain estimated values based on country-wide defaults and other heuristics (see 'is_max_permitted_speed_derived' below). Before exposing this field to users as the legal speed limit please consult with Google lawyers. + * `endpointMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for the endpoint. + * `advisoryMaximumSpeed` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAppliedSpeedLimitProto.t)`, *default:* `nil`) - + * `usage` (*type:* `String.t`, *default:* `nil`) - clang-format on LINT.ThenChange(//depot/google3/maps/pathfinder/pgraph/pgraph-segment-categories.cc) + * `endpoint` (*type:* `String.t`, *default:* `nil`) - clang-format on + * `constructionStatus` (*type:* `String.t`, *default:* `nil`) - + * `priorityMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for the priority. + * `priority` (*type:* `String.t`, *default:* `nil`) - LINT.ThenChange(//depot/google3/maps/pathfinder/pgraph/pgraph-segment-categories.cc) + * `distanceToEdge` (*type:* `number()`, *default:* `nil`) - Average distance between the segment's polyline and edge of the road on this side in meters. It need not be equal to the sum of width of all lanes in this direction. This width includes on-street bicycle lanes but excludes off-street lanes such as sidewalks. The edge of the road is the rightmost edge for segments in right side driving countries and leftmost edge for left side driving countries. Width of the road is sum of this and sibling's distance_to_edge. + * `slope` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreSlopeProto.t)`, *default:* `nil`) - Each slope instance is tied to a point along the segment polyline (unrelated to the vertices in the segment's polyline) and represents the slope of the segment between that point and the point tied to the next slope istance, or the end of the segment if it's the last slope instance. A segment should have at least one slope. + * `distanceToEdgeMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for distance_to_edge. + * `visibleLandmark` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreLandmarkReferenceProto.t)`, *default:* `nil`) - A collection of landmarks that are visible when traveling along this segment and useful for wayfinding to users following routes using this segment. The landmark need not be on the segment. Each segment in a pair of siblings specifies its landmarks independently. A landmark applicable to both appears in both. + * `constructionStatusMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for the construction status. + * `internal` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProto.t`, *default:* `nil`) - Internal-only data. + * `gradeLevel` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreGradeLevelProto.t)`, *default:* `nil`) - Detailed information about grade levels along the segment. If a GradeLevelProto is not present for any point (index) along the segment, the default grade level is zero. In between two points (indexes), the grade level of the segment is taken to be the max of the grade levels on either side of it. See gradelevel.proto for semantics of repeated indexes. + * `edgeFollowsSegmentBeginFraction` (*type:* `number()`, *default:* `nil`) - These indicate for what portion of the segment does the outer curb of the segment follow the segment polyline - i.e., where do the sweep curves connect along the outer curb. If unspecified, may be assumed to be equal to lane retraction, preferring outermost lane. + * `roadSign` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - The road sign(s) which this segment refers to. These are features of TYPE_ROAD_SIGN that are applicable to this segment. For example, a sign that says "TO KIRKLAND" might apply to several segments on a freeway off-ramp (until the end of the ramp). Note that this field makes it easy to find the signs for a given road segment. The feature for the sign lists the segments that refer to it. + * `avgSpeedKph` (*type:* `number()`, *default:* `nil`) - The average speed that should be expected along this route under normal conditions, in kilometers per hour. (Hopefully we'll replace this with something a lot more sophisticated.) + * `ramp` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentProtoRampProto.t`, *default:* `nil`) - RESERVED + * `tollRoad` (*type:* `boolean()`, *default:* `nil`) - If this segment is part of a toll road. It would be nice to have data about the toll cost, locations of toll booths, and so forth. Sadly, we don't have this data at this time. + * `barrier` (*type:* `String.t`, *default:* `nil`) - clang-format on + * `condition` (*type:* `String.t`, *default:* `nil`) - + * `route` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - The route(s) to which this segment belongs. + * `restriction` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto.t)`, *default:* `nil`) - The set of restrictions that apply to this segment. Restrictions may make a single segment, turn, or more complex maneuver along a set of segments unroutable for the specified travel modes, or may only add penalties or warnings, depending on the restriction type. Turn restrictions are one example of a restriction. By default, turns are allowed onto all outgoing segments from this segment's intersection (including the sibling of this segment, i.e. U-turns are allowed by default). If any of these turns are disallowed they will be listed as "subpath restrictions". A subpath restriction disallows travel on given sequence of segments. In the case of a disallowed turn, the subpath simply consists of the source and destination feature ids. There may also be restrictions that apply to all travel on this segment (e.g. chains required, or closed in winter), or restrictions that just apply to certain lanes (e.g. high occupancy vehicle lanes). + * `covered` (*type:* `boolean()`, *default:* `nil`) - Whether the segment is covered by a roof etc. If this field is missing, the status is unknown. + * `edgeFollowsSegmentEndFraction` (*type:* `number()`, *default:* `nil`) - + * `avgSpeedKphMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for the average speed. + * `sibling` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - The other segment of this segment pair (see above). The segment that is referenced by the sibling field refers to this feature back via the same sibling field. Both segment and sibling should have the same properties such as geometry, country code, elevation, level relation, priority etc. Since routes are required to have segment and sibling at the same time, the set of routes on a segment is same to that of the sibling. + * `separatedRoadways` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the segment's opposing lanes of traffic are separated from this segment, and hence have been represented in a separate feature. This means that there are two pairs of siblings instead of one. + * `isMaxPermittedSpeedDerived` (*type:* `boolean()`, *default:* `nil`) - Specifies whether the max_permitted_speed_kph was derived from a heuristic as opposed to coming from an authoritative source. + * `sweep` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreSweepProto.t)`, *default:* `nil`) - The geometric sweeps between this segment and nearby segments, used for real road width rendering. A sweep describes the surface that connects to segments. + * `surfaceMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for the surface. + * `legalMinimumSpeed` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAppliedSpeedLimitProto.t)`, *default:* `nil`) - + * `bicycleSafety` (*type:* `String.t`, *default:* `nil`) - + * `conditionMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for the condition. + * `constructionEndDate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t`, *default:* `nil`) - If known, the date that construction is scheduled to end. + * `elevation` (*type:* `String.t`, *default:* `nil`) - clang-format on + * `interpolationOffsetMeters` (*type:* `number()`, *default:* `nil`) - If specified, the perpendicular offset in meters from a road segment to an interpolated address along that road segment. See go/synthetic-address-positions. + * `elevationMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for the elevation. + * `bicycleFacility` (*type:* `String.t`, *default:* `nil`) - clang-format on + * `pedestrianFacility` (*type:* `String.t`, *default:* `nil`) - clang-format on + * `altitude` (*type:* `list(number())`, *default:* `nil`) - RESERVED + * `constructionBeginDate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t`, *default:* `nil`) - If known, the date that construction is scheduled to begin. + * `barrierMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for the barrier. + * `lane` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneProto.t)`, *default:* `nil`) - Detailed information about each lane in this direction, if available. Lanes are numbered from inside of the road outward, i.e. the lane next to the center line has lane_number 0. Note that lanes that are valid for travel in both directions appear in both segments of a segment pair (left turn lanes, one-lane roads, some passing lanes, reversing lanes). Some lanes may not be usable by cars, such as bike lanes. Also, some lanes may not exist along the entire segment, e.g. left- or right-turn lanes that appear just before the intersection. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :intersection => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :onRight => boolean() | nil, + :surface => String.t() | nil, + :pedestrianCrossing => + GoogleApi.ContentWarehouse.V1.Model.GeostorePedestrianCrossingProto.t() | nil, + :legalMaximumSpeed => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAppliedSpeedLimitProto.t()) | nil, + :routeAssociation => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRouteAssociationProto.t()) | nil, + :maxPermittedSpeedKphMetadata => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :pedestrianGrade => String.t() | nil, + :roadMonitor => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :maxPermittedSpeedKph => number() | nil, + :endpointMetadata => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :advisoryMaximumSpeed => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAppliedSpeedLimitProto.t()) | nil, + :usage => String.t() | nil, + :endpoint => String.t() | nil, + :constructionStatus => String.t() | nil, + :priorityMetadata => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :priority => String.t() | nil, + :distanceToEdge => number() | nil, + :slope => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreSlopeProto.t()) | nil, + :distanceToEdgeMetadata => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :visibleLandmark => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreLandmarkReferenceProto.t()) | nil, + :constructionStatusMetadata => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :internal => GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProto.t() | nil, + :gradeLevel => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreGradeLevelProto.t()) | nil, + :edgeFollowsSegmentBeginFraction => number() | nil, + :roadSign => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :avgSpeedKph => number() | nil, + :ramp => GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentProtoRampProto.t() | nil, + :tollRoad => boolean() | nil, + :barrier => String.t() | nil, + :condition => String.t() | nil, + :route => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :restriction => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto.t()) | nil, + :covered => boolean() | nil, + :edgeFollowsSegmentEndFraction => number() | nil, + :avgSpeedKphMetadata => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :sibling => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :separatedRoadways => boolean() | nil, + :isMaxPermittedSpeedDerived => boolean() | nil, + :sweep => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreSweepProto.t()) | nil, + :surfaceMetadata => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :legalMinimumSpeed => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreAppliedSpeedLimitProto.t()) | nil, + :bicycleSafety => String.t() | nil, + :conditionMetadata => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :constructionEndDate => + GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t() | nil, + :elevation => String.t() | nil, + :interpolationOffsetMeters => number() | nil, + :elevationMetadata => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :bicycleFacility => String.t() | nil, + :pedestrianFacility => String.t() | nil, + :altitude => list(number()) | nil, + :constructionBeginDate => + GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t() | nil, + :barrierMetadata => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :lane => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneProto.t()) | nil + } + + field(:intersection, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:onRight) + field(:surface) + + field(:pedestrianCrossing, + as: GoogleApi.ContentWarehouse.V1.Model.GeostorePedestrianCrossingProto + ) + + field(:legalMaximumSpeed, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAppliedSpeedLimitProto, + type: :list + ) + + field(:routeAssociation, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRouteAssociationProto, + type: :list + ) + + field(:maxPermittedSpeedKphMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto + ) + + field(:pedestrianGrade) + field(:roadMonitor, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + field(:maxPermittedSpeedKph) + field(:endpointMetadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + + field(:advisoryMaximumSpeed, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAppliedSpeedLimitProto, + type: :list + ) + + field(:usage) + field(:endpoint) + field(:constructionStatus) + field(:priorityMetadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:priority) + field(:distanceToEdge) + field(:slope, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreSlopeProto, type: :list) + + field(:distanceToEdgeMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto + ) + + field(:visibleLandmark, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreLandmarkReferenceProto, + type: :list + ) + + field(:constructionStatusMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto + ) + + field(:internal, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreInternalSegmentProto) + field(:gradeLevel, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreGradeLevelProto, type: :list) + field(:edgeFollowsSegmentBeginFraction) + field(:roadSign, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + field(:avgSpeedKph) + field(:ramp, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentProtoRampProto) + field(:tollRoad) + field(:barrier) + field(:condition) + field(:route, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + + field(:restriction, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRestrictionProto, + type: :list + ) + + field(:covered) + field(:edgeFollowsSegmentEndFraction) + field(:avgSpeedKphMetadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:sibling, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:separatedRoadways) + field(:isMaxPermittedSpeedDerived) + field(:sweep, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreSweepProto, type: :list) + field(:surfaceMetadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + + field(:legalMinimumSpeed, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreAppliedSpeedLimitProto, + type: :list + ) + + field(:bicycleSafety) + field(:conditionMetadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:constructionEndDate, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto) + field(:elevation) + field(:interpolationOffsetMeters) + field(:elevationMetadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:bicycleFacility) + field(:pedestrianFacility) + field(:altitude, type: :list) + field(:constructionBeginDate, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto) + field(:barrierMetadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:lane, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreLaneProto, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_segment_proto_ramp_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_segment_proto_ramp_proto.ex new file mode 100644 index 0000000000..0362dd3eed --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_segment_proto_ramp_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentProtoRampProto do + @moduledoc """ + Encapsulates ramp-specific properties. + + ## Attributes + + * `maxConnectedPriority` (*type:* `String.t`, *default:* `nil`) - The highest priority of any TYPE_ROAD endpoint segment which is transitively connected to this ramp via other ramp segments. For instance, if we have two roads connected through a series of ramps (omitting intersections): Road(P=96)-> Ramp 1 -> Ramp 2 -> Ramp 3 -> Road(P=122) -> Road(P=144) The `max_connected_priority` of all three intermediary ramps is 122. It's not 144, since Road(P=144) is connected through another road, not a ramp. This differs from the usual `SegmentProto.priority` field, which contains the lowest priority across any connected road segment. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :maxConnectedPriority => String.t() | nil + } + + field(:maxConnectedPriority) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentProtoRampProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentProtoRampProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSegmentProtoRampProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_service_area_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_service_area_proto.ex new file mode 100644 index 0000000000..3b08cdd2fc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_service_area_proto.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreServiceAreaProto do + @moduledoc """ + This proto represents the geographic area served by an establishment. WARNING: This proto is not meant to be used directly. Please use the provided libraries. http://google3/geostore/base/public/service_area.h http://google3/java/com/google/geostore/base/ServiceArea.java + + ## Attributes + + * `servedFeature` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - The features that make up the service area for this establishment. These features are subject to the following constraints applied by editing middleware (notably, not strictly enforced by lints in storage): 1. The following feature types (and their subtypes) may be used: + TYPE_ISLAND + TYPE_POLITICAL, except the following prohibited subtypes: - TYPE_CONSTITUENCY - TYPE_LAND_PARCEL + TYPE_POSTAL 2. There is a maximum limit (currently 20) to the number of areas which may be provided. This is due to serving efficiency limitations. 3. There are no additional geometry requirements for these features beyond the requirements based on the feature types above. In practice this means that these features will either have polygonal or point-based geometries. 4. These referenced features are generally required to have names, though this is not strictly enforced. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :servedFeature => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil + } + + field(:servedFeature, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreServiceAreaProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreServiceAreaProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreServiceAreaProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_serviced_stop_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_serviced_stop_proto.ex new file mode 100644 index 0000000000..7381c6faae --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_serviced_stop_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreServicedStopProto do + @moduledoc """ + Defines an ordered reference to a line variant’s stop. + + ## Attributes + + * `id` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - Reference to a Transit POI feature (gcid:transit_station) or platform compound section (gcid:railway_platform) serviced by the line variant. + * `index` (*type:* `integer()`, *default:* `nil`) - An index representing the order in which the above station is serviced by the line variant. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :index => integer() | nil + } + + field(:id, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:index) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreServicedStopProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreServicedStopProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreServicedStopProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ski_boundary_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ski_boundary_proto.ex new file mode 100644 index 0000000000..0c96239d47 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ski_boundary_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiBoundaryProto do + @moduledoc """ + This protocol buffer holds attributes for features of TYPE_SKI_BOUNDARY. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiBoundaryProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiBoundaryProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiBoundaryProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ski_lift_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ski_lift_proto.ex new file mode 100644 index 0000000000..39f5ce2e79 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ski_lift_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiLiftProto do + @moduledoc """ + This protocol buffer holds attributes for features of TYPE_SKI_LIFT. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - clang-format on + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiLiftProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiLiftProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiLiftProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ski_trail_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ski_trail_proto.ex new file mode 100644 index 0000000000..766591b585 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_ski_trail_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiTrailProto do + @moduledoc """ + This protocol buffer holds attributes for features of TYPE_SKI_TRAIL. + + ## Attributes + + * `difficulty` (*type:* `String.t`, *default:* `nil`) - + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :difficulty => String.t() | nil, + :type => String.t() | nil + } + + field(:difficulty) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiTrailProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiTrailProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSkiTrailProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_slope_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_slope_proto.ex new file mode 100644 index 0000000000..11f56e7521 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_slope_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreSlopeProto do + @moduledoc """ + + + ## Attributes + + * `slopeValue` (*type:* `number()`, *default:* `nil`) - Slope value as elevation change divided by horizontal distance, in the format of decimal, e.g., ‘0.1234’ means a 12.34% slope. If a slope_value is unset, it indicates we don’t have enough information to compute slope at this location. + * `startPointFraction` (*type:* `number()`, *default:* `nil`) - Indicates how far along the segment this slope value starts to apply, in the format of decimal between 0 and 1. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :slopeValue => number() | nil, + :startPointFraction => number() | nil + } + + field(:slopeValue) + field(:startPointFraction) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSlopeProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreSlopeProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSlopeProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_social_reference_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_social_reference_proto.ex new file mode 100644 index 0000000000..ba8453cfd3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_social_reference_proto.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreSocialReferenceProto do + @moduledoc """ + MapFacts GAIA ID assigned to this feature. These values are virtual GAIA IDs from MapFacts, and as such are not stored in Focus. + + ## Attributes + + * `baseGaiaId` (*type:* `String.t`, *default:* `nil`) - WARNING: Please do NOT introduce new uses; treat this field as if it were deprecated. + * `claimedGaiaId` (*type:* `String.t`, *default:* `nil`) - GAIA ID used when a business has been claimed. This value is a robot GAIA ID. Robots are a special type of GAIA account used to denote identity for a user or a group of users, but are not logged-in directly by a user. + * `gaiaIdForDisplay` (*type:* `String.t`, *default:* `nil`) - WARNING: Please do NOT introduce new uses; treat this field as if it were deprecated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :baseGaiaId => String.t() | nil, + :claimedGaiaId => String.t() | nil, + :gaiaIdForDisplay => String.t() | nil + } + + field(:baseGaiaId) + field(:claimedGaiaId) + field(:gaiaIdForDisplay) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSocialReferenceProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreSocialReferenceProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSocialReferenceProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_source_info_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_source_info_proto.ex new file mode 100644 index 0000000000..45fa8ef751 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_source_info_proto.ex @@ -0,0 +1,85 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreSourceInfoProto do + @moduledoc """ + Source infos are the canonical way to establish data provenance. They can currently be set on features, edits, and issues. Every feature has a repeated list of SourceInfoProto messages to describe the source data that was used in building this feature. The data includes a feature id that points to additional data about the data source (version, copyright notice, etc), and optional "raw data" that is taken directly from the provider's format and has not been converted to a canonical form. + + ## Attributes + + * `attributionUrl` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto.t)`, *default:* `nil`) - This is the URL of a page representing all the data from this source in this feature. It may have be the ultimate source of the data (in case of scraping) or merely the same data styled according the provider's taste. There is a similar field in DataSourceProto which is NOT cached in this field, since it has a different meaning. + * `collectionDate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t`, *default:* `nil`) - The time that this particular piece of data was collected. If different attributes were collected on different dates, this is the date of the most recent edit. + * `cookie` (*type:* `String.t`, *default:* `nil`) - A source info may have a magic cookie whose content and semantics are defined by the specific import process or third-party feed. For feeds that are processed by Distillery, the cookie, when set, should contain the unique identifier for the feature as provided by the feed. + * `dataset` (*type:* `String.t`, *default:* `nil`) - The dataset from which this SourceInfoProto was created. The content of this string will be determined by the data provider (e.g. for MultiNet data, "fra" would indicate the dataset for France). This field is unnecessary for providers that deliver a single dataset per release (e.g. Basarsoft). + * `gaiaId` (*type:* `String.t`, *default:* `nil`) - The Gaia ID of the user who provided us with this data. This field should never be set on source infos present on features, but may be set on source infos present on edits. DEPRECATED: Most clients should use the "user" field instead where Gaia IDs are encrypted. + * `impersonationUser` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreUserProto.t`, *default:* `nil`) - Information about an internal user or system that is operating on behalf of `user` by way of impersonation. + * `layer` (*type:* `String.t`, *default:* `nil`) - The name of the layer from which this SourceInfoProto was created. + * `ogrFid` (*type:* `String.t`, *default:* `nil`) - The OGR feature identifier from which this SourceInfoProto was created. This is an internal OGR record identifier and has nothing to do with any of the feature's fields or the FeatureIdProto for the FeatureProto containing this SourceInfoProto. This field is present only for debugging purposes and possible use in the match pattern of a FeatureChangeProto designed to fix bad source data very early in the importing process. + * `provider` (*type:* `integer()`, *default:* `nil`) - The data provider from which this source info was generated. The value must be equal to the one on the TYPE_DATA_SOURCE feature referenced by this source info via the source_id reference (see above). + * `rawData` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRawDataProto.t)`, *default:* `nil`) - A source info may optionally have a set of key-value pairs that provide "raw data" specific to that source. The types of raw data available will vary from one provider to another and should not be used in production code. Instead, new fields and/or protocol buffers should be defined to represent this information in a canonical form, and the relevant importers should be modified to populate these new fields. + * `release` (*type:* `String.t`, *default:* `nil`) - The data release from which this SourceInfoProto was created. The format for this string is provider-dependent (e.g. a MultiNet release would look like "2008.01"). + * `sourceId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - A source info may have a corresponding TYPE_DATA_SOURCE feature that describes it (provider, copyright information, date of release, etc). In the context of edits and issues, this field should not be set. + * `temporaryData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - A place for clients to attach arbitrary data to a source info. Never set in MapFacts. + * `user` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreUserProto.t`, *default:* `nil`) - RESERVED + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributionUrl => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto.t()) | nil, + :collectionDate => GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t() | nil, + :cookie => String.t() | nil, + :dataset => String.t() | nil, + :gaiaId => String.t() | nil, + :impersonationUser => GoogleApi.ContentWarehouse.V1.Model.GeostoreUserProto.t() | nil, + :layer => String.t() | nil, + :ogrFid => String.t() | nil, + :provider => integer() | nil, + :rawData => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRawDataProto.t()) | nil, + :release => String.t() | nil, + :sourceId => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :temporaryData => GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :user => GoogleApi.ContentWarehouse.V1.Model.GeostoreUserProto.t() | nil + } + + field(:attributionUrl, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto, type: :list) + field(:collectionDate, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto) + field(:cookie) + field(:dataset) + field(:gaiaId) + field(:impersonationUser, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreUserProto) + field(:layer) + field(:ogrFid) + field(:provider) + field(:rawData, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRawDataProto, type: :list) + field(:release) + field(:sourceId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:temporaryData, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + field(:user, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreUserProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSourceInfoProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreSourceInfoProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSourceInfoProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_source_trust_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_source_trust_proto.ex new file mode 100644 index 0000000000..a604685658 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_source_trust_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreSourceTrustProto do + @moduledoc """ + Trust related information about the input source (feed or user) to help feature summarization. Typically, the values in this proto are either based on source's previous observations (e.g., a blocked LBC user or a trusted feed) or their status (Google hired operator or admin user). The proto can later contain a more granular trust score or correctness probabilities. A higher enum value indicates a more trusted source. Leaving room in the value space for adding more granular enums, if they become necessary later. + + ## Attributes + + * `level` (*type:* `String.t`, *default:* `nil`) - The level of trust for the source of the observation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :level => String.t() | nil + } + + field(:level) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSourceTrustProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreSourceTrustProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSourceTrustProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_speed_limit_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_speed_limit_proto.ex new file mode 100644 index 0000000000..39153b3f48 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_speed_limit_proto.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreSpeedLimitProto do + @moduledoc """ + A speed limit, containing both the limit and the conditions in which it applies. + + ## Attributes + + * `category` (*type:* `String.t`, *default:* `nil`) - The type of speed limit. + * `condition` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadConditionalProto.t)`, *default:* `nil`) - The conditions under which this speed limit is applicable. If multiple conditions are set, at least one of them must be true. + * `sourceType` (*type:* `String.t`, *default:* `nil`) - The source of the speed limit. + * `speedWithUnit` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreSpeedProto.t`, *default:* `nil`) - A constant speed limit. + * `unlimitedSpeed` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreUnlimitedSpeedProto.t`, *default:* `nil`) - A speed limit with no limit value. When there is no speed limit in place. + * `variableSpeed` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreVariableSpeedProto.t`, *default:* `nil`) - A dynamic speed limit that can vary within a range of values based on road conditions. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :category => String.t() | nil, + :condition => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadConditionalProto.t()) | nil, + :sourceType => String.t() | nil, + :speedWithUnit => GoogleApi.ContentWarehouse.V1.Model.GeostoreSpeedProto.t() | nil, + :unlimitedSpeed => + GoogleApi.ContentWarehouse.V1.Model.GeostoreUnlimitedSpeedProto.t() | nil, + :variableSpeed => + GoogleApi.ContentWarehouse.V1.Model.GeostoreVariableSpeedProto.t() | nil + } + + field(:category) + + field(:condition, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreRoadConditionalProto, + type: :list + ) + + field(:sourceType) + field(:speedWithUnit, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreSpeedProto) + field(:unlimitedSpeed, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreUnlimitedSpeedProto) + field(:variableSpeed, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreVariableSpeedProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSpeedLimitProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreSpeedLimitProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSpeedLimitProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_speed_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_speed_proto.ex new file mode 100644 index 0000000000..6c3c40c4e5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_speed_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreSpeedProto do + @moduledoc """ + A speed value and unit. + + ## Attributes + + * `speed` (*type:* `number()`, *default:* `nil`) - All speed values are stored in kilometers per hour. + * `unit` (*type:* `String.t`, *default:* `nil`) - Mapfacts only allows unit to be KILOMETERS_PER_HOUR. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :speed => number() | nil, + :unit => String.t() | nil + } + + field(:speed) + field(:unit) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSpeedProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreSpeedProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSpeedProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_stable_field_path_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_stable_field_path_proto.ex new file mode 100644 index 0000000000..37baeb0f61 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_stable_field_path_proto.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreStableFieldPathProto do + @moduledoc """ + Represents a way to traverse nested fields by referencing their token fields. Everything starts relative to a known root message, specified externally. E.g., suppose we have a feature proto that has a lane with token 0x123 which in turn has a lane connection with token 0x456 for which we want to assert something about flowline altitudes. The field path in that case will look like: field_path: { field_num: 31 # segment } field_path: { field_num: 6 # lane version_token: "0x123" } field_path: { field_num: 8 # lane_connection version_token: "0x456" } field_path: { field_num: 3 # flow } field_path: { field_num: 1 # track } field_path: { # Note: pose is repeated. By not specifying a token we refer to all poses # in a track. field_num: 2 # pose } field_path: { field_num: 4 # altitude } This path could also be represented succinctly in a more human-friendly form as something like: segment.lane[@0x123].lane_connection[@0x456].flow.track.pose[*].altitude + + ## Attributes + + * `fieldPath` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreStableFieldPathProtoStableFieldSelector.t)`, *default:* `nil`) - A sequence of field selectors to be traversed starting from the root message. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fieldPath => + list( + GoogleApi.ContentWarehouse.V1.Model.GeostoreStableFieldPathProtoStableFieldSelector.t() + ) + | nil + } + + field(:fieldPath, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreStableFieldPathProtoStableFieldSelector, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreStableFieldPathProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreStableFieldPathProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreStableFieldPathProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_stable_field_path_proto_stable_field_selector.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_stable_field_path_proto_stable_field_selector.ex new file mode 100644 index 0000000000..debf68d59f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_stable_field_path_proto_stable_field_selector.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreStableFieldPathProtoStableFieldSelector do + @moduledoc """ + + + ## Attributes + + * `fieldNum` (*type:* `integer()`, *default:* `nil`) - Field number to select. + * `versionToken` (*type:* `String.t`, *default:* `nil`) - Select repeated field entry by its version token. If this is used, then the message referenced by field_num must have a token field annotated with the (version_token) field option. Must be omitted for leaf non-repeated fields. If unset for a repeated field, we consider this selector to apply equally to all descendants. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fieldNum => integer() | nil, + :versionToken => String.t() | nil + } + + field(:fieldNum) + field(:versionToken) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreStableFieldPathProtoStableFieldSelector do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreStableFieldPathProtoStableFieldSelector.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreStableFieldPathProtoStableFieldSelector do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_sweep_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_sweep_proto.ex new file mode 100644 index 0000000000..2b09fabeba --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_sweep_proto.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreSweepProto do + @moduledoc """ + This protocol buffer represents the 2D polygon connecting two segments at an intersection. Collectively, sweep polygons represent intersections for real road width rendering. Notes: - Sweeps represent geometry between the *end* of one segment and the *end* of the other segment (modulo retraction values). - Sweeps are strongly referenced, meaning geometry is stored on both segments involved in the sweep. For example, in the diagram below, the sweep between A and B would be stored on both segment A and segment B. | B | v --A--> - Sweeps are not strictly stored on adjacent segments. Disconnected segments (e.g., segments separated by an intersection group) may also contain sweeps. + + ## Attributes + + * `otherSegmentFeatureId` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - The segment feature connected to this segment via the sweep geometry. + * `polygon` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto.t`, *default:* `nil`) - Polygonal geometry representing the area between this segment and the other segment. + * `sweepCurve` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProto.t`, *default:* `nil`) - Describes parameters for generating the edge of this sweep that starts at edge_follows_segment_end_fraction. The other side of the sweep should be described on the sweep present on the sibling pair. + * `sweepToken` (*type:* `String.t`, *default:* `nil`) - A token that can be used to identify the version of the data about this sweep. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :otherSegmentFeatureId => + GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :polygon => GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto.t() | nil, + :sweepCurve => + GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProto.t() | nil, + :sweepToken => String.t() | nil + } + + field(:otherSegmentFeatureId, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:polygon, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePolygonProto) + field(:sweepCurve, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCurveConnectionProto) + field(:sweepToken) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSweepProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreSweepProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreSweepProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_telephone_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_telephone_proto.ex new file mode 100644 index 0000000000..2730c5ffe6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_telephone_proto.ex @@ -0,0 +1,84 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreTelephoneProto do + @moduledoc """ + This protocol buffer is used to represent telephone numbers and related information. + + ## Attributes + + * `callRate` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto.t)`, *default:* `nil`) - RESERVED + * `contactCategory` (*type:* `String.t`, *default:* `nil`) - Disambiguates between the types of information or service a caller might seek when contacting this phone number. + * `flag` (*type:* `list(String.t)`, *default:* `nil`) - + * `isSharedNumber` (*type:* `boolean()`, *default:* `nil`) - True if this phone number is not unique to this establishment and might be shared with other features. In case an establishment shares a phone number with a business chain of which it is a member, and the number canonically belongs to that chain, it should be marked as shared for the establishment but not shared for the chain. + * `label` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto.t)`, *default:* `nil`) - RESERVED + * `language` (*type:* `list(String.t)`, *default:* `nil`) - RESERVED + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this telephone number. + * `number` (*type:* `GoogleApi.ContentWarehouse.V1.Model.TelephoneNumber.t`, *default:* `nil`) - ** DEPRECATED ** This is deprecated in favor of phone_number below. An internationalized representation of a phone number. See //location/country/telephonenumber.proto + * `phoneNumber` (*type:* `GoogleApi.ContentWarehouse.V1.Model.I18nPhonenumbersPhoneNumber.t`, *default:* `nil`) - An internationalized representation of a phone number. See //java/com/google/i18n/phonenumbers/phonenumber.proto + * `serviceLocationFeature` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - The features from which this phone number can be called from. For instance, if a phone number can only be called from Europe, this field will contain a reference to the TYPE_CONTINENT feature of Europe. This field is analogous to http://kg/schema/common/phone_number/service_location. The only valid destination feature types are TYPE_CONTINENT and TYPE_POLITICAL. If empty, this phone number can be called from anywhere in Earth (this is the case for the majority of phones). + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :callRate => + list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto.t()) | nil, + :contactCategory => String.t() | nil, + :flag => list(String.t()) | nil, + :isSharedNumber => boolean() | nil, + :label => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto.t()) | nil, + :language => list(String.t()) | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :number => GoogleApi.ContentWarehouse.V1.Model.TelephoneNumber.t() | nil, + :phoneNumber => + GoogleApi.ContentWarehouse.V1.Model.I18nPhonenumbersPhoneNumber.t() | nil, + :serviceLocationFeature => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :type => String.t() | nil + } + + field(:callRate, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto, type: :list) + field(:contactCategory) + field(:flag, type: :list) + field(:isSharedNumber) + field(:label, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreNameProto, type: :list) + field(:language, type: :list) + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:number, as: GoogleApi.ContentWarehouse.V1.Model.TelephoneNumber) + field(:phoneNumber, as: GoogleApi.ContentWarehouse.V1.Model.I18nPhonenumbersPhoneNumber) + + field(:serviceLocationFeature, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, + type: :list + ) + + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTelephoneProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreTelephoneProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTelephoneProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_temporary_closure_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_temporary_closure_proto.ex new file mode 100644 index 0000000000..d96e72bdc9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_temporary_closure_proto.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreTemporaryClosureProto do + @moduledoc """ + This protocol buffer stores information related to temporary closure of a feature. The only allowed precisions for a date is PRECISION_DAY. DateTimeProto.seconds should have the lowest legal value for the desired date/time and precision. E.g. for PRECISION_MONTH, 2019-02-15 21:10:30 is not valid, it should be 2019-02-01 00:00:00 instead. NOTE: Each date is stored in UTC but should be interpreted as being in the local timezone. So clients should convert the DateTimeProto to local (civil) time using UTC+0, and then treat the result as local to the feature. + + ## Attributes + + * `endAsOfDate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t`, *default:* `nil`) - The latest when this closure may end, if the exact date is unknown. If set, the feature is operational again no later than this date. + * `endDate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t`, *default:* `nil`) - RESERVED + * `startAsOfDate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t`, *default:* `nil`) - The latest when this closure may start, if the exact date is unknown. If set, the feature is temporarily closed starting no later than this date. + * `startDate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t`, *default:* `nil`) - RESERVED + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :endAsOfDate => GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t() | nil, + :endDate => GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t() | nil, + :startAsOfDate => GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t() | nil, + :startDate => GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto.t() | nil + } + + field(:endAsOfDate, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto) + field(:endDate, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto) + field(:startAsOfDate, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto) + field(:startDate, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDateTimeProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTemporaryClosureProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreTemporaryClosureProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTemporaryClosureProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_text_affix_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_text_affix_proto.ex new file mode 100644 index 0000000000..28a94d2e9f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_text_affix_proto.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreTextAffixProto do + @moduledoc """ + Represents text (with an associated language) that is affixed to the beginning and/or end of a primary text. + + ## Attributes + + * `language` (*type:* `String.t`, *default:* `nil`) - The external form of a Google International Identifiers Initiative (III) LanguageCode object. See google3/i18n/identifiers/languagecode.h for details. These strings should be treated as opaque blobs. You can use LanguageCodeConverter::FromOther to convert the string to a LanguageCode reference. You can then call methods on the LanguageCode class to extract language/script/region subtags (if any). See also http://g3doc/i18n/identifiers/g3doc/using-iii. We place extra restrictions on languages in addition to what the III library requires. See http://go/geo-schema-reference/feature-properties/languages.md + * `prefix` (*type:* `String.t`, *default:* `nil`) - Text to prepend to the primary text, including any necessary trailing whitespace. At least one of prefix or suffix is required. + * `suffix` (*type:* `String.t`, *default:* `nil`) - Text to append to the end of the primary text, including any necessary leading whitespace. At least one of prefix or suffix is required. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :language => String.t() | nil, + :prefix => String.t() | nil, + :suffix => String.t() | nil + } + + field(:language) + field(:prefix) + field(:suffix) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTextAffixProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreTextAffixProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTextAffixProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_three_dimensional_model_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_three_dimensional_model_proto.ex new file mode 100644 index 0000000000..c1b5d82dd9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_three_dimensional_model_proto.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreThreeDimensionalModelProto do + @moduledoc """ + + + ## Attributes + + * `pointIndices` (*type:* `list(integer())`, *default:* `nil`) - Triangle vertex indices, each triple defines a triangle. + * `points` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePointWithHeightProto.t)`, *default:* `nil`) - We store a triangular mesh in indexed format. Points array. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :pointIndices => list(integer()) | nil, + :points => + list(GoogleApi.ContentWarehouse.V1.Model.GeostorePointWithHeightProto.t()) | nil + } + + field(:pointIndices, type: :list) + + field(:points, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePointWithHeightProto, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreThreeDimensionalModelProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreThreeDimensionalModelProto.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreThreeDimensionalModelProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_based_rate_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_based_rate_proto.ex new file mode 100644 index 0000000000..450f331fe5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_based_rate_proto.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeBasedRateProto do + @moduledoc """ + A rate which applies based on the precise times of utilization. Defines a rate, as well as restrictions on the start and end times which must be satisfied in order to be eligible for the rate. See go/rate-schema for more details. + + ## Attributes + + * `durationBasedRate` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreDurationBasedRateProto.t)`, *default:* `nil`) - The rates for this rule. Each duration_based_rate defines the costs associated with a particular duration of a stay. There must be at least one rate with range_start_seconds set to 0 and there cannot be gaps between durations (i.e. there should be no interval uncovered between 0 and the largest range_end_seconds of any duration-based rate). + * `taxIncluded` (*type:* `boolean()`, *default:* `nil`) - If true, tax is included in the prices in this rate. If false, additional taxes may apply. + * `validEndWithin` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t`, *default:* `nil`) - + * `validStartWithin` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t`, *default:* `nil`) - Time period during which utilization of this rate must start in order to be eligible for the rate. If not set, there is no restriction on the time when the utilization starts. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :durationBasedRate => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreDurationBasedRateProto.t()) | nil, + :taxIncluded => boolean() | nil, + :validEndWithin => + GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t() | nil, + :validStartWithin => + GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t() | nil + } + + field(:durationBasedRate, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDurationBasedRateProto, + type: :list + ) + + field(:taxIncluded) + field(:validEndWithin, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto) + field(:validStartWithin, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeBasedRateProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeBasedRateProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeBasedRateProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_component_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_component_proto.ex new file mode 100644 index 0000000000..1767db1b57 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_component_proto.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeComponentProto do + @moduledoc """ + + + ## Attributes + + * `componentType` (*type:* `String.t`, *default:* `nil`) - + * `interval` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeIntervalProto.t)`, *default:* `nil`) - The time component is the intersection of these intervals + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :componentType => String.t() | nil, + :interval => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeIntervalProto.t()) | nil + } + + field(:componentType) + field(:interval, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeIntervalProto, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeComponentProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeComponentProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeComponentProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_endpoint_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_endpoint_proto.ex new file mode 100644 index 0000000000..cb147dc8b7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_endpoint_proto.ex @@ -0,0 +1,70 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeEndpointProto do + @moduledoc """ + Not all combinations of optional fields in TimeEndpointProto are allowed. The granularity of time is a path along the directed graph with these edges: second -> minute minute -> hour hour -> day of week hour -> day of month hour -> day of year day of week -> week of month day of week -> week of year day of month -> month day of year -> year week of month -> month week of year -> year month -> year A TimeEndpointProto may not specify two fields that are unordered with respect to each other ("day of year" and "day of week", for instance). The absence of fields larger than any specified field indicates repetition (e.g. no year indicates that the interval occurs every year). The absence of units that are "smaller" than the largest specified unit indicates a default lowest value (no hour means midnight (0)). When intersecting time intervals, "smaller" units repeat within the "larger" unit as many times as necessary. For example, the intersection of the interval from hour 0 to hour 24 with the interval from second 0 to second 1 is equivalent to the union of the set of intervals which represents the first second of every minute of every hour of every day. ----------------------------------------------------------------------------- WARNING - if you add new fields to TimeEndpointProto you need to: - ensure AreTimeEndpointsEquivalent considers the new fields (and update the corresponding tests) ----------------------------------------------------------------------------- + + ## Attributes + + * `day` (*type:* `integer()`, *default:* `nil`) - Valid ranges are 0-7, 1-31, and 1-366 (see day_type below) + * `dayType` (*type:* `String.t`, *default:* `nil`) - + * `hour` (*type:* `integer()`, *default:* `nil`) - Valid range is 0-24. Because it could be unclear what wrapping hours mean in relation to days, 24 is used to denote midnight at the end of a day. + * `minute` (*type:* `integer()`, *default:* `nil`) - Valid range is 0-59, except when a repetitive minute interval ends at the end of an hour, in which case 60 is a legal end value. + * `month` (*type:* `String.t`, *default:* `nil`) - + * `second` (*type:* `integer()`, *default:* `nil`) - Valid range is 0-59, except when a repetitive second interval ends at the end of a minute, in which case 60 is a legal end value. + * `week` (*type:* `integer()`, *default:* `nil`) - Valid ranges are 0-5 and 1-53 (depending on the value of week_type, see below). + * `weekType` (*type:* `String.t`, *default:* `nil`) - + * `year` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :day => integer() | nil, + :dayType => String.t() | nil, + :hour => integer() | nil, + :minute => integer() | nil, + :month => String.t() | nil, + :second => integer() | nil, + :week => integer() | nil, + :weekType => String.t() | nil, + :year => integer() | nil + } + + field(:day) + field(:dayType) + field(:hour) + field(:minute) + field(:month) + field(:second) + field(:week) + field(:weekType) + field(:year) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeEndpointProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeEndpointProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeEndpointProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_interval_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_interval_proto.ex new file mode 100644 index 0000000000..846b1585a1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_interval_proto.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeIntervalProto do + @moduledoc """ + + + ## Attributes + + * `begin` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeEndpointProto.t`, *default:* `nil`) - Begin and end are used to specify a range of times: [begin, end). If one is present, the other must be present as well. Additionally, both must have matching time granularities - all fields specified in the begin TimeEndpointProto must be present in the end TimeEndpointProto and vice-versa. Hours are not allowed to wrap (begin.hour() <= end.hour()). + * `end` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeEndpointProto.t`, *default:* `nil`) - + * `inverted` (*type:* `boolean()`, *default:* `nil`) - If true, then this interval actually encodes the complement of the specified occasion or range. For example, the following TimeIntervalProto encodes all times other than the month of May. TimeIntervalProto[ type = TYPE_RANGE inverted = true begin = TimeEndpointProto[ month = MAY ] end = TimeEndpointProto[ month = JUNE ] ] + * `occasion` (*type:* `String.t`, *default:* `nil`) - clang-format on + * `type` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :begin => GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeEndpointProto.t() | nil, + :end => GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeEndpointProto.t() | nil, + :inverted => boolean() | nil, + :occasion => String.t() | nil, + :type => String.t() | nil + } + + field(:begin, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeEndpointProto) + field(:end, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeEndpointProto) + field(:inverted) + field(:occasion) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeIntervalProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeIntervalProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeIntervalProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_schedule_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_schedule_proto.ex new file mode 100644 index 0000000000..917069a59b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_time_schedule_proto.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto do + @moduledoc """ + + + ## Attributes + + * `component` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeComponentProto.t)`, *default:* `nil`) - The schedule is the union of these components. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :component => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeComponentProto.t()) | nil + } + + field(:component, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeComponentProto, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_timezone_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_timezone_proto.ex new file mode 100644 index 0000000000..7e7bccdbaa --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_timezone_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreTimezoneProto do + @moduledoc """ + A TimezoneProto holds information about a feature's related time zone. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - i18n recognized time zone identifier. For the full list of identifiers, see google3/i18n/identifiers/data/timezones.txt. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this relation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil + } + + field(:id) + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimezoneProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreTimezoneProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimezoneProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_toll_cluster_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_toll_cluster_proto.ex new file mode 100644 index 0000000000..da76b409b2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_toll_cluster_proto.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreTollClusterProto do + @moduledoc """ + A collection of information that applies to a toll cluster. + + ## Attributes + + * `intersection` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - The list of TYPE_INTERSECTION features that are toll points and form this toll cluster. A toll cluster can consist of either a single or a group of intersection points called toll points at the end of various road segments in MapFacts that represent one or more lanes passing through a toll fixture that all go to the same routing destination. This relationship is reciprocal, as a toll point intersection also stores a reference to the toll cluster it belongs to. A toll cluster must have reference to one or more toll points i.e. toll_cluster.intersection should always be populated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :intersection => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil + } + + field(:intersection, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTollClusterProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreTollClusterProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTollClusterProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_track_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_track_proto.ex new file mode 100644 index 0000000000..d0d9aaee68 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_track_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreTrackProto do + @moduledoc """ + + + ## Attributes + + * `index` (*type:* `integer()`, *default:* `nil`) - The index of this TrackProto in a list of TrackProtos. + * `pose` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostorePoseProto.t)`, *default:* `nil`) - The instantaneous pose of points along this track. The fields set inside each pose must be set consistently along the track. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :index => integer() | nil, + :pose => list(GoogleApi.ContentWarehouse.V1.Model.GeostorePoseProto.t()) | nil + } + + field(:index) + field(:pose, as: GoogleApi.ContentWarehouse.V1.Model.GeostorePoseProto, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTrackProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreTrackProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTrackProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_transit_line_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_transit_line_proto.ex new file mode 100644 index 0000000000..e3f59f090e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_transit_line_proto.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitLineProto do + @moduledoc """ + A transit line is a named set of transit trips that are advertised to passengers under a common name, and a number of attributes that are true for all those trips. There is no requirement for each trip to travel through the same list of stops or use the same legs, so a line can contain trips in opposite directions or with variations in the sequence of stops. See go/oysterpedia for an overview of the transit feature types. The standard feature properties are interpreted as follows: name - The names of this line, including both long and short names, if available. Short names like "10" or "Blue" should carry the FLAG_ABBREVIATED, long names like "Dublin/Pleasanton line" should not. The preferred name (one per language) for displaying the line on its own (e.g., as a search result for the line) should carry the FLAG_PREFERRED. website - The official web page describing this line. Repeated if multilingual. Line features have no geometry (neither points nor polylines nor polygons). Within Transit Oyster, geometry can be found in legs. Additional data only in Transit Oyster: child - The legs of this line, in no particular order. source_info - Specifies the GTFS routes that match this feature. Each is given as a PROVIDER_GOOGLE_TRANSIT source_info where dataset is the feed name and cookie is the route_id. + + ## Attributes + + * `agency` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - The transit agencies responsible for operating this line. All lines should have at least one agency, and most will have exactly one. The following cases are reasons for multiple agencies: - Code share: Two or more agencies share trips - Alternations: Each trip is run by one of multiple agencies - Additional: All trips run by one agency, but a second one sells tickets In all cases the order has no meaning. Clarification comes from the trips. + * `labelBackgroundColor` (*type:* `integer()`, *default:* `nil`) - The background color of labels for that transit line. The encoding is like in HTML or CSS, eg. 0x11ff00 means a bit of red, full green, no blue, in sRGB color space. The most significant byte must be zero, i.e. no transparency. + * `labelTextColor` (*type:* `integer()`, *default:* `nil`) - The text color of labels for that transit line. Encoding like label_background_color. + * `stations` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t)`, *default:* `nil`) - The transit stations (establishment POIs with gcid:transit_station) which this transit line can go through, in no particular order. Usage note: The source of truth are the transit leg features in Transit Oyster. In MapFacts, that information is cached in two locations: in this field, and in transit station attachments on POIs. Do not assume these locations are always up to date and/or synchronized with each other. + * `vehicleType` (*type:* `String.t`, *default:* `nil`) - The type of vehicle that applies to all trips that use this line. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agency => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :labelBackgroundColor => integer() | nil, + :labelTextColor => integer() | nil, + :stations => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t()) | nil, + :vehicleType => String.t() | nil + } + + field(:agency, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + field(:labelBackgroundColor) + field(:labelTextColor) + field(:stations, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto, type: :list) + field(:vehicleType) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitLineProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitLineProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitLineProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_transit_line_variant_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_transit_line_variant_proto.ex new file mode 100644 index 0000000000..6f6f0eafbf --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_transit_line_variant_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitLineVariantProto do + @moduledoc """ + A line variant is a specific instantiation of a line concept, denoted by the ordered set of stops and collection of segments that it traverses. Line variants are modeled as TYPE_ROUTE features with gcid:transit_line_variant. This proto stores line-variant-specific information that is not generally applicable to all routes. Schema Design Doc: go/transit-line-concepts-and-variants + + ## Attributes + + * `lineConcept` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - Reference to the line variant’s line concept. + * `stops` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreServicedStopProto.t)`, *default:* `nil`) - Ordered list of stations or platforms serviced by this line variant. The order is captured by the ServicedStopProto.index field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lineConcept => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :stops => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreServicedStopProto.t()) | nil + } + + field(:lineConcept, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:stops, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreServicedStopProto, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitLineVariantProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitLineVariantProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitLineVariantProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_transit_station_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_transit_station_proto.ex new file mode 100644 index 0000000000..30983d6ea3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_transit_station_proto.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitStationProto do + @moduledoc """ + Encapsulates information related to an individual transit station. + + ## Attributes + + * `agencyAssociations` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitStationProtoTransitAgencyAssociationProto.t)`, *default:* `nil`) - All the transit agencies which service this station. A station can be serviced by multiple stations. There may only be one agency association per transit agency. See go/transit-agency-relation-migration for more details. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agencyAssociations => + list( + GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitStationProtoTransitAgencyAssociationProto.t() + ) + | nil + } + + field(:agencyAssociations, + as: + GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitStationProtoTransitAgencyAssociationProto, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitStationProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitStationProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitStationProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_transit_station_proto_transit_agency_association_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_transit_station_proto_transit_agency_association_proto.ex new file mode 100644 index 0000000000..5d8ff5acb6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_transit_station_proto_transit_agency_association_proto.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitStationProtoTransitAgencyAssociationProto do + @moduledoc """ + The association between this station and the agency which services this station. + + ## Attributes + + * `agency` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t`, *default:* `nil`) - The transit agency which services this station. + * `stationCode` (*type:* `String.t`, *default:* `nil`) - A station code uniquely identifies a transit station within the transit agency's network. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agency => GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto.t() | nil, + :stationCode => String.t() | nil + } + + field(:agency, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFeatureIdProto) + field(:stationCode) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitStationProtoTransitAgencyAssociationProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitStationProtoTransitAgencyAssociationProto.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GeostoreTransitStationProtoTransitAgencyAssociationProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_trust_signals_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_trust_signals_proto.ex new file mode 100644 index 0000000000..3461ef0465 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_trust_signals_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreTrustSignalsProto do + @moduledoc """ + + + ## Attributes + + * `sourceTrust` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreSourceTrustProto.t`, *default:* `nil`) - Trust signals for the source of a given observation, typically based on historical evidences or status (like internal Google operator). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :sourceTrust => GoogleApi.ContentWarehouse.V1.Model.GeostoreSourceTrustProto.t() | nil + } + + field(:sourceTrust, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreSourceTrustProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTrustSignalsProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreTrustSignalsProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreTrustSignalsProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_unlimited_speed_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_unlimited_speed_proto.ex new file mode 100644 index 0000000000..e1e321b93c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_unlimited_speed_proto.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreUnlimitedSpeedProto do + @moduledoc """ + A speed limit without a limit value. Used to indicate the absence of a speed limit. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreUnlimitedSpeedProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreUnlimitedSpeedProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreUnlimitedSpeedProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_url_list_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_url_list_proto.ex new file mode 100644 index 0000000000..ea4c1d0e18 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_url_list_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlListProto do + @moduledoc """ + Hold a list of URLs, usually to contain translations of a single URL. + + ## Attributes + + * `url` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :url => list(GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto.t()) | nil + } + + field(:url, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlListProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlListProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlListProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_url_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_url_proto.ex new file mode 100644 index 0000000000..df9c41c54c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_url_proto.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto do + @moduledoc """ + A web location for a Feature. URLs should always be stored in repeated fields because some objects (eg. transit schedules in Brussels) have different URLs for different languages. + + ## Attributes + + * `language` (*type:* `String.t`, *default:* `nil`) - The external form of a Google International Identifiers Initiative (III) LanguageCode object. See google3/i18n/identifiers/languagecode.h for details. We place extra restrictions on languages in addition to what the III library requires. See http://go/geo-schema-reference/feature-properties/languages.md This field represents the language of the content of the web site. It may be missing if the web site is language-independent or if the language is unknown. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t`, *default:* `nil`) - Field-level metadata for this URL. NOTE: there are multiple UrlProto fields in the Geo Schema. Metadata here is only expected to be present on FeatureProto.website[]. + * `pagerank` (*type:* `integer()`, *default:* `nil`) - ** DEPRECATED ** The pagerank of this URL. Valid values [0, 65535] See http://wiki/Main/NearestSeeds for more information. + * `url` (*type:* `String.t`, *default:* `nil`) - The URL. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :language => String.t() | nil, + :metadata => GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto.t() | nil, + :pagerank => integer() | nil, + :url => String.t() | nil + } + + field(:language) + field(:metadata, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreFieldMetadataProto) + field(:pagerank) + field(:url) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreUrlProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_user_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_user_proto.ex new file mode 100644 index 0000000000..2a9a97e76c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_user_proto.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreUserProto do + @moduledoc """ + UserProto identifies a (human) user of Geo Data. Its primary use is in describing the source of pieces of data (e.g. edits). It could be a simple identifier, but isn't so that we can store it in the clear while still preventing correlation between a user's contribution. + + ## Attributes + + * `encryptedGaiaId` (*type:* `String.t`, *default:* `nil`) - The user Gaia ID in encrypted form. Wipeout ids take value of "" in bytes. + * `encryptionKeyName` (*type:* `String.t`, *default:* `nil`) - Required. The name of the key used to encrypt the Gaia ID. + * `keystoreConfigId` (*type:* `integer()`, *default:* `nil`) - Required (valid default provided). The config ID of the owner of the above encryption_key_name. This field must be set if the encryption key name is *not* "mapfacts_gaia_id_encryption_key". + * `username` (*type:* `String.t`, *default:* `nil`) - If possible, writers should set this to a full user email, including the domain. Readers should not assume that this is a well-formed email address. This field may only be set by Atlas, Pushpin and OneRing because they are internal tools which have a PWG exception to store textual usernames in the clear. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :encryptedGaiaId => String.t() | nil, + :encryptionKeyName => String.t() | nil, + :keystoreConfigId => integer() | nil, + :username => String.t() | nil + } + + field(:encryptedGaiaId) + field(:encryptionKeyName) + field(:keystoreConfigId) + field(:username) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreUserProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreUserProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreUserProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_variable_speed_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_variable_speed_proto.ex new file mode 100644 index 0000000000..59d703175c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_variable_speed_proto.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreVariableSpeedProto do + @moduledoc """ + A speed limit whose value can change based on road, traffic, and weather conditions. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreVariableSpeedProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreVariableSpeedProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreVariableSpeedProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_vehicle_attribute_filter_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_vehicle_attribute_filter_proto.ex new file mode 100644 index 0000000000..185816ab55 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_vehicle_attribute_filter_proto.ex @@ -0,0 +1,107 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreVehicleAttributeFilterProto do + @moduledoc """ + A set of vehicle attribute conditionals (ex: weight >= 20T && num_trailers = 2) used to define a slice of all possible vehicles. This can be useful for filtering one or more vehicles by a predicate. + + ## Attributes + + * `axleCount` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreCountComparisonProto.t)`, *default:* `nil`) - A repeated value here is treated as an AND operation. This allows for ranges to be represented by two values (ex: "count < 4" AND "count >= 2" means "2 <= count < 4"). + * `hasTrailer` (*type:* `boolean()`, *default:* `nil`) - Whether the applied vehicle types have a trailer attached to them. + * `hazardousGoods` (*type:* `list(String.t)`, *default:* `nil`) - List of prohibited hazardous goods for a vehicle to carry. A repeated value here is treated as an OR operation, meaning that they may not carry ANY of the goods listed. + * `numTrailers` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreCountComparisonProto.t)`, *default:* `nil`) - A repeated value here is treated as an AND operation. This allows for ranges to be represented by two values (ex: "count <= 4" AND "count > 2" means "2 < count <= 4"). + * `trailerLength` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionComparisonProto.t)`, *default:* `nil`) - A repeated value here is treated as an AND operation. This allows for ranges to be represented by two values (ex: "length <= 53ft" AND "length > 48ft" means "48ft < length <= 53ft"). + * `vehicleHeight` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionComparisonProto.t)`, *default:* `nil`) - A repeated value here is treated as an AND operation. This allows for ranges to be represented by two values (ex: "height > 3m" AND "height <= 5m" means "3m < height <= 5m"). + * `vehicleLength` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionComparisonProto.t)`, *default:* `nil`) - A repeated value here is treated as an AND operation. This allows for ranges to be represented by two values (ex: "length <= 40m" AND "length > 35m" means "35m < length <= 40m"). + * `vehicleWeight` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreWeightComparisonProto.t)`, *default:* `nil`) - A repeated value here is treated as an AND operation. This allows for ranges to be represented by two values (ex: "weight < 8T" AND "weight >= 3T" means "3T <= weight < 8T"). + * `vehicleWidth` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionComparisonProto.t)`, *default:* `nil`) - A repeated value here is treated as an AND operation. This allows for ranges to be represented by two values (ex: "width < 4m" AND "width >= 2m" means "2m <= width < 4m"). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :axleCount => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreCountComparisonProto.t()) | nil, + :hasTrailer => boolean() | nil, + :hazardousGoods => list(String.t()) | nil, + :numTrailers => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreCountComparisonProto.t()) | nil, + :trailerLength => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionComparisonProto.t()) | nil, + :vehicleHeight => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionComparisonProto.t()) | nil, + :vehicleLength => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionComparisonProto.t()) | nil, + :vehicleWeight => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreWeightComparisonProto.t()) | nil, + :vehicleWidth => + list(GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionComparisonProto.t()) | nil + } + + field(:axleCount, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCountComparisonProto, + type: :list + ) + + field(:hasTrailer) + field(:hazardousGoods, type: :list) + + field(:numTrailers, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreCountComparisonProto, + type: :list + ) + + field(:trailerLength, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionComparisonProto, + type: :list + ) + + field(:vehicleHeight, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionComparisonProto, + type: :list + ) + + field(:vehicleLength, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionComparisonProto, + type: :list + ) + + field(:vehicleWeight, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreWeightComparisonProto, + type: :list + ) + + field(:vehicleWidth, + as: GoogleApi.ContentWarehouse.V1.Model.GeostoreDimensionComparisonProto, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreVehicleAttributeFilterProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreVehicleAttributeFilterProto.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GeostoreVehicleAttributeFilterProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_vertical_ordering_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_vertical_ordering_proto.ex new file mode 100644 index 0000000000..1714bb0e4f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_vertical_ordering_proto.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreVerticalOrderingProto do + @moduledoc """ + A proto representing a vertical ordering of a feature. NOTE: This shouldn’t be used if a more specific field can be used instead. E.g., for TYPE_SEGMENT features grade_level field should be preferred. For indoor features RELATION_ON_LEVEL should be preferred. See go/aboutgrades for comparison of various types of levels available. + + ## Attributes + + * `level` (*type:* `number()`, *default:* `nil`) - The level represents the relative vertical ordering of a feature among all overlapping features. For example, we may have features along freeway surface have level = 0, and features on an overpass have level = 1. NOTE: It’s assumed that all features have level 0 by default, so that it’s not necessary for all overlapping features to have this set. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :level => number() | nil + } + + field(:level) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreVerticalOrderingProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreVerticalOrderingProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreVerticalOrderingProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_weight_comparison_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_weight_comparison_proto.ex new file mode 100644 index 0000000000..0de8f7d985 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_weight_comparison_proto.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreWeightComparisonProto do + @moduledoc """ + A weight value tagged with a comparison operator. + + ## Attributes + + * `comparison` (*type:* `String.t`, *default:* `nil`) - + * `comparisonOperator` (*type:* `String.t`, *default:* `nil`) - + * `weightWithUnit` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GeostoreWeightProto.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :comparison => String.t() | nil, + :comparisonOperator => String.t() | nil, + :weightWithUnit => GoogleApi.ContentWarehouse.V1.Model.GeostoreWeightProto.t() | nil + } + + field(:comparison) + field(:comparisonOperator) + field(:weightWithUnit, as: GoogleApi.ContentWarehouse.V1.Model.GeostoreWeightProto) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreWeightComparisonProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreWeightComparisonProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreWeightComparisonProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_weight_proto.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_weight_proto.ex new file mode 100644 index 0000000000..cedefbdb20 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/geostore_weight_proto.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GeostoreWeightProto do + @moduledoc """ + A weight with a numerical value and unit. + + ## Attributes + + * `unit` (*type:* `String.t`, *default:* `nil`) - + * `weight` (*type:* `number()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :unit => String.t() | nil, + :weight => number() | nil + } + + field(:unit) + field(:weight) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreWeightProto do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GeostoreWeightProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GeostoreWeightProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_anchor_label.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_anchor_label.ex new file mode 100644 index 0000000000..64ce2a0107 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_anchor_label.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocAnchorLabel do + @moduledoc """ + An anchor label can be attached to any element to give it a reference address. LogicalEntity links (see goodoc-semantics.proto) may use anchor labels to point to goodoc elements (they may also use indices to locate the element, but the indices could become invalid if the goodocs are allowed to mutate). Multiple elements may have the same anchor. + + ## Attributes + + * `Anchor` (*type:* `String.t`, *default:* `nil`) - There is a generic method for composing such strings. Please take a look at GoodocUtils::GenerateUniqueAnchorName(...) in ocr/goodoc/goodoc-utils.h. + * `anchorScope` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Anchor => String.t() | nil, + :anchorScope => integer() | nil + } + + field(:Anchor) + field(:anchorScope) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocAnchorLabel do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocAnchorLabel.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocAnchorLabel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_bounding_box.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_bounding_box.ex new file mode 100644 index 0000000000..144b01da5a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_bounding_box.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox do + @moduledoc """ + Bounding box for page structural elements: pictures, paragraphs, characters, etc. + + ## Attributes + + * `Height` (*type:* `integer()`, *default:* `nil`) - + * `Label` (*type:* `integer()`, *default:* `nil`) - Optional magic label, so objects can be sorted on bounding box dimensions easily + * `Left` (*type:* `integer()`, *default:* `nil`) - BoundingBox coordinates and sizes are expressed in pixels + * `Top` (*type:* `integer()`, *default:* `nil`) - + * `Width` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Height => integer() | nil, + :Label => integer() | nil, + :Left => integer() | nil, + :Top => integer() | nil, + :Width => integer() | nil + } + + field(:Height) + field(:Label) + field(:Left) + field(:Top) + field(:Width) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_box_partitions.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_box_partitions.ex new file mode 100644 index 0000000000..a9e2aafd33 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_box_partitions.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocBoxPartitions do + @moduledoc """ + A way to specify a simple partitioning of a BoundingBox into a sequence of sub-boxes. +----------------------------------------------------+ | | | | | | | span(0) | (1) | (2) | (3) | (4) | | | | | | | +----------------------------------------------------+ This representation can, for example, be used to store coarse Symbol boundaries within a Word (see Word.CompactSymbolBoxes below) instead of per-Symbol BoundingBoxes, for saving space. + + ## Attributes + + * `direction` (*type:* `integer()`, *default:* `nil`) - + * `span` (*type:* `list(integer())`, *default:* `nil`) - "span" is width or height, determined by "direction". If there are k partitions, then there are k - 1 "span" values, one for each except the last symbol (which is redundant). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :direction => integer() | nil, + :span => list(integer()) | nil + } + + field(:direction) + field(:span, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocBoxPartitions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocBoxPartitions.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocBoxPartitions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_break_label.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_break_label.ex new file mode 100644 index 0000000000..60a2d39dfd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_break_label.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocBreakLabel do + @moduledoc """ + Break label + + ## Attributes + + * `BreakLabelType` (*type:* `integer()`, *default:* `nil`) - + * `isPrefix` (*type:* `boolean()`, *default:* `nil`) - True if break prepends the element + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :BreakLabelType => integer() | nil, + :isPrefix => boolean() | nil + } + + field(:BreakLabelType) + field(:isPrefix) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocBreakLabel do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocBreakLabel.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocBreakLabel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_char_label.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_char_label.ex new file mode 100644 index 0000000000..8efb57bcb0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_char_label.ex @@ -0,0 +1,106 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocCharLabel do + @moduledoc """ + Font label + + ## Attributes + + * `BaseLine` (*type:* `integer()`, *default:* `nil`) - The shift of a character from the base line of the string in pixels + * `CharacterHeight` (*type:* `integer()`, *default:* `nil`) - Height of small characters in pixels on the source image + * `Color` (*type:* `integer()`, *default:* `nil`) - The foreground color of the symbol; the default color is 0 (black) + * `Confidence` (*type:* `integer()`, *default:* `nil`) - Symbol recognition confidence from OCR. Range depends upon OCR Engine. + * `FontId` (*type:* `integer()`, *default:* `nil`) - The font ID refers to the fonts table in the document header + * `FontSize` (*type:* `integer()`, *default:* `nil`) - Size in points (JFYI: point is 1/72"). This is rounded to the nearest whole number. + * `FontSizeFloat` (*type:* `number()`, *default:* `nil`) - Size in points represented as float. + * `FontType` (*type:* `integer()`, *default:* `nil`) - + * `HasUncertainHeight` (*type:* `boolean()`, *default:* `nil`) - If CharacterHeight is defined uncertainly + * `HorizontalScale` (*type:* `integer()`, *default:* `nil`) - The horizontal scaling for a character, in percents. The default value for this property is 100, which corresponds to no scaling. + * `IsBold` (*type:* `boolean()`, *default:* `nil`) - + * `IsItalic` (*type:* `boolean()`, *default:* `nil`) - + * `IsSmallCaps` (*type:* `boolean()`, *default:* `nil`) - + * `IsStrikeout` (*type:* `boolean()`, *default:* `nil`) - + * `IsSubscript` (*type:* `boolean()`, *default:* `nil`) - + * `IsSuperscript` (*type:* `boolean()`, *default:* `nil`) - + * `IsSuspicious` (*type:* `boolean()`, *default:* `nil`) - If OCR Engine marked the character as "suspicious" (this character is likely to be recognized incorrectly). + * `IsUnderlined` (*type:* `boolean()`, *default:* `nil`) - + * `NotOcrablePerQA` (*type:* `boolean()`, *default:* `nil`) - True if a QA operator has marked this as not OCRable. This is used for complex equations, scripts that the operator can't type, or handwriting. + * `Penalty` (*type:* `integer()`, *default:* `nil`) - Symbol-level penalty from the garbage text detector. Lower is better; range = [0,100]. + * `SerifProbability` (*type:* `integer()`, *default:* `nil`) - The probability that a character is written with a Serif font + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :BaseLine => integer() | nil, + :CharacterHeight => integer() | nil, + :Color => integer() | nil, + :Confidence => integer() | nil, + :FontId => integer() | nil, + :FontSize => integer() | nil, + :FontSizeFloat => number() | nil, + :FontType => integer() | nil, + :HasUncertainHeight => boolean() | nil, + :HorizontalScale => integer() | nil, + :IsBold => boolean() | nil, + :IsItalic => boolean() | nil, + :IsSmallCaps => boolean() | nil, + :IsStrikeout => boolean() | nil, + :IsSubscript => boolean() | nil, + :IsSuperscript => boolean() | nil, + :IsSuspicious => boolean() | nil, + :IsUnderlined => boolean() | nil, + :NotOcrablePerQA => boolean() | nil, + :Penalty => integer() | nil, + :SerifProbability => integer() | nil + } + + field(:BaseLine) + field(:CharacterHeight) + field(:Color) + field(:Confidence) + field(:FontId) + field(:FontSize) + field(:FontSizeFloat) + field(:FontType) + field(:HasUncertainHeight) + field(:HorizontalScale) + field(:IsBold) + field(:IsItalic) + field(:IsSmallCaps) + field(:IsStrikeout) + field(:IsSubscript) + field(:IsSuperscript) + field(:IsSuspicious) + field(:IsUnderlined) + field(:NotOcrablePerQA) + field(:Penalty) + field(:SerifProbability) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocCharLabel do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocCharLabel.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocCharLabel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document.ex new file mode 100644 index 0000000000..3ab50a11b8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocDocument do + @moduledoc """ + Top-level representation of OCRed document + + ## Attributes + + * `EditingHistory` (*type:* `list(String.t)`, *default:* `nil`) - Debug info, recording the history of any editing done through the interface in goodoc-editing.h. The strings look like "MoveParagraph(page_index = 0, source_block_index = 3, ...); + * `LogicalEntity` (*type:* `list(String.t)`, *default:* `nil`) - Logical entities are stored as blobs. Depending on the kind of thing this is a goodoc of, a separate .proto file is expected to define the logical entity structure. Hence we can still parse this as a goodoc for people who dont care about this, and people who care about this can parse it specifically. ocr/goodoc/logical-entity-utils.h has methods to read and write these. See Goodoc++ doc + * `LogicalEntityMessageName` (*type:* `list(String.t)`, *default:* `nil`) - The names of the proto messages serialized in LogicalEntity, one for each LogicalEntity. The repetitions should number 0 to leave this unspecified, or they should equal the number of LogicalEntity strings. + * `SubDocuments` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocDocument.t)`, *default:* `nil`) - For multi-goodoc documents + * `header` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentHeader.t`, *default:* `nil`) - + * `page` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPage.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :EditingHistory => list(String.t()) | nil, + :LogicalEntity => list(String.t()) | nil, + :LogicalEntityMessageName => list(String.t()) | nil, + :SubDocuments => list(GoogleApi.ContentWarehouse.V1.Model.GoodocDocument.t()) | nil, + :header => GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentHeader.t() | nil, + :page => list(GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPage.t()) | nil + } + + field(:EditingHistory, type: :list) + field(:LogicalEntity, type: :list) + field(:LogicalEntityMessageName, type: :list) + field(:SubDocuments, as: GoogleApi.ContentWarehouse.V1.Model.GoodocDocument, type: :list) + field(:header, as: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentHeader) + field(:page, as: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPage, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocDocument do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocDocument.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocDocument do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_header.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_header.ex new file mode 100644 index 0000000000..a12f3db8c0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_header.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentHeader do + @moduledoc """ + + + ## Attributes + + * `OcrEngineId` (*type:* `String.t`, *default:* `nil`) - + * `OcrEngineVersion` (*type:* `String.t`, *default:* `nil`) - + * `font` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentHeaderFont.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :OcrEngineId => String.t() | nil, + :OcrEngineVersion => String.t() | nil, + :font => list(GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentHeaderFont.t()) | nil + } + + field(:OcrEngineId) + field(:OcrEngineVersion) + field(:font, as: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentHeaderFont, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentHeader do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentHeader.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentHeader do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_header_font.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_header_font.ex new file mode 100644 index 0000000000..cbd5dbe5ca --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_header_font.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentHeaderFont do + @moduledoc """ + + + ## Attributes + + * `FontId` (*type:* `integer()`, *default:* `nil`) - + * `FontName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :FontId => integer() | nil, + :FontName => String.t() | nil + } + + field(:FontId) + field(:FontName) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentHeaderFont do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentHeaderFont.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentHeaderFont do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_page.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_page.ex new file mode 100644 index 0000000000..1799a61140 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_page.ex @@ -0,0 +1,88 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPage do + @moduledoc """ + + + ## Attributes + + * `GarbageDetectorChangeList` (*type:* `integer()`, *default:* `nil`) - If the garbage text detector was run, the changelist that the binary was sync'ed to (or -1 if unknown), and whether the settings had their production values (or false if unknown). + * `GarbageDetectorWasProduction` (*type:* `boolean()`, *default:* `nil`) - + * `Height` (*type:* `integer()`, *default:* `nil`) - Height in pixels + * `HorizontalDpi` (*type:* `integer()`, *default:* `nil`) - Horizontal resolution in DPI. + * `Label` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocLabel.t`, *default:* `nil`) - + * `PornScore` (*type:* `float()`, *default:* `nil`) - Score of porn classifier from analyzing images on page. Note: This should be named porn_score, but we use PornScore as the name in order to be consistent with the rest of this proto. + * `TextConfidence` (*type:* `integer()`, *default:* `nil`) - Page text recognition confidence. Range depends on the algorithm but should be consistent in a given volume. 0 is bad, 100 is good. + * `VerticalDpi` (*type:* `integer()`, *default:* `nil`) - Vertical resolution in DPI. + * `Width` (*type:* `integer()`, *default:* `nil`) - Width in pixels + * `block` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageBlock.t)`, *default:* `nil`) - + * `mergedpageinfo` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageMergedPageInfo.t)`, *default:* `nil`) - + * `postOcrConfidence` (*type:* `boolean()`, *default:* `nil`) - Whether page-level text confidences and other summary data were computed by PostOcrUtils instead of the now-obsolete GarbageTextDetector + * `stats` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocSummaryStats.t`, *default:* `nil`) - Page level stats (font size, line spacing, etc.) + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :GarbageDetectorChangeList => integer() | nil, + :GarbageDetectorWasProduction => boolean() | nil, + :Height => integer() | nil, + :HorizontalDpi => integer() | nil, + :Label => GoogleApi.ContentWarehouse.V1.Model.GoodocLabel.t() | nil, + :PornScore => float() | nil, + :TextConfidence => integer() | nil, + :VerticalDpi => integer() | nil, + :Width => integer() | nil, + :block => list(GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageBlock.t()) | nil, + :mergedpageinfo => + list(GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageMergedPageInfo.t()) | nil, + :postOcrConfidence => boolean() | nil, + :stats => GoogleApi.ContentWarehouse.V1.Model.GoodocSummaryStats.t() | nil + } + + field(:GarbageDetectorChangeList) + field(:GarbageDetectorWasProduction) + field(:Height) + field(:HorizontalDpi) + field(:Label, as: GoogleApi.ContentWarehouse.V1.Model.GoodocLabel) + field(:PornScore) + field(:TextConfidence) + field(:VerticalDpi) + field(:Width) + field(:block, as: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageBlock, type: :list) + + field(:mergedpageinfo, + as: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageMergedPageInfo, + type: :list + ) + + field(:postOcrConfidence) + field(:stats, as: GoogleApi.ContentWarehouse.V1.Model.GoodocSummaryStats) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPage do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPage.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_page_block.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_page_block.ex new file mode 100644 index 0000000000..d8a3297cc5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_page_block.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageBlock do + @moduledoc """ + + + ## Attributes + + * `BlockType` (*type:* `integer()`, *default:* `nil`) - + * `Box` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t`, *default:* `nil`) - + * `Label` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocLabel.t`, *default:* `nil`) - + * `OrientationLabel` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocOrientationLabel.t`, *default:* `nil`) - Which way is upright for this block, and what is the reading order (applicable if there is text here). + * `Paragraph` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocParagraph.t)`, *default:* `nil`) - + * `RotatedBox` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox.t`, *default:* `nil`) - If RotatedBox is set, Box must be set as well. See RotatedBoundingBox. + * `TextConfidence` (*type:* `integer()`, *default:* `nil`) - Block text recognition confidence. Range depends on the algorithm but should be consistent in a given volume. 0 is bad, 100 is good. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :BlockType => integer() | nil, + :Box => GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t() | nil, + :Label => GoogleApi.ContentWarehouse.V1.Model.GoodocLabel.t() | nil, + :OrientationLabel => + GoogleApi.ContentWarehouse.V1.Model.GoodocOrientationLabel.t() | nil, + :Paragraph => list(GoogleApi.ContentWarehouse.V1.Model.GoodocParagraph.t()) | nil, + :RotatedBox => GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox.t() | nil, + :TextConfidence => integer() | nil + } + + field(:BlockType) + field(:Box, as: GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox) + field(:Label, as: GoogleApi.ContentWarehouse.V1.Model.GoodocLabel) + field(:OrientationLabel, as: GoogleApi.ContentWarehouse.V1.Model.GoodocOrientationLabel) + field(:Paragraph, as: GoogleApi.ContentWarehouse.V1.Model.GoodocParagraph, type: :list) + field(:RotatedBox, as: GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox) + field(:TextConfidence) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageBlock do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageBlock.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageBlock do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_page_merged_page_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_page_merged_page_info.ex new file mode 100644 index 0000000000..1a5c742d3c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_document_page_merged_page_info.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageMergedPageInfo do + @moduledoc """ + If we have merged text from another goodoc into this one (for example, from a PDF text layer goodoc into an OCR'd goodoc), we record some source goodoc info here. + + ## Attributes + + * `OcrEngineId` (*type:* `String.t`, *default:* `nil`) - + * `OcrEngineVersion` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :OcrEngineId => String.t() | nil, + :OcrEngineVersion => String.t() | nil + } + + field(:OcrEngineId) + field(:OcrEngineVersion) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageMergedPageInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageMergedPageInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPageMergedPageInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_font_size_stats.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_font_size_stats.ex new file mode 100644 index 0000000000..9b768594c7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_font_size_stats.ex @@ -0,0 +1,73 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocFontSizeStats do + @moduledoc """ + Statistics about a particular font size (from CharLabel.FontSize) aggregated over a range of symbols + + ## Attributes + + * `fontId` (*type:* `integer()`, *default:* `nil`) - CharLabel.FontId and FontSize + * `fontSize` (*type:* `integer()`, *default:* `nil`) - + * `medianHeight` (*type:* `integer()`, *default:* `nil`) - The measurements are in pixels + * `medianLineHeight` (*type:* `integer()`, *default:* `nil`) - top to bottom + * `medianLineSpace` (*type:* `integer()`, *default:* `nil`) - bottom to next top in para + * `medianLineSpan` (*type:* `integer()`, *default:* `nil`) - top to next top in para + * `medianWidth` (*type:* `integer()`, *default:* `nil`) - + * `numLineSpaces` (*type:* `integer()`, *default:* `nil`) - Lines (out of num_lines) that have a successor line within their para + * `numLines` (*type:* `integer()`, *default:* `nil`) - Line stats for this font. "top" corresponds to the highest ascender and "bottom" to the lowest descender. num_lines = # lines with > 50% symbols having this font + * `numSymbols` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fontId => integer() | nil, + :fontSize => integer() | nil, + :medianHeight => integer() | nil, + :medianLineHeight => integer() | nil, + :medianLineSpace => integer() | nil, + :medianLineSpan => integer() | nil, + :medianWidth => integer() | nil, + :numLineSpaces => integer() | nil, + :numLines => integer() | nil, + :numSymbols => integer() | nil + } + + field(:fontId) + field(:fontSize) + field(:medianHeight) + field(:medianLineHeight) + field(:medianLineSpace) + field(:medianLineSpan) + field(:medianWidth) + field(:numLineSpaces) + field(:numLines) + field(:numSymbols) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocFontSizeStats do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocFontSizeStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocFontSizeStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_label.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_label.ex new file mode 100644 index 0000000000..b93d234cbb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_label.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocLabel do + @moduledoc """ + Label aggregates all kinds of optional characteristics of page elements. + + ## Attributes + + * `AnchorLabel` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocAnchorLabel.t)`, *default:* `nil`) - AnchorLabel identifies a link target. + * `BreakLabel` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocBreakLabel.t`, *default:* `nil`) - + * `CharLabel` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocCharLabel.t`, *default:* `nil`) - CharLabel is specifically intended for symbols + * `LanguageLabel` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocLanguageLabel.t)`, *default:* `nil`) - Languages used in the element (page, block, paragraph or word). Ordered by dominant-language first. Note: content scanjobs processed by the garbage_text_detector before CL 9223538 (Dec. 2008) have LanguageLabels in arbitrary order (within Page and Block elements) -- the confidence value should be inspected to find the dominant language guess for these, rather than just taking the first. + * `SemanticLabel` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabel.t`, *default:* `nil`) - SemanticLabel is defined in goodoc-semantics.proto, it allows rich annotation of content, identifying the nature of page elements. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :AnchorLabel => list(GoogleApi.ContentWarehouse.V1.Model.GoodocAnchorLabel.t()) | nil, + :BreakLabel => GoogleApi.ContentWarehouse.V1.Model.GoodocBreakLabel.t() | nil, + :CharLabel => GoogleApi.ContentWarehouse.V1.Model.GoodocCharLabel.t() | nil, + :LanguageLabel => + list(GoogleApi.ContentWarehouse.V1.Model.GoodocLanguageLabel.t()) | nil, + :SemanticLabel => GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabel.t() | nil + } + + field(:AnchorLabel, as: GoogleApi.ContentWarehouse.V1.Model.GoodocAnchorLabel, type: :list) + field(:BreakLabel, as: GoogleApi.ContentWarehouse.V1.Model.GoodocBreakLabel) + field(:CharLabel, as: GoogleApi.ContentWarehouse.V1.Model.GoodocCharLabel) + field(:LanguageLabel, as: GoogleApi.ContentWarehouse.V1.Model.GoodocLanguageLabel, type: :list) + field(:SemanticLabel, as: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabel) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocLabel do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocLabel.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocLabel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_language_combination_language.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_language_combination_language.ex new file mode 100644 index 0000000000..befd71718f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_language_combination_language.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocLanguageCombinationLanguage do + @moduledoc """ + Weighted language + + ## Attributes + + * `bcp47Tag` (*type:* `String.t`, *default:* `nil`) - Bcp47 language code. Note, this is not the same as OceanCode used by goodoc::Document. + * `weight` (*type:* `number()`, *default:* `nil`) - Weight of language. This specifies how likely it is to see the language in the input text. The values don't have to add up to 1. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bcp47Tag => String.t() | nil, + :weight => number() | nil + } + + field(:bcp47Tag) + field(:weight) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocLanguageCombinationLanguage do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocLanguageCombinationLanguage.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocLanguageCombinationLanguage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_language_label.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_language_label.ex new file mode 100644 index 0000000000..4b3bfb66ad --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_language_label.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocLanguageLabel do + @moduledoc """ + Language label + + ## Attributes + + * `ClosestLanguageId` (*type:* `integer()`, *default:* `nil`) - Closest id from i18n/languages/proto/languages.proto; caveat: may not accurately capture the language. GoodocLanguageCodeToLanguage() declared in ocr/goodoc/goodoc-utils.h may be used to convert a Language enum (i18n/languages/proto/languages.proto) to a string suitable for this field. + * `Confidence` (*type:* `integer()`, *default:* `nil`) - Confidence level on that language, between 0 and 100 + * `LanguageCode` (*type:* `String.t`, *default:* `nil`) - Old (Ocean) Language Code Usage: The language code is inferred during the running of the Garbage Text Detector and gets set at the paragraph, block and page level. Language code is a string of 3 or more characters. The first 3 letters specify the language, according to ISO 639. Optionally, the 3-letter code can be extended with an underscore and a language variant specifier. Specifiers exist for regional variants or for different forms of language spelling. The regional variants are specified as 2-letter country code, according to ISO 3166. Some examples: Standard "por" - Portuguese, standard "rus" - Russian, standard Regional variants: "por_br" - Portuguese, Brazilian "eng_us" - English, United States Variants of spelling: "rus_old" - Russian, old spelling "chi_tra" - Chinese, traditional "ger_new" - German, new spelling LanguageToGoodocLanguageCode() declared in ocr/goodoc/goodoc-utils.h may be used to convert a Language enum (i18n/languages/proto/languages.proto) to a string suitable for this field. New Language Code Usage: Most of the usages described above were standardized in BCP 47, and these codes are the new stanadard to be used in this field. To load either new or old language codes to form LanguageCode objects, use the function FromOceanCode() in ocr/quality/lang_util.h Note that the function ocr::FromOceanCode is capable of transforming either version of the LanguageCode to a C++ i18n_identifiers::LanguageCode. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ClosestLanguageId => integer() | nil, + :Confidence => integer() | nil, + :LanguageCode => String.t() | nil + } + + field(:ClosestLanguageId) + field(:Confidence) + field(:LanguageCode) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocLanguageLabel do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocLanguageLabel.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocLanguageLabel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_logical_entity.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_logical_entity.ex new file mode 100644 index 0000000000..b2f5075aed --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_logical_entity.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntity do + @moduledoc """ + A logical entity in the abstract is just a group of links to the goodoc. Depending on the kind of item, a separate proto file should extend this to define the logical structure for that kind. For example. newspapers.proto defines the logical entity for newspapers. LogicalEntity is also used within some SemanticLabels, for example, for a table-of-contents link. + + ## Attributes + + * `Metadata` (*type:* `String.t`, *default:* `nil`) - + * `link` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntityLink.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Metadata => String.t() | nil, + :link => list(GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntityLink.t()) | nil + } + + field(:Metadata) + field(:link, as: GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntityLink, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntity do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntity.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_logical_entity_link.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_logical_entity_link.ex new file mode 100644 index 0000000000..2b1444ac87 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_logical_entity_link.ex @@ -0,0 +1,70 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntityLink do + @moduledoc """ + NOTE(gponcin) 2008/11 This is repeated for articles where we may have multiple links in one entity. From Vivek (Atlantis): "The block segmenter outputs a list of headlines on a page as a single logical entity that we attach to the logicalentity(1) for the goodoc." + + ## Attributes + + * `Anchor` (*type:* `String.t`, *default:* `nil`) - The preferred way to link to an element is to create an AnchorLabel in the target element and name it here. Multiple elements may contain the same Anchor string. + * `BlockId` (*type:* `integer()`, *default:* `nil`) - + * `DocId` (*type:* `integer()`, *default:* `nil`) - Links may also specifically locate the target element with the following indices. Note that during the course of layout analysis, goodoc elements may move around, so such hard links should be created only very late (or not at all -- Anchors would be more reliable target addresses). + * `PageId` (*type:* `integer()`, *default:* `nil`) - + * `ParagraphId` (*type:* `integer()`, *default:* `nil`) - + * `RouteId` (*type:* `integer()`, *default:* `nil`) - + * `SymbolId` (*type:* `integer()`, *default:* `nil`) - + * `Url` (*type:* `String.t`, *default:* `nil`) - If not defined, link points to the current doc + * `WordId` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Anchor => String.t() | nil, + :BlockId => integer() | nil, + :DocId => integer() | nil, + :PageId => integer() | nil, + :ParagraphId => integer() | nil, + :RouteId => integer() | nil, + :SymbolId => integer() | nil, + :Url => String.t() | nil, + :WordId => integer() | nil + } + + field(:Anchor) + field(:BlockId) + field(:DocId) + field(:PageId) + field(:ParagraphId) + field(:RouteId) + field(:SymbolId) + field(:Url) + field(:WordId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntityLink do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntityLink.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntityLink do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_ordinal.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_ordinal.ex new file mode 100644 index 0000000000..7e53a40696 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_ordinal.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocOrdinal do + @moduledoc """ + An Ordinal message represents a single ordinal component of a page number. It encodes the printed or inferred numbering style (Roman, ASCII, etc.) and the ordinal value of the component. An optional set of variable is defined in order to express a sectioned ordinal. A sectioned ordinal may appear in certain page numbering styles, for example "12-1" where "12" identifies a chapter and "1" identifies the page within it. This case will be encoded with value 1 and section_value 12 both of type ASCII. + + ## Attributes + + * `implicit` (*type:* `String.t`, *default:* `nil`) - + * `sectionStringValue` (*type:* `String.t`, *default:* `nil`) - + * `sectionValue` (*type:* `integer()`, *default:* `nil`) - + * `sectionValueType` (*type:* `String.t`, *default:* `nil`) - The following vars describe the section component of an ordinal (if exists). They are used to express situation where a page number has a section component, usually denoating the chapter number. For example pages 5-14, 5-15 will both have the common section 5. (If exists). The semantcis of the section variables correspond to that of the primary part of the ordinal. (Described above). + * `stringValue` (*type:* `String.t`, *default:* `nil`) - The string page value. + * `value` (*type:* `integer()`, *default:* `nil`) - The numeric page value. + * `valueDelta` (*type:* `String.t`, *default:* `nil`) - The delta in which the value increases between pages. + * `valueType` (*type:* `String.t`, *default:* `nil`) - A value type from the Type enum above. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :implicit => String.t() | nil, + :sectionStringValue => String.t() | nil, + :sectionValue => integer() | nil, + :sectionValueType => String.t() | nil, + :stringValue => String.t() | nil, + :value => integer() | nil, + :valueDelta => String.t() | nil, + :valueType => String.t() | nil + } + + field(:implicit) + field(:sectionStringValue) + field(:sectionValue) + field(:sectionValueType) + field(:stringValue) + field(:value) + field(:valueDelta) + field(:valueType) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocOrdinal do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocOrdinal.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocOrdinal do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_orientation_label.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_orientation_label.ex new file mode 100644 index 0000000000..7d078f712c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_orientation_label.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocOrientationLabel do + @moduledoc """ + OrientationLabel groups the details about orientation and reading order. + + ## Attributes + + * `deskewAngle` (*type:* `number()`, *default:* `nil`) - After rotating so that the text orientation is upright, how many radians does one have to rotate the block anti-clockwise for it to be level? We guarantee: -Pi/4 <= deskew_angle <= Pi/4 + * `mirrored` (*type:* `boolean()`, *default:* `nil`) - Whether a text line is mirrored (e.g. reflected in a shiny surface or seen through the opposite side of a storefront window). The intent is that this is a quality of the text line image. It needs to be reflected according to a vertical axis along the direction of upright characters to make it readable. This does not affect the shape of the bounding box. A mirrored line with top to bottom writing remains top to bottom. A mirrored horizontal line will flip left to right. However any child entities (symbols) will remain in the same order, and the writing direction imposed by the language (ltr or rtl) will remain the same. + * `orientation` (*type:* `String.t`, *default:* `nil`) - + * `textlineOrder` (*type:* `String.t`, *default:* `nil`) - + * `writingDirection` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deskewAngle => number() | nil, + :mirrored => boolean() | nil, + :orientation => String.t() | nil, + :textlineOrder => String.t() | nil, + :writingDirection => String.t() | nil + } + + field(:deskewAngle) + field(:mirrored) + field(:orientation) + field(:textlineOrder) + field(:writingDirection) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocOrientationLabel do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocOrientationLabel.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocOrientationLabel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_overrides.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_overrides.ex new file mode 100644 index 0000000000..38eed09c07 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_overrides.ex @@ -0,0 +1,70 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocOverrides do + @moduledoc """ + This message specifies structure "overrides" to apply: it can be used to force certain kinds of GoodocToHTML renderings of elements. + + ## Attributes + + * `blockImagination` (*type:* `String.t`, *default:* `nil`) - For text blocks only: do not allow this block to be turned into an image when rendering, even if your algorithms want to do so: + * `doNotExpandGraphicBox` (*type:* `boolean()`, *default:* `nil`) - For graphic blocks, we often expand the block a bit for rendering, to compensate for bad image segmentation. do_not_expand_graphic_box forces this behavior to be turned off. + * `fullPageAsImage` (*type:* `String.t`, *default:* `nil`) - For Pages only: explicitly specify whether or not this page should be rendered fully as an image + * `fullPageLineated` (*type:* `String.t`, *default:* `nil`) - For Pages only: explicitly specify whether or not all text on this page should be treated as "LINEATED" + * `fullPageSkipped` (*type:* `String.t`, *default:* `nil`) - For Pages only: explicitly specify whether or not this page should be skipped. + * `needNotSuppressPhoto` (*type:* `boolean()`, *default:* `nil`) - This GRAPHIC block's image can be shown even when GoodocToHTMLOptions.suppress_photos_with_this is specified. + * `pageBreakBefore` (*type:* `String.t`, *default:* `nil`) - For blocks: explicitly specify whether or not this block should get a page-break before it. + * `style` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocOverridesStyle.t)`, *default:* `nil`) - + * `wordHtml` (*type:* `String.t`, *default:* `nil`) - For Words only: replace the rendered HTML by this: + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :blockImagination => String.t() | nil, + :doNotExpandGraphicBox => boolean() | nil, + :fullPageAsImage => String.t() | nil, + :fullPageLineated => String.t() | nil, + :fullPageSkipped => String.t() | nil, + :needNotSuppressPhoto => boolean() | nil, + :pageBreakBefore => String.t() | nil, + :style => list(GoogleApi.ContentWarehouse.V1.Model.GoodocOverridesStyle.t()) | nil, + :wordHtml => String.t() | nil + } + + field(:blockImagination) + field(:doNotExpandGraphicBox) + field(:fullPageAsImage) + field(:fullPageLineated) + field(:fullPageSkipped) + field(:needNotSuppressPhoto) + field(:pageBreakBefore) + field(:style, as: GoogleApi.ContentWarehouse.V1.Model.GoodocOverridesStyle, type: :list) + field(:wordHtml) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocOverrides do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocOverrides.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocOverrides do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_overrides_style.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_overrides_style.ex new file mode 100644 index 0000000000..1e072bc6d1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_overrides_style.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocOverridesStyle do + @moduledoc """ + Extra css styles to apply + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - css attribute name: "margin-left", for eg. + * `value` (*type:* `String.t`, *default:* `nil`) - css attribute vale: "1em", for eg. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :value => String.t() | nil + } + + field(:name) + field(:value) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocOverridesStyle do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocOverridesStyle.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocOverridesStyle do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_paragraph.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_paragraph.ex new file mode 100644 index 0000000000..016b7c8cdd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_paragraph.ex @@ -0,0 +1,98 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocParagraph do + @moduledoc """ + Represents a paragraph of text in OCRed content. + + ## Attributes + + * `Box` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t`, *default:* `nil`) - + * `FirstLineIndent` (*type:* `integer()`, *default:* `nil`) - + * `Label` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocLabel.t`, *default:* `nil`) - + * `LeftIndent` (*type:* `integer()`, *default:* `nil`) - + * `LineSpacing` (*type:* `integer()`, *default:* `nil`) - + * `OrientationLabel` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocOrientationLabel.t`, *default:* `nil`) - Which way is upright for this paragraph and what is the dominant reading order? + * `RightIndent` (*type:* `integer()`, *default:* `nil`) - + * `RotatedBox` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox.t`, *default:* `nil`) - If RotatedBox is set, Box must be set as well. See RotatedBoundingBox. + * `SpaceAfter` (*type:* `integer()`, *default:* `nil`) - + * `SpaceBefore` (*type:* `integer()`, *default:* `nil`) - + * `SubsumedParagraphProperties` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocParagraph.t)`, *default:* `nil`) - If we merge any paragraphs into this one (through the MergeParagraphWithNext() interface in goodoc-editing.h), then we append the properties of the merged paragraph here, for debugging and to avoid losing any info. Note that the SubsumedParagraphProperties Paragraphs do not contain Routes. + * `TextConfidence` (*type:* `integer()`, *default:* `nil`) - Paragraph text recognition confidence. Range depends on the algorithm but should be consistent in a given volume. 0 is bad, 100 is good. + * `Width` (*type:* `integer()`, *default:* `nil`) - + * `alignment` (*type:* `integer()`, *default:* `nil`) - + * `droppedcap` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphDroppedCap.t`, *default:* `nil`) - + * `route` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphRoute.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Box => GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t() | nil, + :FirstLineIndent => integer() | nil, + :Label => GoogleApi.ContentWarehouse.V1.Model.GoodocLabel.t() | nil, + :LeftIndent => integer() | nil, + :LineSpacing => integer() | nil, + :OrientationLabel => + GoogleApi.ContentWarehouse.V1.Model.GoodocOrientationLabel.t() | nil, + :RightIndent => integer() | nil, + :RotatedBox => GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox.t() | nil, + :SpaceAfter => integer() | nil, + :SpaceBefore => integer() | nil, + :SubsumedParagraphProperties => + list(GoogleApi.ContentWarehouse.V1.Model.GoodocParagraph.t()) | nil, + :TextConfidence => integer() | nil, + :Width => integer() | nil, + :alignment => integer() | nil, + :droppedcap => GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphDroppedCap.t() | nil, + :route => list(GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphRoute.t()) | nil + } + + field(:Box, as: GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox) + field(:FirstLineIndent) + field(:Label, as: GoogleApi.ContentWarehouse.V1.Model.GoodocLabel) + field(:LeftIndent) + field(:LineSpacing) + field(:OrientationLabel, as: GoogleApi.ContentWarehouse.V1.Model.GoodocOrientationLabel) + field(:RightIndent) + field(:RotatedBox, as: GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox) + field(:SpaceAfter) + field(:SpaceBefore) + + field(:SubsumedParagraphProperties, + as: GoogleApi.ContentWarehouse.V1.Model.GoodocParagraph, + type: :list + ) + + field(:TextConfidence) + field(:Width) + field(:alignment) + field(:droppedcap, as: GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphDroppedCap) + field(:route, as: GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphRoute, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocParagraph do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocParagraph.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocParagraph do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_paragraph_dropped_cap.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_paragraph_dropped_cap.ex new file mode 100644 index 0000000000..bc0c9684ce --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_paragraph_dropped_cap.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphDroppedCap do + @moduledoc """ + Information about the paragraph's dropped capital letter + + ## Attributes + + * `Box` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t`, *default:* `nil`) - + * `LettersCount` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Box => GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t() | nil, + :LettersCount => integer() | nil + } + + field(:Box, as: GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox) + field(:LettersCount) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphDroppedCap do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphDroppedCap.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphDroppedCap do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_paragraph_route.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_paragraph_route.ex new file mode 100644 index 0000000000..1d71d870b0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_paragraph_route.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphRoute do + @moduledoc """ + + + ## Attributes + + * `EndPoint` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocRoutePoint.t`, *default:* `nil`) - Route end point + * `StartPoint` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocRoutePoint.t`, *default:* `nil`) - Route start point + * `Weight` (*type:* `integer()`, *default:* `nil`) - Route weight, i.e. route + * `Word` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocWord.t)`, *default:* `nil`) - The array of words on this route + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :EndPoint => GoogleApi.ContentWarehouse.V1.Model.GoodocRoutePoint.t() | nil, + :StartPoint => GoogleApi.ContentWarehouse.V1.Model.GoodocRoutePoint.t() | nil, + :Weight => integer() | nil, + :Word => list(GoogleApi.ContentWarehouse.V1.Model.GoodocWord.t()) | nil + } + + field(:EndPoint, as: GoogleApi.ContentWarehouse.V1.Model.GoodocRoutePoint) + field(:StartPoint, as: GoogleApi.ContentWarehouse.V1.Model.GoodocRoutePoint) + field(:Weight) + field(:Word, as: GoogleApi.ContentWarehouse.V1.Model.GoodocWord, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphRoute do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphRoute.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocParagraphRoute do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_rotated_bounding_box.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_rotated_bounding_box.ex new file mode 100644 index 0000000000..543bc0507e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_rotated_bounding_box.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox do + @moduledoc """ + Similar to goodoc.BoundingBox, but containing an angle of rotation, thus able to represent non-axis-aligned boxes. RotatedBoundingBox can be used in combination with BoundingBox to better represent non-axis-aligned page structural elements. In such case, two bounding boxes can be used per element. A RotatedBoundingBox that is rotated to tightly encompass the element; embedded (as tightly as possible) inside an axis-aligned BoundingBox. Note that there is some amount of ambiguity regarding what angle and vertex to use. Consider a square with axis-aligned diagonals: B / \\ A C \\ / D This can either be represented as a -45 degree rotation around A, a 45 degree rotation around B, a 135 degree rotation around C, or a -135 degree rotation around D. Which one you use depends on your use case, but one recommendation is to use the vertex that would be top left if the reader was reading it in the 'natural' orientation. + + ## Attributes + + * `Angle` (*type:* `number()`, *default:* `nil`) - Angle of rotation of the original non-rotated box around the top left corner of the original non-rotated box, in clockwise degrees from the horizontal. + * `Height` (*type:* `integer()`, *default:* `nil`) - + * `Left` (*type:* `integer()`, *default:* `nil`) - Coordinates and sizes are expressed in pixels, where the top-left pixel is (0, 0). The coordinates refer to the corner of the top-left vertex of the unrotated version of the box. + * `Top` (*type:* `integer()`, *default:* `nil`) - + * `Width` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Angle => number() | nil, + :Height => integer() | nil, + :Left => integer() | nil, + :Top => integer() | nil, + :Width => integer() | nil + } + + field(:Angle) + field(:Height) + field(:Left) + field(:Top) + field(:Width) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_route_point.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_route_point.ex new file mode 100644 index 0000000000..fda8e05469 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_route_point.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocRoutePoint do + @moduledoc """ + + + ## Attributes + + * `RouteIndex` (*type:* `integer()`, *default:* `nil`) - The sequential route number, starts at 0 + * `WordIndex` (*type:* `integer()`, *default:* `nil`) - The sequential word number, starts at 0 + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :RouteIndex => integer() | nil, + :WordIndex => integer() | nil + } + + field(:RouteIndex) + field(:WordIndex) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocRoutePoint do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocRoutePoint.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocRoutePoint do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label.ex new file mode 100644 index 0000000000..a0fbf0dfba --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label.ex @@ -0,0 +1,127 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabel do + @moduledoc """ + Label identifying a logical part of the page content. This applies mostly at Block level or Paragraph level (but can apply to Words or to arbitrary spans if needed). + + ## Attributes + + * `AlternateText` (*type:* `String.t`, *default:* `nil`) - Alternate text for a sequence of the Goodoc, just for the element containing this label, or for a sequence starting from this element to the EndOfSpanningLabel. Typically this is inserted by automatic or manual OCR correction. We use text instead of editing the Goodoc directly since we dont usually have accurate symbol level bboxes for the alternate text. Also the original values from OCR are preserved. It is upto the application to do anything more intelligent like mapping words and finding potential symbol/word bboxes. + * `Attribute` (*type:* `list(String.t)`, *default:* `nil`) - Page elements can be given Attributes refining meaning/role. We keep this flexible by using strings instead of pre-determined enum values. But it is useful to list all such Attributes in use in ocr/goodoc/goodoc-semantics-attributes.h + * `ChapterStart` (*type:* `boolean()`, *default:* `nil`) - Blocks that are at the beginning of chapters have this set: + * `CleanupAnnotation` (*type:* `list(integer())`, *default:* `nil`) - + * `ContinuesFromPreviousPage` (*type:* `boolean()`, *default:* `nil`) - + * `ContinuesFromPreviousPageHyphenated` (*type:* `boolean()`, *default:* `nil`) - When ContinuesFromPreviousPage=true, this bit can be set to note that the word fragment on the previous page ends in a hyphen. + * `ContinuesOnNextPage` (*type:* `boolean()`, *default:* `nil`) - Paragraphs that span across pages can be identified with the following flags. Note that flows just connect Blocks across pages. These continuation flags imply something more specific -- the case of a single logical paragraph split over pages. Only the last Paragraph in the last Block within a given FlowThread() on a page can have ContinuesOnNextPage set. Similarly, only the first Paragraph in the first Block with a given FlowThread() on a page may have ContinuesFromPreviousPage set. + * `EndOfSpanningLabel` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntity.t`, *default:* `nil`) - Normally, a SemanticLabel applies exactly to the goodoc element that it is contained in (usually Block or Paragraph, sometimes Word). Occasionally, we need a SemanticLabel to span across the boundary or end before the boundary. For example, a URL may just be a few words within a Paragraph. In such cases, the SemanticLabel is added to the first element of the span and contains this LogicalEntity pointing to the last element of the span: + * `ExperimentalData` (*type:* `GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - Message set for experimental algorithm data. Use case: We keep a set of features that was computed for the unsupervised caption extraction and store it here. Agora question producer will consume this message set to be embedded in a question. The experimental feature set can then be used later to pair up with ground truth labels for designing a supervised algorithm. Currently holding: o ocean/analysis/content/caption_data.proto's TextualElement + * `Flow` (*type:* `String.t`, *default:* `nil`) - Flow identifies a single sequential unit of text (or other content). It is only set on Blocks -- a flow identifies a sequence of Blocks. The default, main flow is just the empty string. The "FlowThread" of a block is the flow (if non-empty), suffixed with the block appearance. This is computed by GoodocUtils::FlowThread(). Paragraphs may be split over blocks in the same FlowThread, across pages. The following table shows how FlowThread gets computed: ## Flow Appearance FlowThread (empty) UNSPECIFIED "UNSPECIFIED" foo BODY "foo:BODY" Please use lower-case strings for flows (such as article-33-box). One useful way to think of flows is this: A logical unit of interest in a a Document (for example, an article) would be identified by a starting block, an ending block, and a list of flows of interest within the [start, end) span. message Article { (page#, block#): article_start; (page#, block#): article_end; repeated string flows; } The reading order of blocks, paragraphs/etc within this article would be the same order as present in the goodoc itself. Some applications (such as rendering) may want to process the article by running over all the flows together, others (such as indexing) may want to deal with the FlowThreads one after the other. + * `ModificationRecord` (*type:* `String.t`, *default:* `nil`) - This field can be used to record the steps by which AlternateText for a sequence of the Goodoc is generated. + * `PageNumberOrdinal` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocOrdinal.t`, *default:* `nil`) - If Appearence is PAGE_NUMBER: + * `appearance` (*type:* `integer()`, *default:* `nil`) - + * `columndetails` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelColumnDetails.t`, *default:* `nil`) - + * `contentlink` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLink.t`, *default:* `nil`) - + * `editcorrectioncandidate` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelEditCorrectionCandidate.t)`, *default:* `nil`) - + * `overrides` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocOverrides.t`, *default:* `nil`) - Structure overrides: typically manual corrections to goodoc renderings. + * `snippetfilter` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelSnippetFilter.t)`, *default:* `nil`) - + * `tablecelldetails` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelTableCellDetails.t`, *default:* `nil`) - + * `tabledetails` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelTableDetails.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :AlternateText => String.t() | nil, + :Attribute => list(String.t()) | nil, + :ChapterStart => boolean() | nil, + :CleanupAnnotation => list(integer()) | nil, + :ContinuesFromPreviousPage => boolean() | nil, + :ContinuesFromPreviousPageHyphenated => boolean() | nil, + :ContinuesOnNextPage => boolean() | nil, + :EndOfSpanningLabel => + GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntity.t() | nil, + :ExperimentalData => + GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, + :Flow => String.t() | nil, + :ModificationRecord => String.t() | nil, + :PageNumberOrdinal => GoogleApi.ContentWarehouse.V1.Model.GoodocOrdinal.t() | nil, + :appearance => integer() | nil, + :columndetails => + GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelColumnDetails.t() | nil, + :contentlink => + GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLink.t() | nil, + :editcorrectioncandidate => + list( + GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelEditCorrectionCandidate.t() + ) + | nil, + :overrides => GoogleApi.ContentWarehouse.V1.Model.GoodocOverrides.t() | nil, + :snippetfilter => + list(GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelSnippetFilter.t()) | nil, + :tablecelldetails => + GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelTableCellDetails.t() | nil, + :tabledetails => + GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelTableDetails.t() | nil + } + + field(:AlternateText) + field(:Attribute, type: :list) + field(:ChapterStart) + field(:CleanupAnnotation, type: :list) + field(:ContinuesFromPreviousPage) + field(:ContinuesFromPreviousPageHyphenated) + field(:ContinuesOnNextPage) + field(:EndOfSpanningLabel, as: GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntity) + field(:ExperimentalData, as: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet) + field(:Flow) + field(:ModificationRecord) + field(:PageNumberOrdinal, as: GoogleApi.ContentWarehouse.V1.Model.GoodocOrdinal) + field(:appearance) + field(:columndetails, as: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelColumnDetails) + field(:contentlink, as: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLink) + + field(:editcorrectioncandidate, + as: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelEditCorrectionCandidate, + type: :list + ) + + field(:overrides, as: GoogleApi.ContentWarehouse.V1.Model.GoodocOverrides) + + field(:snippetfilter, + as: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelSnippetFilter, + type: :list + ) + + field(:tablecelldetails, + as: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelTableCellDetails + ) + + field(:tabledetails, as: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelTableDetails) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabel do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabel.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_column_details.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_column_details.ex new file mode 100644 index 0000000000..38dd71c883 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_column_details.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelColumnDetails do + @moduledoc """ + If Appearance is COLUMN: + + ## Attributes + + * `Column` (*type:* `integer()`, *default:* `nil`) - + * `Columns` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Column => integer() | nil, + :Columns => integer() | nil + } + + field(:Column) + field(:Columns) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelColumnDetails do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelColumnDetails.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelColumnDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_content_link.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_content_link.ex new file mode 100644 index 0000000000..ecff70fa14 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_content_link.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLink do + @moduledoc """ + If the label is for something that links to another piece of content (in this volume, outside, a url, a citation, etc.). + + ## Attributes + + * `UrlTarget` (*type:* `String.t`, *default:* `nil`) - For URL labels, we note the url here directly (it's also available by grabbing all text symbols within the labeled span). SCHOLARLY_CITATION labels or even CAPTION labels may occasionally contain URLs. + * `citationtarget` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLinkCitationTarget.t`, *default:* `nil`) - + * `involumetarget` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLinkInVolumeTarget.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :UrlTarget => String.t() | nil, + :citationtarget => + GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLinkCitationTarget.t() + | nil, + :involumetarget => + GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLinkInVolumeTarget.t() + | nil + } + + field(:UrlTarget) + + field(:citationtarget, + as: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLinkCitationTarget + ) + + field(:involumetarget, + as: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLinkInVolumeTarget + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLink do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLink.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLink do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_content_link_citation_target.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_content_link_citation_target.ex new file mode 100644 index 0000000000..1e88ab2fc4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_content_link_citation_target.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLinkCitationTarget do + @moduledoc """ + For SCHOLARLY_CITATION labels: + + ## Attributes + + * `Authors` (*type:* `String.t`, *default:* `nil`) - separated by semicolons + * `BibKey` (*type:* `String.t`, *default:* `nil`) - + * `Confidence` (*type:* `float()`, *default:* `nil`) - + * `Title` (*type:* `String.t`, *default:* `nil`) - + * `Year` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Authors => String.t() | nil, + :BibKey => String.t() | nil, + :Confidence => float() | nil, + :Title => String.t() | nil, + :Year => integer() | nil + } + + field(:Authors) + field(:BibKey) + field(:Confidence) + field(:Title) + field(:Year) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLinkCitationTarget do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLinkCitationTarget.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLinkCitationTarget do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_content_link_in_volume_target.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_content_link_in_volume_target.ex new file mode 100644 index 0000000000..d6c282dccb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_content_link_in_volume_target.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLinkInVolumeTarget do + @moduledoc """ + For CAPTION or FOOTNOTE_POINTER or TOC_ENTRY or INDEX_ENTRY or CONTINUATION labels: + + ## Attributes + + * `Confidence` (*type:* `float()`, *default:* `nil`) - + * `LogicalEntity` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntity.t`, *default:* `nil`) - The CAPTION label typically targets the previous or the next Block. The FOOTNOTE_POINTER label typically targets a paragraph in a FOOTNOTE Block. TOC_ENTRY and INDEX_ENTRY labels are links that point to a different page within the volume. CONTINUATION labels also are links that point to a different page within the volume, or maybe even a particular block or paragraph. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Confidence => float() | nil, + :LogicalEntity => GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntity.t() | nil + } + + field(:Confidence) + field(:LogicalEntity, as: GoogleApi.ContentWarehouse.V1.Model.GoodocLogicalEntity) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLinkInVolumeTarget do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLinkInVolumeTarget.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelContentLinkInVolumeTarget do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_edit_correction_candidate.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_edit_correction_candidate.ex new file mode 100644 index 0000000000..5ccb07ccf4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_edit_correction_candidate.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelEditCorrectionCandidate do + @moduledoc """ + If there is more than one edit correction candidate, store all the candidates here. This helps a manual correction utility fire the right kind of question with the relevant options. + + ## Attributes + + * `EditedWord` (*type:* `String.t`, *default:* `nil`) - + * `Probability` (*type:* `float()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :EditedWord => String.t() | nil, + :Probability => float() | nil + } + + field(:EditedWord) + field(:Probability) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelEditCorrectionCandidate do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelEditCorrectionCandidate.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelEditCorrectionCandidate do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_snippet_filter.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_snippet_filter.ex new file mode 100644 index 0000000000..5b577aa3f4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_snippet_filter.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelSnippetFilter do + @moduledoc """ + Recording the output of the snippet filter. We run through a series of snippet filters and store all the conditions that this article passed. A condition is denoted by the "badword_fraction_allowed" in a running window of size - "window_size". If ARTICLE_SNIPPET_NOT_CLEAN annotation is set, this group has 0 items. It can be a part of article logicalentity, but keeping it here for consistency and coherence as SemanticLabel holds all other article metadata. + + ## Attributes + + * `badwordFraction` (*type:* `float()`, *default:* `nil`) - + * `windowSize` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :badwordFraction => float() | nil, + :windowSize => integer() | nil + } + + field(:badwordFraction) + field(:windowSize) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelSnippetFilter do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelSnippetFilter.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelSnippetFilter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_table_cell_details.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_table_cell_details.ex new file mode 100644 index 0000000000..e284d1fc6f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_table_cell_details.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelTableCellDetails do + @moduledoc """ + If Appearance is TABLE_CELL: + + ## Attributes + + * `Column` (*type:* `integer()`, *default:* `nil`) - + * `ColumnSpan` (*type:* `integer()`, *default:* `nil`) - + * `Row` (*type:* `integer()`, *default:* `nil`) - Row and Column are 0-based + * `RowSpan` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Column => integer() | nil, + :ColumnSpan => integer() | nil, + :Row => integer() | nil, + :RowSpan => integer() | nil + } + + field(:Column) + field(:ColumnSpan) + field(:Row) + field(:RowSpan) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelTableCellDetails do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelTableCellDetails.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelTableCellDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_table_details.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_table_details.ex new file mode 100644 index 0000000000..c360be8816 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_semantic_label_table_details.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelTableDetails do + @moduledoc """ + If Appearance is TABLE: + + ## Attributes + + * `Columns` (*type:* `integer()`, *default:* `nil`) - + * `Rows` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Columns => integer() | nil, + :Rows => integer() | nil + } + + field(:Columns) + field(:Rows) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelTableDetails do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelTableDetails.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocSemanticLabelTableDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_summary_stats.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_summary_stats.ex new file mode 100644 index 0000000000..f268ce0962 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_summary_stats.ex @@ -0,0 +1,179 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocSummaryStats do + @moduledoc """ + Goodoc stats for a range of elements, such as one page or a whole book. These stats can be computed using the SummaryStatsCollector class. Some range stats are pre-computed and stored in goodocs/volumes (eg., Page.stats below, and Ocean's CA_VolumeResult.goodoc_stats). + + ## Attributes + + * `numNonGraphicBlocks` (*type:* `integer()`, *default:* `nil`) - + * `medianLineSpan` (*type:* `integer()`, *default:* `nil`) - top to next top in para + * `meanWordsPerLine` (*type:* `integer()`, *default:* `nil`) - + * `meanSymbolsPerLine` (*type:* `integer()`, *default:* `nil`) - + * `medianWidth` (*type:* `integer()`, *default:* `nil`) - + * `numWords` (*type:* `integer()`, *default:* `nil`) - ------ Word stats + * `medianSymbolsPerLine` (*type:* `integer()`, *default:* `nil`) - + * `medianPrintedBox` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t`, *default:* `nil`) - Each median*_printed_box excludes page header/footer and all graphic blocks + * `numSymbols` (*type:* `integer()`, *default:* `nil`) - ------ Symbol stats + * `numLineSpaces` (*type:* `integer()`, *default:* `nil`) - Lines (out of num_lines) that have a successor line within their para + * `numBlockSpaces` (*type:* `integer()`, *default:* `nil`) - blocks that have a successor block within their flow on their page + * `numParagraphSpaces` (*type:* `integer()`, *default:* `nil`) - paras that have a successor para within their block + * `medianSymbolsPerWord` (*type:* `integer()`, *default:* `nil`) - + * `medianHorizontalDpi` (*type:* `integer()`, *default:* `nil`) - + * `meanSymbolsPerParagraph` (*type:* `integer()`, *default:* `nil`) - + * `medianFullPrintedBox` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t`, *default:* `nil`) - Each median_full*_printed_box includes page header/footer but still excludes all graphic blocks + * `numLines` (*type:* `integer()`, *default:* `nil`) - ------ Line stats "top" corresponds to the highest ascender and "bottom" to the lowest descender. + * `medianBlockSpace` (*type:* `integer()`, *default:* `nil`) - bottom to next top in flow on page + * `medianFullOddPrintedBox` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t`, *default:* `nil`) - + * `medianParagraphSpace` (*type:* `integer()`, *default:* `nil`) - bottom to next top in block + * `meanSymbolsPerBlock` (*type:* `integer()`, *default:* `nil`) - + * `medianWordsPerLine` (*type:* `integer()`, *default:* `nil`) - + * `medianLineHeight` (*type:* `integer()`, *default:* `nil`) - top to bottom + * `medianHeight` (*type:* `integer()`, *default:* `nil`) - + * `medianSymbolsPerBlock` (*type:* `integer()`, *default:* `nil`) - + * `medianSymbolsPerParagraph` (*type:* `integer()`, *default:* `nil`) - + * `medianWordsPerBlock` (*type:* `integer()`, *default:* `nil`) - + * `medianLineSpace` (*type:* `integer()`, *default:* `nil`) - bottom to next top in para + * `fontSizeHistogram` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocFontSizeStats.t)`, *default:* `nil`) - Symbol counts (and other attributes) for each distinct CharLabel.FontId and FontSize; histogram is in decreasing order of symbol count + * `medianFullEvenPrintedBox` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t`, *default:* `nil`) - + * `numParagraphs` (*type:* `integer()`, *default:* `nil`) - ------ Paragraph stats Median symbols and words omit junk, header and footer blocks; they are intended to be a measure of the typical "content" paragraph. There can still be substantial differences between means and medians, particularly if a table is present (every cell is a paragraph). + * `meanWordsPerBlock` (*type:* `integer()`, *default:* `nil`) - + * `numBlocks` (*type:* `integer()`, *default:* `nil`) - ------ Block stats Median symbols and words omit junk, header and footer blocks; they are intended to be a measure of the typical "content" block. There can still be substantial differences between means and medians; however, block values will generally exceed paragraph values (not the case when headers and footers are included). + * `medianWordsPerParagraph` (*type:* `integer()`, *default:* `nil`) - + * `medianParagraphIndent` (*type:* `integer()`, *default:* `nil`) - leading space on first line + * `medianOddPrintedBox` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t`, *default:* `nil`) - 1,3,5.. + * `medianVerticalDpi` (*type:* `integer()`, *default:* `nil`) - + * `estimatedFontSizes` (*type:* `boolean()`, *default:* `nil`) - This flag is set if the histogram above has been derived by estimating font sizes from CharLabel.CharacterHeight; that happens if the FontSize field is constant, as has happened with Abbyy 9. + * `medianEvenPrintedBox` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t`, *default:* `nil`) - 0,2,4.. + * `meanSymbolsPerWord` (*type:* `integer()`, *default:* `nil`) - + * `meanWordsPerParagraph` (*type:* `integer()`, *default:* `nil`) - + * `numPages` (*type:* `integer()`, *default:* `nil`) - ------ Page stats. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :numNonGraphicBlocks => integer() | nil, + :medianLineSpan => integer() | nil, + :meanWordsPerLine => integer() | nil, + :meanSymbolsPerLine => integer() | nil, + :medianWidth => integer() | nil, + :numWords => integer() | nil, + :medianSymbolsPerLine => integer() | nil, + :medianPrintedBox => GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t() | nil, + :numSymbols => integer() | nil, + :numLineSpaces => integer() | nil, + :numBlockSpaces => integer() | nil, + :numParagraphSpaces => integer() | nil, + :medianSymbolsPerWord => integer() | nil, + :medianHorizontalDpi => integer() | nil, + :meanSymbolsPerParagraph => integer() | nil, + :medianFullPrintedBox => + GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t() | nil, + :numLines => integer() | nil, + :medianBlockSpace => integer() | nil, + :medianFullOddPrintedBox => + GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t() | nil, + :medianParagraphSpace => integer() | nil, + :meanSymbolsPerBlock => integer() | nil, + :medianWordsPerLine => integer() | nil, + :medianLineHeight => integer() | nil, + :medianHeight => integer() | nil, + :medianSymbolsPerBlock => integer() | nil, + :medianSymbolsPerParagraph => integer() | nil, + :medianWordsPerBlock => integer() | nil, + :medianLineSpace => integer() | nil, + :fontSizeHistogram => + list(GoogleApi.ContentWarehouse.V1.Model.GoodocFontSizeStats.t()) | nil, + :medianFullEvenPrintedBox => + GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t() | nil, + :numParagraphs => integer() | nil, + :meanWordsPerBlock => integer() | nil, + :numBlocks => integer() | nil, + :medianWordsPerParagraph => integer() | nil, + :medianParagraphIndent => integer() | nil, + :medianOddPrintedBox => GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t() | nil, + :medianVerticalDpi => integer() | nil, + :estimatedFontSizes => boolean() | nil, + :medianEvenPrintedBox => + GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t() | nil, + :meanSymbolsPerWord => integer() | nil, + :meanWordsPerParagraph => integer() | nil, + :numPages => integer() | nil + } + + field(:numNonGraphicBlocks) + field(:medianLineSpan) + field(:meanWordsPerLine) + field(:meanSymbolsPerLine) + field(:medianWidth) + field(:numWords) + field(:medianSymbolsPerLine) + field(:medianPrintedBox, as: GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox) + field(:numSymbols) + field(:numLineSpaces) + field(:numBlockSpaces) + field(:numParagraphSpaces) + field(:medianSymbolsPerWord) + field(:medianHorizontalDpi) + field(:meanSymbolsPerParagraph) + field(:medianFullPrintedBox, as: GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox) + field(:numLines) + field(:medianBlockSpace) + field(:medianFullOddPrintedBox, as: GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox) + field(:medianParagraphSpace) + field(:meanSymbolsPerBlock) + field(:medianWordsPerLine) + field(:medianLineHeight) + field(:medianHeight) + field(:medianSymbolsPerBlock) + field(:medianSymbolsPerParagraph) + field(:medianWordsPerBlock) + field(:medianLineSpace) + + field(:fontSizeHistogram, + as: GoogleApi.ContentWarehouse.V1.Model.GoodocFontSizeStats, + type: :list + ) + + field(:medianFullEvenPrintedBox, as: GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox) + field(:numParagraphs) + field(:meanWordsPerBlock) + field(:numBlocks) + field(:medianWordsPerParagraph) + field(:medianParagraphIndent) + field(:medianOddPrintedBox, as: GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox) + field(:medianVerticalDpi) + field(:estimatedFontSizes) + field(:medianEvenPrintedBox, as: GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox) + field(:meanSymbolsPerWord) + field(:meanWordsPerParagraph) + field(:numPages) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocSummaryStats do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocSummaryStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocSummaryStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_symbol.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_symbol.ex new file mode 100644 index 0000000000..33b25b1bf9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_symbol.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocSymbol do + @moduledoc """ + A single symbol representation + + ## Attributes + + * `Box` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t`, *default:* `nil`) - + * `Code` (*type:* `integer()`, *default:* `nil`) - The unicode character code in UTF-32 + * `Label` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocLabel.t`, *default:* `nil`) - + * `RotatedBox` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox.t`, *default:* `nil`) - If RotatedBox is set, Box must be set as well. See RotatedBoundingBox. + * `symbolvariant` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocSymbolSymbolVariant.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Box => GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t() | nil, + :Code => integer() | nil, + :Label => GoogleApi.ContentWarehouse.V1.Model.GoodocLabel.t() | nil, + :RotatedBox => GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox.t() | nil, + :symbolvariant => + list(GoogleApi.ContentWarehouse.V1.Model.GoodocSymbolSymbolVariant.t()) | nil + } + + field(:Box, as: GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox) + field(:Code) + field(:Label, as: GoogleApi.ContentWarehouse.V1.Model.GoodocLabel) + field(:RotatedBox, as: GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox) + + field(:symbolvariant, + as: GoogleApi.ContentWarehouse.V1.Model.GoodocSymbolSymbolVariant, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocSymbol do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocSymbol.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocSymbol do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_symbol_symbol_variant.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_symbol_symbol_variant.ex new file mode 100644 index 0000000000..ae372b393e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_symbol_symbol_variant.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocSymbolSymbolVariant do + @moduledoc """ + + + ## Attributes + + * `Code` (*type:* `integer()`, *default:* `nil`) - + * `Confidence` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Code => integer() | nil, + :Confidence => integer() | nil + } + + field(:Code) + field(:Confidence) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocSymbolSymbolVariant do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocSymbolSymbolVariant.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocSymbolSymbolVariant do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_word.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_word.ex new file mode 100644 index 0000000000..e995dd9b23 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_word.ex @@ -0,0 +1,92 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocWord do + @moduledoc """ + A word representation + + ## Attributes + + * `Baseline` (*type:* `integer()`, *default:* `nil`) - The baseline's y-axis offset from the bottom of the word's bounding box, given in pixels. (A value of 2, for instance, indicates the baseline is 2px above the bottom of the box.) + * `Box` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t`, *default:* `nil`) - + * `Capline` (*type:* `integer()`, *default:* `nil`) - The capline is the y-axis offset from the top of the word bounding box. A positive value n indicates that capline is n-pixels above the top of this word. + * `CompactSymbolBoxes` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocBoxPartitions.t`, *default:* `nil`) - For space efficiency, we sometimes skip the detailed per-symbol bounding boxes in Symbol.Box, and use this coarser representation instead, where we just store Symbol boundaries within the Word box. Most client code should not have to worry directly about this, it should be handled in the deepest layers of writing/reading goodocs (for example, see Compress() and Uncompress() in ocean/goodoc/goovols-bigtable-volume.h). Note(viresh): I experimented with this compression, and here are some numbers for reference. If the zlib-compressed page goodoc string size was 100 to start with, then this compaction makes it 65. As a possible future relaxation to consider: if we add in, for each symbol, a "top" and "bottom" box offset then the size would be 75 (that's with "repeated int32 top/bottom_offset" fields inside BoxPartitions, instead of inside each symbol). + * `Confidence` (*type:* `integer()`, *default:* `nil`) - Word recognition confidence. Range depends upon OCR Engine. + * `IsFromDictionary` (*type:* `boolean()`, *default:* `nil`) - word. The meaning and range depends on the OCR engine or subsequent processing. Specifies whether the word was found + * `IsIdentifier` (*type:* `boolean()`, *default:* `nil`) - a number True if word represents + * `IsLastInSentence` (*type:* `boolean()`, *default:* `nil`) - True if the word is the last word in any sub-paragraph unit that functions at the same level of granularity as a sentence. Examples: "She hit the ball." (regular sentence) "Dewey defeats Truman" (heading) "The more, the merrier." (no verb) Note: not currently used. Code to set this was introduced in CL 7038338 and removed in OCL=10678722. + * `IsNumeric` (*type:* `boolean()`, *default:* `nil`) - in the dictionary True if the word represents + * `Label` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocLabel.t`, *default:* `nil`) - + * `Penalty` (*type:* `integer()`, *default:* `nil`) - Penalty for discordance of characters in a + * `RotatedBox` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox.t`, *default:* `nil`) - If RotatedBox is set, Box must be set as well. See RotatedBoundingBox. + * `Symbol` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocSymbol.t)`, *default:* `nil`) - Word characters, the text may + * `alternates` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocWordAlternates.t`, *default:* `nil`) - + * `text` (*type:* `String.t`, *default:* `nil`) - As a shortcut, the content API provides the text of words instead of individual symbols (NOTE: this is experimental). This is UTF8. And the main font for the word is stored in Label.CharLabel. + * `writingDirection` (*type:* `String.t`, *default:* `nil`) - Writing direction for this word. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :Baseline => integer() | nil, + :Box => GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox.t() | nil, + :Capline => integer() | nil, + :CompactSymbolBoxes => + GoogleApi.ContentWarehouse.V1.Model.GoodocBoxPartitions.t() | nil, + :Confidence => integer() | nil, + :IsFromDictionary => boolean() | nil, + :IsIdentifier => boolean() | nil, + :IsLastInSentence => boolean() | nil, + :IsNumeric => boolean() | nil, + :Label => GoogleApi.ContentWarehouse.V1.Model.GoodocLabel.t() | nil, + :Penalty => integer() | nil, + :RotatedBox => GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox.t() | nil, + :Symbol => list(GoogleApi.ContentWarehouse.V1.Model.GoodocSymbol.t()) | nil, + :alternates => GoogleApi.ContentWarehouse.V1.Model.GoodocWordAlternates.t() | nil, + :text => String.t() | nil, + :writingDirection => String.t() | nil + } + + field(:Baseline) + field(:Box, as: GoogleApi.ContentWarehouse.V1.Model.GoodocBoundingBox) + field(:Capline) + field(:CompactSymbolBoxes, as: GoogleApi.ContentWarehouse.V1.Model.GoodocBoxPartitions) + field(:Confidence) + field(:IsFromDictionary) + field(:IsIdentifier) + field(:IsLastInSentence) + field(:IsNumeric) + field(:Label, as: GoogleApi.ContentWarehouse.V1.Model.GoodocLabel) + field(:Penalty) + field(:RotatedBox, as: GoogleApi.ContentWarehouse.V1.Model.GoodocRotatedBoundingBox) + field(:Symbol, as: GoogleApi.ContentWarehouse.V1.Model.GoodocSymbol, type: :list) + field(:alternates, as: GoogleApi.ContentWarehouse.V1.Model.GoodocWordAlternates) + field(:text) + field(:writingDirection) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocWord do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocWord.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocWord do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_word_alternates.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_word_alternates.ex new file mode 100644 index 0000000000..264b1f9971 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_word_alternates.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocWordAlternates do + @moduledoc """ + Alternate OCR words for Ptolemy OCR Correction. This is the output of the Ptolemy error estimator. See http://go/Ptolemy. + + ## Attributes + + * `ErrorProbability` (*type:* `integer()`, *default:* `nil`) - The probability that the main OCR engine (Abbyy) string is incorrect; range is 0 (definitely correct) to 100 (definitely incorrect). + * `alternate` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoodocWordAlternatesAlternate.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ErrorProbability => integer() | nil, + :alternate => + list(GoogleApi.ContentWarehouse.V1.Model.GoodocWordAlternatesAlternate.t()) | nil + } + + field(:ErrorProbability) + + field(:alternate, + as: GoogleApi.ContentWarehouse.V1.Model.GoodocWordAlternatesAlternate, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocWordAlternates do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocWordAlternates.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocWordAlternates do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_word_alternates_alternate.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_word_alternates_alternate.ex new file mode 100644 index 0000000000..241583def3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/goodoc_word_alternates_alternate.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoodocWordAlternatesAlternate do + @moduledoc """ + An alternate word provided by another OCR engine, used for OCR Correction. This iteration only supports simple substitution errors (exhanging one word for another), but with minor modifications (e.g. adding a word count for each alternate), it could support repairing word segmentation and text detection errors. + + ## Attributes + + * `OcrEngineId` (*type:* `String.t`, *default:* `nil`) - See Document.Header + * `OcrEngineVersion` (*type:* `String.t`, *default:* `nil`) - See Document.Header + * `Word` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoodocWord.t`, *default:* `nil`) - In order to compile, this recursive message needs to be optional, even though it's within an optional group. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :OcrEngineId => String.t() | nil, + :OcrEngineVersion => String.t() | nil, + :Word => GoogleApi.ContentWarehouse.V1.Model.GoodocWord.t() | nil + } + + field(:OcrEngineId) + field(:OcrEngineVersion) + field(:Word, as: GoogleApi.ContentWarehouse.V1.Model.GoodocWord) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocWordAlternatesAlternate do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoodocWordAlternatesAlternate.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoodocWordAlternatesAlternate do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_api_serviceconsumermanagement_v1_billing_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_api_serviceconsumermanagement_v1_billing_config.ex new file mode 100644 index 0000000000..326b44a535 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_api_serviceconsumermanagement_v1_billing_config.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleApiServiceconsumermanagementV1BillingConfig do + @moduledoc """ + Describes the billing configuration for a new tenant project. + + ## Attributes + + * `billingAccount` (*type:* `String.t`, *default:* `nil`) - Name of the billing account. For example `billingAccounts/012345-567890-ABCDEF`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :billingAccount => String.t() | nil + } + + field(:billingAccount) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleApiServiceconsumermanagementV1BillingConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleApiServiceconsumermanagementV1BillingConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleApiServiceconsumermanagementV1BillingConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_api_serviceconsumermanagement_v1_policy_binding.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_api_serviceconsumermanagement_v1_policy_binding.ex new file mode 100644 index 0000000000..6865b78a8c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_api_serviceconsumermanagement_v1_policy_binding.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleApiServiceconsumermanagementV1PolicyBinding do + @moduledoc """ + Translates to IAM Policy bindings (without auditing at this level) + + ## Attributes + + * `members` (*type:* `list(String.t)`, *default:* `nil`) - Uses the same format as in IAM policy. `member` must include both a prefix and ID. For example, `user:{emailId}`, `serviceAccount:{emailId}`, `group:{emailId}`. + * `role` (*type:* `String.t`, *default:* `nil`) - Role. (https://cloud.google.com/iam/docs/understanding-roles) For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :members => list(String.t()) | nil, + :role => String.t() | nil + } + + field(:members, type: :list) + field(:role) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleApiServiceconsumermanagementV1PolicyBinding do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleApiServiceconsumermanagementV1PolicyBinding.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleApiServiceconsumermanagementV1PolicyBinding do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_audio_out_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_audio_out_config.ex new file mode 100644 index 0000000000..96abc1d884 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_audio_out_config.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1AudioOutConfig do + @moduledoc """ + Specifies the desired format for the server to use when it returns `audio_out` messages. + + ## Attributes + + * `audioMode` (*type:* `String.t`, *default:* `nil`) - Current audio mode on the device while issuing the query. + * `audioRoutingMode` (*type:* `String.t`, *default:* `nil`) - Current audio routing on the device while issuing the query. + * `encoding` (*type:* `String.t`, *default:* `nil`) - *Required* The encoding of audio data to be returned in all `audio_out` messages. + * `preferredBitrateBps` (*type:* `integer()`, *default:* `nil`) - *Optional* Specifies preferred encoding bitrate (bits-per-second). Currently this is only implemented for OGG_OPUS for bitrates of 12000, 16000, 24000, 32000. If not specified, OGG_OPUS defaults to 32000. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :audioMode => String.t() | nil, + :audioRoutingMode => String.t() | nil, + :encoding => String.t() | nil, + :preferredBitrateBps => integer() | nil + } + + field(:audioMode) + field(:audioRoutingMode) + field(:encoding) + field(:preferredBitrateBps) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1AudioOutConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1AudioOutConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1AudioOutConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_device_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_device_config.ex new file mode 100644 index 0000000000..e6af223c87 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_device_config.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceConfig do + @moduledoc """ + *Required* Fields that identify the device to the Assistant. See also: * [Register a Device - REST API](https: //developers.google.com/assistant/sdk/re // ference/device-registration/register-device-manual) * [Device Model and Instance Schemas](https: //developers.google.com/assistant/sdk/re // ference/device-registration/model-and-instance-schemas) * [Device Proto](https: //developers.google.com/assistant/sdk/re // ference/rpc/google.assistant.devices.v1#device) + + ## Attributes + + * `deviceModelCapabilitiesOverride` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1DeviceModelCapabilitiesOverride.t`, *default:* `nil`) - Device model capabilities from client to override capabilities in the primary device model. + * `heterodyneToken` (*type:* `String.t`, *default:* `nil`) - *Optional* An encrypted heterodyne_experiment_token containing the list of experiment_ids (go/ph-server-tokens). + * `surfaceIdentity` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1SurfaceIdentity.t`, *default:* `nil`) - *Required* Identifier for the device which sent the request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceModelCapabilitiesOverride => + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1DeviceModelCapabilitiesOverride.t() + | nil, + :heterodyneToken => String.t() | nil, + :surfaceIdentity => + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1SurfaceIdentity.t() | nil + } + + field(:deviceModelCapabilitiesOverride, + as: + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1DeviceModelCapabilitiesOverride + ) + + field(:heterodyneToken) + + field(:surfaceIdentity, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1SurfaceIdentity + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_device_state.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_device_state.ex new file mode 100644 index 0000000000..ed9187e6dc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_device_state.ex @@ -0,0 +1,92 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceState do + @moduledoc """ + Information about the state of the device. This contains any state that Assistant may need to know about in order to fulfill requests, for example which timers and alarms are set. Next ID: 13 + + ## Attributes + + * `alarmState` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarms.t`, *default:* `nil`) - *Optional* Information about on-device alarms. For devices that support alarms, all on-device alarms must be sent up with the DeviceState in order for Assistant Server to be able to perform operations on them. + * `contextParams` (*type:* `String.t`, *default:* `nil`) - Other context params to be sent to Assistant. This is a assistant.embedded.v1.ContextParams message in serialized binary proto format. + * `deviceTime` (*type:* `DateTime.t`, *default:* `nil`) - A timestamp of the current device time when the request was made. This field is required if your device supports alarms or timers. This ensures that requests are fulfilled relative to the current device time and regardless of any clock skew between the client and the server. + * `deviceTimeZone` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeZone.t`, *default:* `nil`) - The time zone where the device is currently located. This helps the Assistant answer time-related queries relative to the device's time zone. Generally speaking, mobile devices that support alarms or timers should supply device_time_zone. This field is required if your device supports alarms or timers and the device's location cannot reliably be determined. (See the comment above google.assistant.embedded.v1.DeviceLocation for a description of how the device's location is determined.) If the time zone cannot be determined, some queries for creating or modifying timers or alarms may fail with a generic error such as, "Sorry, I don't know how to help with that." + * `doNotDisturb` (*type:* `boolean()`, *default:* `nil`) - Indicate whether do not disturb mode is turned on. + * `fitnessActivitiesState` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivities.t`, *default:* `nil`) - Information about on-device fitness activities. For devices that support fitness activities, all on-device fitness activities must be sent up with the DeviceState in order for Assistant Server to be able to perform operations on them. + * `installedApps` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceStateInstalledAppsState.t`, *default:* `nil`) - Information about apps currently installed on device. + * `installedAppsZlib` (*type:* `String.t`, *default:* `nil`) - This contains a zlib-compressed binary-encoded `InstalledAppsState` proto message. + * `timerState` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timers.t`, *default:* `nil`) - *Optional* Information about on-device timers. For devices that support timers, all on-device timers must be sent up with the DeviceState in order for Assistant Server to be able to perform operations on them. + * `unavailableSettings` (*type:* `list(String.t)`, *default:* `nil`) - This indicates which specific settings are currently unavailable for modification, despite being listed as a supported setting. Assistant can use this field to trigger unavailability messages, rather than claiming that a setting is entirely unsupported on device. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alarmState => + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarms.t() | nil, + :contextParams => String.t() | nil, + :deviceTime => DateTime.t() | nil, + :deviceTimeZone => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeZone.t() | nil, + :doNotDisturb => boolean() | nil, + :fitnessActivitiesState => + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivities.t() + | nil, + :installedApps => + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceStateInstalledAppsState.t() + | nil, + :installedAppsZlib => String.t() | nil, + :timerState => + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timers.t() | nil, + :unavailableSettings => list(String.t()) | nil + } + + field(:alarmState, as: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarms) + field(:contextParams) + field(:deviceTime, as: DateTime) + field(:deviceTimeZone, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeZone) + field(:doNotDisturb) + + field(:fitnessActivitiesState, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivities + ) + + field(:installedApps, + as: + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceStateInstalledAppsState + ) + + field(:installedAppsZlib) + field(:timerState, as: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timers) + field(:unavailableSettings, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceState do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceState.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceState do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_device_state_installed_apps_state.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_device_state_installed_apps_state.ex new file mode 100644 index 0000000000..108857a04b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_device_state_installed_apps_state.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceStateInstalledAppsState do + @moduledoc """ + State of the apps currently installed on the device. + + ## Attributes + + * `apps` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider.t)`, *default:* `nil`) - List of apps currently installed on the device. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :apps => + list(GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider.t()) | nil + } + + field(:apps, as: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesProvider, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceStateInstalledAppsState do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceStateInstalledAppsState.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceStateInstalledAppsState do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_response_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_response_config.ex new file mode 100644 index 0000000000..48623aedc0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_response_config.ex @@ -0,0 +1,93 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ResponseConfig do + @moduledoc """ + Configuration for the response. Next Id: 11 + + ## Attributes + + * `audioOutConfig` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1AudioOutConfig.t`, *default:* `nil`) - Specifies the current audio mode on the device. + * `deviceConfig` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceConfig.t`, *default:* `nil`) - Configuration related to a specific device. + * `deviceInteraction` (*type:* `String.t`, *default:* `nil`) - The client interaction to be sent to Assistant. This is a assistant.embedded.v1.DeviceInteraction message in serialized binary proto format. + * `deviceState` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceState.t`, *default:* `nil`) - Device state to pass to the Assistant server to use in calculating the response. + * `initialAudioBytes` (*type:* `integer()`, *default:* `nil`) - Specifies the initial bytes of TTS audio to send. + * `isNewConversation` (*type:* `boolean()`, *default:* `nil`) - If true, the server will treat the request as a new conversation and not use state from the prior request. Set this field to true when the conversation should be restarted, such as after a device reboot, or after a significant lapse of time since the prior query. + * `outputSampleRateHz` (*type:* `integer()`, *default:* `nil`) - Specifies the desired audio sample rate of the output TTS stream in Hz. + * `responseType` (*type:* `String.t`, *default:* `nil`) - Specifies the requested response type. + * `screenOutConfig` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ScreenOutConfig.t`, *default:* `nil`) - Specifies the desired format to use when server returns a visual screen response. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :audioOutConfig => + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1AudioOutConfig.t() | nil, + :deviceConfig => + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceConfig.t() | nil, + :deviceInteraction => String.t() | nil, + :deviceState => + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceState.t() | nil, + :initialAudioBytes => integer() | nil, + :isNewConversation => boolean() | nil, + :outputSampleRateHz => integer() | nil, + :responseType => String.t() | nil, + :screenOutConfig => + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ScreenOutConfig.t() + | nil + } + + field(:audioOutConfig, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1AudioOutConfig + ) + + field(:deviceConfig, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceConfig + ) + + field(:deviceInteraction) + + field(:deviceState, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceState + ) + + field(:initialAudioBytes) + field(:isNewConversation) + field(:outputSampleRateHz) + field(:responseType) + + field(:screenOutConfig, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ScreenOutConfig + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ResponseConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ResponseConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ResponseConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_screen_out_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_screen_out_config.ex new file mode 100644 index 0000000000..6b32688248 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_screen_out_config.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ScreenOutConfig do + @moduledoc """ + Specifies the desired format for the server to use when it returns `screen_out` response. + + ## Attributes + + * `dimensions` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ScreenOutConfigDimensions.t`, *default:* `nil`) - Device dimensions. + * `fontScaleFactor` (*type:* `number()`, *default:* `nil`) - The scale factor used to convert Scalable Pixel (SP) units to Density-independent Pixel (DP) units (DP = SP * scale factor). Fonts are measured in units of SP, and on some platforms such as Android the SP to DP scale factor can be affected by the font size a user selects in accessibility settings. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dimensions => + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ScreenOutConfigDimensions.t() + | nil, + :fontScaleFactor => number() | nil + } + + field(:dimensions, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ScreenOutConfigDimensions + ) + + field(:fontScaleFactor) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ScreenOutConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ScreenOutConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ScreenOutConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_screen_out_config_dimensions.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_screen_out_config_dimensions.ex new file mode 100644 index 0000000000..d0baae36e9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_accessory_v1_screen_out_config_dimensions.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ScreenOutConfigDimensions do + @moduledoc """ + This contains physical and logical characteristics about the device (e.g. screen size and DPI, etc). + + ## Attributes + + * `screenDpi` (*type:* `number()`, *default:* `nil`) - Dots (pixels) per inch of the screen. + * `screenHeightPx` (*type:* `integer()`, *default:* `nil`) - Height of the device's screen in pixels. If 0 or not specified, it's assumed to be the same as screen_width_px. For a square or round screen, it's recommended to leave this field empty as a bandwidth optimization. + * `screenShape` (*type:* `String.t`, *default:* `nil`) - The shape of the device's screen + * `screenWidthPx` (*type:* `integer()`, *default:* `nil`) - Width of the device's screen in pixels. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :screenDpi => number() | nil, + :screenHeightPx => integer() | nil, + :screenShape => String.t() | nil, + :screenWidthPx => integer() | nil + } + + field(:screenDpi) + field(:screenHeightPx) + field(:screenShape) + field(:screenWidthPx) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ScreenOutConfigDimensions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ScreenOutConfigDimensions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1ScreenOutConfigDimensions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_alarm.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_alarm.ex new file mode 100644 index 0000000000..d4716c48da --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_alarm.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarm do + @moduledoc """ + Alarms are clocks that ring at a specified time on one or more days. The client schedules a time to ring based on the date/time pattern. When it rings, it may be rescheduled off the original time by snoozing or it may be replaced by the next occurrence. + + ## Attributes + + * `alarmId` (*type:* `String.t`, *default:* `nil`) - A string key used as an identifier to this alarm. This key needs to be unique amongst all alarms on the device. The client can choose a mechanism of its choice to ensure this. If the server suggests an alarm_id, the client can either use the suggestion or create a new unique alarm_id of its choosing. + * `alarmSource` (*type:* `String.t`, *default:* `nil`) - The entity that created this alarm. Note this may be different from the device that reported this alarm. In particular, this field is meant for remote alarms which have been synced to the current device by the Clock app. Synced alarms exist in each device's Clock app and can be managed by either device; this field indicates their origin. + * `datePattern` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.t`, *default:* `nil`) - For single alarms: the one date the alarm should next be scheduled for. + * `label` (*type:* `String.t`, *default:* `nil`) - A user-provided name for this alarm. + * `recurrencePattern` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1AlarmRecurrence.t`, *default:* `nil`) - For recurring alarms: a description of the dates when the alarm should recur. + * `scheduledTime` (*type:* `DateTime.t`, *default:* `nil`) - When SCHEDULED or SNOOZED, the absolute time the alarm will fire next. When SNOOZED, this time includes the additional time added by snoozing the alarm. When FIRING, the absolute time the alarm had been scheduled to fire. When DISABLED, this field is undefined and should be ignored. + * `status` (*type:* `String.t`, *default:* `nil`) - Describes the part of the lifecycle that an alarm is in. + * `timePattern` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeOfDay.t`, *default:* `nil`) - The time of day the alarm should be scheduled for. This value does not change when an alarm enters the SNOOZED state; instead the scheduled_time field should be adjusted to the new alarm time. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alarmId => String.t() | nil, + :alarmSource => String.t() | nil, + :datePattern => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.t() | nil, + :label => String.t() | nil, + :recurrencePattern => + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1AlarmRecurrence.t() | nil, + :scheduledTime => DateTime.t() | nil, + :status => String.t() | nil, + :timePattern => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeOfDay.t() | nil + } + + field(:alarmId) + field(:alarmSource) + field(:datePattern, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate) + field(:label) + + field(:recurrencePattern, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1AlarmRecurrence + ) + + field(:scheduledTime, as: DateTime) + field(:status) + field(:timePattern, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeOfDay) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarm do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarm.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarm do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_alarm_recurrence.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_alarm_recurrence.ex new file mode 100644 index 0000000000..76cdad11be --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_alarm_recurrence.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1AlarmRecurrence do + @moduledoc """ + A description of the dates when an alarm should recur. + + ## Attributes + + * `dayOfWeek` (*type:* `list(String.t)`, *default:* `nil`) - Specifies a weekly or daily recurrence. Constraint: The date falls on one of these days of the week, in 0...6 (Sunday...Saturday). Should not be empty. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dayOfWeek => list(String.t()) | nil + } + + field(:dayOfWeek, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1AlarmRecurrence do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1AlarmRecurrence.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1AlarmRecurrence do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_alarms.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_alarms.ex new file mode 100644 index 0000000000..3ed3878754 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_alarms.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarms do + @moduledoc """ + Contains information about on-device alarms for devices that support alarms. + + ## Attributes + + * `alarms` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarm.t)`, *default:* `nil`) - Information about all on-device alarms. + * `snoozeDuration` (*type:* `String.t`, *default:* `nil`) - The amount of time for which alarms should be snoozed. If not specified, the productivity vertical applies a default snooze duration, which may be seen here: http://google3/assistant/verticals/productivity/utils/alarm_utils.cc;l=2734;rcl=415933085 + * `stateFetchError` (*type:* `String.t`, *default:* `nil`) - Indicates if an error occurred while fetching alarm state. If this value is missing, it can be assumed that the state fetch was successful. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alarms => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarm.t()) | nil, + :snoozeDuration => String.t() | nil, + :stateFetchError => String.t() | nil + } + + field(:alarms, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarm, + type: :list + ) + + field(:snoozeDuration) + field(:stateFetchError) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarms do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarms.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarms do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_device_model_capabilities_override.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_device_model_capabilities_override.ex new file mode 100644 index 0000000000..04c4d529d1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_device_model_capabilities_override.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1DeviceModelCapabilitiesOverride do + @moduledoc """ + Device model capabilities override from client. + + ## Attributes + + * `deviceModelCapabilities` (*type:* `String.t`, *default:* `nil`) - Device model capabilities from client. + * `updateMask` (*type:* `String.t`, *default:* `nil`) - If present, overrides only fields specified in the mask. When doing so, selected message and repeated fields will be replaced rather than merged. Performs a regular proto MergeFrom if no mask is specified. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceModelCapabilities => String.t() | nil, + :updateMask => String.t() | nil + } + + field(:deviceModelCapabilities) + field(:updateMask) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1DeviceModelCapabilitiesOverride do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1DeviceModelCapabilitiesOverride.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1DeviceModelCapabilitiesOverride do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_fitness_activities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_fitness_activities.ex new file mode 100644 index 0000000000..e7e7078019 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_fitness_activities.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivities do + @moduledoc """ + Contains information about on-device fitness activities for devices that support fitness. + + ## Attributes + + * `fitnessActivities` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivity.t)`, *default:* `nil`) - Information about all on-device activities. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fitnessActivities => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivity.t()) + | nil + } + + field(:fitnessActivities, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivity, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_fitness_activity.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_fitness_activity.ex new file mode 100644 index 0000000000..770e86ec31 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_fitness_activity.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivity do + @moduledoc """ + Describes a particular fitness activity, its current state, and other data fields associated with that activity (e.g. elapsed time). LINT.IfChange + + ## Attributes + + * `activityId` (*type:* `String.t`, *default:* `nil`) - Required A string key used as an identifier for this activity. This key needs to be unique amongst all activities on the device. The client can choose a mechanism of its choice to ensure this. If the server suggests an activity_id, the client can either use the suggestion or create a new unique activity_id of its choosing. + * `mostRecentStartTime` (*type:* `DateTime.t`, *default:* `nil`) - DEPRECATED: The most recent time this activity was switched to the ACTIVE state. + * `previouslyAccumulatedDuration` (*type:* `String.t`, *default:* `nil`) - DEPRECATED: The total amount of time this activity has spent in the ACTIVE state until the most recent start time. The total time spent active may be computed by summing (now - most_recent_start_time) with previously_accumulated_duration. + * `state` (*type:* `String.t`, *default:* `nil`) - The current state of this activity. + * `type` (*type:* `String.t`, *default:* `nil`) - The type of activity being done. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :activityId => String.t() | nil, + :mostRecentStartTime => DateTime.t() | nil, + :previouslyAccumulatedDuration => String.t() | nil, + :state => String.t() | nil, + :type => String.t() | nil + } + + field(:activityId) + field(:mostRecentStartTime, as: DateTime) + field(:previouslyAccumulatedDuration) + field(:state) + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivity do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivity.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_surface_identity.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_surface_identity.ex new file mode 100644 index 0000000000..523d191d9d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_surface_identity.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1SurfaceIdentity do + @moduledoc """ + Contains fields to identify the device which sent the request. + + ## Attributes + + * `surfaceType` (*type:* `String.t`, *default:* `nil`) - Surface type that the device identifies as. + * `userAgentSuffix` (*type:* `String.t`, *default:* `nil`) - * Fully formed user agent suffix string. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :surfaceType => String.t() | nil, + :userAgentSuffix => String.t() | nil + } + + field(:surfaceType) + field(:userAgentSuffix) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1SurfaceIdentity do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1SurfaceIdentity.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1SurfaceIdentity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_timer.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_timer.ex new file mode 100644 index 0000000000..24c30b88de --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_timer.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timer do + @moduledoc """ + Conceptually, timers are clocks that count down from an initial duration and ring when they reach 0. In practice, as a timer is running, it holds a stable expiration time and computes the remaining duration using the current time. When a timer is paused, it holds a stable remaining duration. + + ## Attributes + + * `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the timer is scheduled to expire. google.protobuf.Timestamp is a Unix epoch time with a granularity of 1 nanosecond. + * `label` (*type:* `String.t`, *default:* `nil`) - A user-provided name for this timer. + * `originalDuration` (*type:* `String.t`, *default:* `nil`) - The duration of the timer when it was started. For the ADD_TIME action, this field contains the amount of time to add to the timer with the given timer_id. + * `remainingDuration` (*type:* `String.t`, *default:* `nil`) - The remaining duration for the timer. + * `status` (*type:* `String.t`, *default:* `nil`) - Describes the part of the lifecycle a timer is in. + * `timerId` (*type:* `String.t`, *default:* `nil`) - A string key used as an identifier to this timer. This key needs to be unique amongst all timers on the device. The client can choose a mechanism of its choice to ensure this. If the server suggests a timer_id, the client can either use the suggestion or create a new unique timer_id of its choosing. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :expireTime => DateTime.t() | nil, + :label => String.t() | nil, + :originalDuration => String.t() | nil, + :remainingDuration => String.t() | nil, + :status => String.t() | nil, + :timerId => String.t() | nil + } + + field(:expireTime, as: DateTime) + field(:label) + field(:originalDuration) + field(:remainingDuration) + field(:status) + field(:timerId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timer do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timer.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_timers.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_timers.ex new file mode 100644 index 0000000000..12427da105 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_assistant_embedded_v1_timers.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timers do + @moduledoc """ + Contains information about on-device timers for devices that support timers. + + ## Attributes + + * `stateFetchError` (*type:* `String.t`, *default:* `nil`) - Indicates if an error occurred while fetching timer state. If this value is missing, it can be assumed that the state fetch was successful. + * `timers` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timer.t)`, *default:* `nil`) - Information about all on-device timers. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :stateFetchError => String.t() | nil, + :timers => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timer.t()) | nil + } + + field(:stateFetchError) + + field(:timers, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timer, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timers do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timers.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timers do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_access_control_action.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_access_control_action.ex new file mode 100644 index 0000000000..e924d4afd1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_access_control_action.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1AccessControlAction do + @moduledoc """ + Represents the action responsible for access control list management operations. + + ## Attributes + + * `operationType` (*type:* `String.t`, *default:* `nil`) - Identifies the type of operation. + * `policy` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy.t`, *default:* `nil`) - Represents the new policy from which bindings are added, removed or replaced based on the type of the operation. the policy is limited to a few 10s of KB. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :operationType => String.t() | nil, + :policy => GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy.t() | nil + } + + field(:operationType) + field(:policy, as: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1AccessControlAction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1AccessControlAction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1AccessControlAction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_action.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_action.ex new file mode 100644 index 0000000000..944b1543ba --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_action.ex @@ -0,0 +1,104 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Action do + @moduledoc """ + Represents the action triggered by Rule Engine when the rule is true. + + ## Attributes + + * `accessControl` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1AccessControlAction.t`, *default:* `nil`) - Action triggering access control operations. + * `actionId` (*type:* `String.t`, *default:* `nil`) - ID of the action. Managed internally. + * `addToFolder` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1AddToFolderAction.t`, *default:* `nil`) - Action triggering create document link operation. + * `dataUpdate` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DataUpdateAction.t`, *default:* `nil`) - Action triggering data update operations. + * `dataValidation` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DataValidationAction.t`, *default:* `nil`) - Action triggering data validation operations. + * `deleteDocumentAction` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentAction.t`, *default:* `nil`) - Action deleting the document. + * `publishToPubSub` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PublishAction.t`, *default:* `nil`) - Action publish to Pub/Sub operation. + * `removeFromFolderAction` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RemoveFromFolderAction.t`, *default:* `nil`) - Action removing a document from a folder. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accessControl => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1AccessControlAction.t() + | nil, + :actionId => String.t() | nil, + :addToFolder => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1AddToFolderAction.t() + | nil, + :dataUpdate => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DataUpdateAction.t() + | nil, + :dataValidation => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DataValidationAction.t() + | nil, + :deleteDocumentAction => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentAction.t() + | nil, + :publishToPubSub => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PublishAction.t() + | nil, + :removeFromFolderAction => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RemoveFromFolderAction.t() + | nil + } + + field(:accessControl, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1AccessControlAction + ) + + field(:actionId) + + field(:addToFolder, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1AddToFolderAction + ) + + field(:dataUpdate, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DataUpdateAction + ) + + field(:dataValidation, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DataValidationAction + ) + + field(:deleteDocumentAction, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentAction + ) + + field(:publishToPubSub, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PublishAction + ) + + field(:removeFromFolderAction, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RemoveFromFolderAction + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Action do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Action.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Action do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_action_executor_output.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_action_executor_output.ex new file mode 100644 index 0000000000..eaccd47602 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_action_executor_output.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ActionExecutorOutput do + @moduledoc """ + Represents the output of the Action Executor. + + ## Attributes + + * `ruleActionsPairs` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleActionsPair.t)`, *default:* `nil`) - List of rule and corresponding actions result. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ruleActionsPairs => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleActionsPair.t() + ) + | nil + } + + field(:ruleActionsPairs, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleActionsPair, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ActionExecutorOutput do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ActionExecutorOutput.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ActionExecutorOutput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_action_output.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_action_output.ex new file mode 100644 index 0000000000..201317f329 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_action_output.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ActionOutput do + @moduledoc """ + Represents the result of executing an action. + + ## Attributes + + * `actionId` (*type:* `String.t`, *default:* `nil`) - ID of the action. + * `actionState` (*type:* `String.t`, *default:* `nil`) - State of an action. + * `outputMessage` (*type:* `String.t`, *default:* `nil`) - Action execution output message. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :actionId => String.t() | nil, + :actionState => String.t() | nil, + :outputMessage => String.t() | nil + } + + field(:actionId) + field(:actionState) + field(:outputMessage) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ActionOutput do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ActionOutput.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ActionOutput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_add_to_folder_action.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_add_to_folder_action.ex new file mode 100644 index 0000000000..4c64379f15 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_add_to_folder_action.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1AddToFolderAction do + @moduledoc """ + Represents the action responsible for adding document under a folder. + + ## Attributes + + * `folders` (*type:* `list(String.t)`, *default:* `nil`) - Names of the folder under which new document is to be added. Format: projects/{project_number}/locations/{location}/documents/{document_id}. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :folders => list(String.t()) | nil + } + + field(:folders, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1AddToFolderAction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1AddToFolderAction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1AddToFolderAction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_cloud_ai_document_option.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_cloud_ai_document_option.ex new file mode 100644 index 0000000000..758e0ee87d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_cloud_ai_document_option.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CloudAIDocumentOption do + @moduledoc """ + Request Option for processing Cloud AI Document in CW Document. + + ## Attributes + + * `customizedEntitiesPropertiesConversions` (*type:* `map()`, *default:* `nil`) - If set, only selected entities will be converted to properties. + * `enableEntitiesConversions` (*type:* `boolean()`, *default:* `nil`) - Whether to convert all the entities to properties. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :customizedEntitiesPropertiesConversions => map() | nil, + :enableEntitiesConversions => boolean() | nil + } + + field(:customizedEntitiesPropertiesConversions, type: :map) + field(:enableEntitiesConversions) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CloudAIDocumentOption do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CloudAIDocumentOption.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CloudAIDocumentOption do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_create_document_link_request.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_create_document_link_request.ex new file mode 100644 index 0000000000..5c6868f31b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_create_document_link_request.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentLinkRequest do + @moduledoc """ + Request message for DocumentLinkService.CreateDocumentLink. + + ## Attributes + + * `documentLink` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentLink.t`, *default:* `nil`) - Required. Document links associated with the source documents (source_document_id). + * `requestMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t`, *default:* `nil`) - The meta information collected about the document creator, used to enforce access control for the service. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :documentLink => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentLink.t() + | nil, + :requestMetadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t() + | nil + } + + field(:documentLink, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentLink + ) + + field(:requestMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentLinkRequest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentLinkRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentLinkRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_create_document_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_create_document_metadata.ex new file mode 100644 index 0000000000..b83c5ae5ac --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_create_document_metadata.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentMetadata do + @moduledoc """ + Metadata object for CreateDocument request (currently empty). + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_create_document_request.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_create_document_request.ex new file mode 100644 index 0000000000..a402b5aa39 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_create_document_request.ex @@ -0,0 +1,74 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentRequest do + @moduledoc """ + Request message for DocumentService.CreateDocument. + + ## Attributes + + * `cloudAiDocumentOption` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CloudAIDocumentOption.t`, *default:* `nil`) - Request Option for processing Cloud AI Document in Document Warehouse. This field offers limited support for mapping entities from Cloud AI Document to Warehouse Document. Please consult with product team before using this field and other available options. + * `createMask` (*type:* `String.t`, *default:* `nil`) - Field mask for creating Document fields. If mask path is empty, it means all fields are masked. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. + * `document` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document.t`, *default:* `nil`) - Required. The document to create. + * `policy` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy.t`, *default:* `nil`) - Default document policy during creation. This refers to an Identity and Access (IAM) policy, which specifies access controls for the Document. Conditions defined in the policy will be ignored. + * `requestMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t`, *default:* `nil`) - The meta information collected about the end user, used to enforce access control for the service. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudAiDocumentOption => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CloudAIDocumentOption.t() + | nil, + :createMask => String.t() | nil, + :document => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document.t() | nil, + :policy => GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy.t() | nil, + :requestMetadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t() + | nil + } + + field(:cloudAiDocumentOption, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CloudAIDocumentOption + ) + + field(:createMask) + field(:document, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document) + field(:policy, as: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy) + + field(:requestMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentRequest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_create_document_response.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_create_document_response.ex new file mode 100644 index 0000000000..99972a796e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_create_document_response.ex @@ -0,0 +1,76 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentResponse do + @moduledoc """ + Response message for DocumentService.CreateDocument. + + ## Attributes + + * `document` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document.t`, *default:* `nil`) - Document created after executing create request. + * `longRunningOperations` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleLongrunningOperation.t)`, *default:* `nil`) - post-processing LROs + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata.t`, *default:* `nil`) - Additional information for the API invocation, such as the request tracking id. + * `ruleEngineOutput` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEngineOutput.t`, *default:* `nil`) - Output from Rule Engine recording the rule evaluator and action executor's output. Refer format in: google/cloud/contentwarehouse/v1/rule_engine.proto + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :document => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document.t() | nil, + :longRunningOperations => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleLongrunningOperation.t()) | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata.t() + | nil, + :ruleEngineOutput => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEngineOutput.t() + | nil + } + + field(:document, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document) + + field(:longRunningOperations, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleLongrunningOperation, + type: :list + ) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata + ) + + field(:ruleEngineOutput, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEngineOutput + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentResponse do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CreateDocumentResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_custom_weights_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_custom_weights_metadata.ex new file mode 100644 index 0000000000..c8212b54af --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_custom_weights_metadata.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CustomWeightsMetadata do + @moduledoc """ + To support the custom weighting across document schemas. + + ## Attributes + + * `weightedSchemaProperties` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1WeightedSchemaProperty.t)`, *default:* `nil`) - List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :weightedSchemaProperties => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1WeightedSchemaProperty.t() + ) + | nil + } + + field(:weightedSchemaProperties, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1WeightedSchemaProperty, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CustomWeightsMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CustomWeightsMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CustomWeightsMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_data_update_action.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_data_update_action.ex new file mode 100644 index 0000000000..2bed41668a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_data_update_action.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DataUpdateAction do + @moduledoc """ + Represents the action responsible for properties update operations. + + ## Attributes + + * `entries` (*type:* `map()`, *default:* `nil`) - Map of (K, V) -> (valid name of the field, new value of the field) E.g., ("age", "60") entry triggers update of field age with a value of 60. If the field is not present then new entry is added. During update action execution, value strings will be casted to appropriate types. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :entries => map() | nil + } + + field(:entries, type: :map) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DataUpdateAction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DataUpdateAction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DataUpdateAction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_data_validation_action.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_data_validation_action.ex new file mode 100644 index 0000000000..287f0fb03d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_data_validation_action.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DataValidationAction do + @moduledoc """ + Represents the action responsible for data validation operations. + + ## Attributes + + * `conditions` (*type:* `map()`, *default:* `nil`) - Map of (K, V) -> (field, string condition to be evaluated on the field) E.g., ("age", "age > 18 && age < 60") entry triggers validation of field age with the given condition. Map entries will be ANDed during validation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conditions => map() | nil + } + + field(:conditions, type: :map) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DataValidationAction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DataValidationAction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DataValidationAction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_date_time_array.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_date_time_array.ex new file mode 100644 index 0000000000..dfabc04ef5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_date_time_array.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DateTimeArray do + @moduledoc """ + DateTime values. + + ## Attributes + + * `values` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime.t)`, *default:* `nil`) - List of datetime values. Both OffsetDateTime and ZonedDateTime are supported. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :values => list(GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime.t()) | nil + } + + field(:values, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DateTimeArray do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DateTimeArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DateTimeArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_date_time_type_options.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_date_time_type_options.ex new file mode 100644 index 0000000000..65ca597bc6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_date_time_type_options.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DateTimeTypeOptions do + @moduledoc """ + Configurations for a date time property. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DateTimeTypeOptions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DateTimeTypeOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DateTimeTypeOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_delete_document_action.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_delete_document_action.ex new file mode 100644 index 0000000000..c8ddc73ab8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_delete_document_action.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentAction do + @moduledoc """ + Represents the action responsible for deleting the document. + + ## Attributes + + * `enableHardDelete` (*type:* `boolean()`, *default:* `nil`) - Boolean field to select between hard vs soft delete options. Set 'true' for 'hard delete' and 'false' for 'soft delete'. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enableHardDelete => boolean() | nil + } + + field(:enableHardDelete) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentAction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentAction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentAction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_delete_document_link_request.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_delete_document_link_request.ex new file mode 100644 index 0000000000..6f9dedf1d7 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_delete_document_link_request.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentLinkRequest do + @moduledoc """ + Request message for DocumentLinkService.DeleteDocumentLink. + + ## Attributes + + * `requestMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t`, *default:* `nil`) - The meta information collected about the document creator, used to enforce access control for the service. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requestMetadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t() + | nil + } + + field(:requestMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentLinkRequest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentLinkRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentLinkRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_delete_document_request.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_delete_document_request.ex new file mode 100644 index 0000000000..bc2e88f34c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_delete_document_request.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentRequest do + @moduledoc """ + Request message for DocumentService.DeleteDocument. + + ## Attributes + + * `requestMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t`, *default:* `nil`) - The meta information collected about the end user, used to enforce access control for the service. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requestMetadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t() + | nil + } + + field(:requestMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentRequest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DeleteDocumentRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document.ex new file mode 100644 index 0000000000..e56a75db28 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document.ex @@ -0,0 +1,119 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document do + @moduledoc """ + Defines the structure for content warehouse document proto. + + ## Attributes + + * `cloudAiDocument` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Document.t`, *default:* `nil`) - Document AI format to save the structured content, including OCR. + * `contentCategory` (*type:* `String.t`, *default:* `nil`) - Indicates the category (image, audio, video etc.) of the original content. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the document is created. + * `creator` (*type:* `String.t`, *default:* `nil`) - The user who creates the document. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Required. Display name of the document given by the user. This name will be displayed in the UI. Customer can populate this field with the name of the document. This differs from the 'title' field as 'title' is optional and stores the top heading in the document. + * `displayUri` (*type:* `String.t`, *default:* `nil`) - Uri to display the document, for example, in the UI. + * `dispositionTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. If linked to a Collection with RetentionPolicy, the date when the document becomes mutable. + * `documentSchemaName` (*type:* `String.t`, *default:* `nil`) - The Document schema name. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. + * `inlineRawDocument` (*type:* `String.t`, *default:* `nil`) - Raw document content. + * `legalHold` (*type:* `boolean()`, *default:* `nil`) - Output only. Indicates if the document has a legal hold on it. + * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the document. Format: projects/{project_number}/locations/{location}/documents/{document_id}. The name is ignored when creating a document. + * `plainText` (*type:* `String.t`, *default:* `nil`) - Other document format, such as PPTX, XLXS + * `properties` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Property.t)`, *default:* `nil`) - List of values that are user supplied metadata. + * `rawDocumentFileType` (*type:* `String.t`, *default:* `nil`) - This is used when DocAI was not used to load the document and parsing/ extracting is needed for the inline_raw_document. For example, if inline_raw_document is the byte representation of a PDF file, then this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF. + * `rawDocumentPath` (*type:* `String.t`, *default:* `nil`) - Raw document file in Cloud Storage path. + * `referenceId` (*type:* `String.t`, *default:* `nil`) - The reference ID set by customers. Must be unique per project and location. + * `textExtractionDisabled` (*type:* `boolean()`, *default:* `nil`) - If true, text extraction will not be performed. + * `textExtractionEnabled` (*type:* `boolean()`, *default:* `nil`) - If true, text extraction will be performed. + * `title` (*type:* `String.t`, *default:* `nil`) - Title that describes the document. This can be the top heading or text that describes the document. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the document is last updated. + * `updater` (*type:* `String.t`, *default:* `nil`) - The user who lastly updates the document. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudAiDocument => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Document.t() | nil, + :contentCategory => String.t() | nil, + :createTime => DateTime.t() | nil, + :creator => String.t() | nil, + :displayName => String.t() | nil, + :displayUri => String.t() | nil, + :dispositionTime => DateTime.t() | nil, + :documentSchemaName => String.t() | nil, + :inlineRawDocument => String.t() | nil, + :legalHold => boolean() | nil, + :name => String.t() | nil, + :plainText => String.t() | nil, + :properties => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Property.t()) + | nil, + :rawDocumentFileType => String.t() | nil, + :rawDocumentPath => String.t() | nil, + :referenceId => String.t() | nil, + :textExtractionDisabled => boolean() | nil, + :textExtractionEnabled => boolean() | nil, + :title => String.t() | nil, + :updateTime => DateTime.t() | nil, + :updater => String.t() | nil + } + + field(:cloudAiDocument, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Document) + field(:contentCategory) + field(:createTime, as: DateTime) + field(:creator) + field(:displayName) + field(:displayUri) + field(:dispositionTime, as: DateTime) + field(:documentSchemaName) + field(:inlineRawDocument) + field(:legalHold) + field(:name) + field(:plainText) + + field(:properties, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Property, + type: :list + ) + + field(:rawDocumentFileType) + field(:rawDocumentPath) + field(:referenceId) + field(:textExtractionDisabled) + field(:textExtractionEnabled) + field(:title) + field(:updateTime, as: DateTime) + field(:updater) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document_link.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document_link.ex new file mode 100644 index 0000000000..f7ef498527 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document_link.ex @@ -0,0 +1,81 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentLink do + @moduledoc """ + A document-link between source and target document. + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the documentLink is created. + * `description` (*type:* `String.t`, *default:* `nil`) - Description of this document-link. + * `name` (*type:* `String.t`, *default:* `nil`) - Name of this document-link. It is required that the parent derived form the name to be consistent with the source document reference. Otherwise an exception will be thrown. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}. + * `sourceDocumentReference` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentReference.t`, *default:* `nil`) - Document references of the source document. + * `state` (*type:* `String.t`, *default:* `nil`) - The state of the documentlink. If target node has been deleted, the link is marked as invalid. Removing a source node will result in removal of all associated links. + * `targetDocumentReference` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentReference.t`, *default:* `nil`) - Document references of the target document. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the documentLink is last updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :description => String.t() | nil, + :name => String.t() | nil, + :sourceDocumentReference => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentReference.t() + | nil, + :state => String.t() | nil, + :targetDocumentReference => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentReference.t() + | nil, + :updateTime => DateTime.t() | nil + } + + field(:createTime, as: DateTime) + field(:description) + field(:name) + + field(:sourceDocumentReference, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentReference + ) + + field(:state) + + field(:targetDocumentReference, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentReference + ) + + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentLink do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentLink.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentLink do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document_query.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document_query.ex new file mode 100644 index 0000000000..48f59a42df --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document_query.ex @@ -0,0 +1,111 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentQuery do + @moduledoc """ + + + ## Attributes + + * `customPropertyFilter` (*type:* `String.t`, *default:* `nil`) - This filter specifies a structured syntax to match against the [PropertyDefinition].is_filterable marked as `true`. The syntax for this expression is a subset of SQL syntax. Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the left of the operator is a property name and the right of the operator is a number or a quoted string. You must escape backslash (\\\\) and quote (\\") characters. Supported functions are `LOWER([property_name])` to perform a case insensitive match and `EMPTY([property_name])` to filter on the existence of a key. Boolean expressions (AND/OR/NOT) are supported up to 3 levels of nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100 comparisons or functions are allowed in the expression. The expression must be < 6000 bytes in length. Sample Query: `(LOWER(driving_license)="class \\"a\\"" OR EMPTY(driving_license)) AND driving_years > 10` + * `customWeightsMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CustomWeightsMetadata.t`, *default:* `nil`) - To support the custom weighting across document schemas, customers need to provide the properties to be used to boost the ranking in the search request. For a search query with CustomWeightsMetadata specified, only the RetrievalImportance for the properties in the CustomWeightsMetadata will be honored. + * `documentCreatorFilter` (*type:* `list(String.t)`, *default:* `nil`) - The exact creator(s) of the documents to search against. If a value isn't specified, documents within the search results are associated with any creator. If multiple values are specified, documents within the search results may be associated with any of the specified creators. + * `documentNameFilter` (*type:* `list(String.t)`, *default:* `nil`) - Search the documents in the list. Format: projects/{project_number}/locations/{location}/documents/{document_id}. + * `documentSchemaNames` (*type:* `list(String.t)`, *default:* `nil`) - This filter specifies the exact document schema Document.document_schema_name of the documents to search against. If a value isn't specified, documents within the search results are associated with any schema. If multiple values are specified, documents within the search results may be associated with any of the specified schemas. At most 20 document schema names are allowed. + * `fileTypeFilter` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FileTypeFilter.t`, *default:* `nil`) - This filter specifies the types of files to return: ALL, FOLDER, or FILE. If FOLDER or FILE is specified, then only either folders or files will be returned, respectively. If ALL is specified, both folders and files will be returned. If no value is specified, ALL files will be returned. + * `folderNameFilter` (*type:* `String.t`, *default:* `nil`) - Search all the documents under this specified folder. Format: projects/{project_number}/locations/{location}/documents/{document_id}. + * `isNlQuery` (*type:* `boolean()`, *default:* `nil`) - Experimental, do not use. If the query is a natural language question. False by default. If true, then the question-answering feature will be used instead of search, and `result_count` in SearchDocumentsRequest must be set. In addition, all other input fields related to search (pagination, histograms, etc.) will be ignored. + * `propertyFilter` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyFilter.t)`, *default:* `nil`) - This filter specifies a structured syntax to match against the PropertyDefinition.is_filterable marked as `true`. The relationship between the PropertyFilters is OR. + * `query` (*type:* `String.t`, *default:* `nil`) - The query string that matches against the full text of the document and the searchable properties. The query partially supports [Google AIP style syntax](https://google.aip.dev/160). Specifically, the query supports literals, logical operators, negation operators, comparison operators, and functions. Literals: A bare literal value (examples: "42", "Hugo") is a value to be matched against. It searches over the full text of the document and the searchable properties. Logical operators: "AND", "and", "OR", and "or" are binary logical operators (example: "engineer OR developer"). Negation operators: "NOT" and "!" are negation operators (example: "NOT software"). Comparison operators: support the binary comparison operators =, !=, <, >, <= and >= for string, numeric, enum, boolean. Also support like operator `~~` for string. It provides semantic search functionality by parsing, stemming and doing synonyms expansion against the input query. To specify a property in the query, the left hand side expression in the comparison must be the property ID including the parent. The right hand side must be literals. For example: "\\"projects/123/locations/us\\".property_a < 1" matches results whose "property_a" is less than 1 in project 123 and us location. The literals and comparison expression can be connected in a single query (example: "software engineer \\"projects/123/locations/us\\".salary > 100"). Functions: supported functions are `LOWER([property_name])` to perform a case insensitive match and `EMPTY([property_name])` to filter on the existence of a key. Support nested expressions connected using parenthesis and logical operators. The default logical operators is `AND` if there is no operators between expressions. The query can be used with other filters e.g. `time_filters` and `folder_name_filter`. They are connected with `AND` operator under the hood. The maximum number of allowed characters is 255. + * `queryContext` (*type:* `list(String.t)`, *default:* `nil`) - For custom synonyms. Customers provide the synonyms based on context. One customer can provide multiple set of synonyms based on different context. The search query will be expanded based on the custom synonyms of the query context set. By default, no custom synonyms wll be applied if no query context is provided. It is not supported for CMEK compliant deployment. + * `timeFilters` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimeFilter.t)`, *default:* `nil`) - Documents created/updated within a range specified by this filter are searched against. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :customPropertyFilter => String.t() | nil, + :customWeightsMetadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CustomWeightsMetadata.t() + | nil, + :documentCreatorFilter => list(String.t()) | nil, + :documentNameFilter => list(String.t()) | nil, + :documentSchemaNames => list(String.t()) | nil, + :fileTypeFilter => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FileTypeFilter.t() + | nil, + :folderNameFilter => String.t() | nil, + :isNlQuery => boolean() | nil, + :propertyFilter => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyFilter.t() + ) + | nil, + :query => String.t() | nil, + :queryContext => list(String.t()) | nil, + :timeFilters => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimeFilter.t()) + | nil + } + + field(:customPropertyFilter) + + field(:customWeightsMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CustomWeightsMetadata + ) + + field(:documentCreatorFilter, type: :list) + field(:documentNameFilter, type: :list) + field(:documentSchemaNames, type: :list) + + field(:fileTypeFilter, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FileTypeFilter + ) + + field(:folderNameFilter) + field(:isNlQuery) + + field(:propertyFilter, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyFilter, + type: :list + ) + + field(:query) + field(:queryContext, type: :list) + + field(:timeFilters, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimeFilter, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentQuery do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentQuery.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentQuery do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document_reference.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document_reference.ex new file mode 100644 index 0000000000..9d37e1a538 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document_reference.ex @@ -0,0 +1,75 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentReference do + @moduledoc """ + References to the documents. + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the document is created. + * `deleteTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the document is deleted. + * `displayName` (*type:* `String.t`, *default:* `nil`) - display_name of the referenced document; this name does not need to be consistent to the display_name in the Document proto, depending on the ACL constraint. + * `documentIsFolder` (*type:* `boolean()`, *default:* `nil`) - The document type of the document being referenced. + * `documentIsLegalHoldFolder` (*type:* `boolean()`, *default:* `nil`) - Document is a folder with legal hold. + * `documentIsRetentionFolder` (*type:* `boolean()`, *default:* `nil`) - Document is a folder with retention policy. + * `documentName` (*type:* `String.t`, *default:* `nil`) - Required. Name of the referenced document. + * `snippet` (*type:* `String.t`, *default:* `nil`) - Stores the subset of the referenced document's content. This is useful to allow user peek the information of the referenced document. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the document is last updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :deleteTime => DateTime.t() | nil, + :displayName => String.t() | nil, + :documentIsFolder => boolean() | nil, + :documentIsLegalHoldFolder => boolean() | nil, + :documentIsRetentionFolder => boolean() | nil, + :documentName => String.t() | nil, + :snippet => String.t() | nil, + :updateTime => DateTime.t() | nil + } + + field(:createTime, as: DateTime) + field(:deleteTime, as: DateTime) + field(:displayName) + field(:documentIsFolder) + field(:documentIsLegalHoldFolder) + field(:documentIsRetentionFolder) + field(:documentName) + field(:snippet) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentReference do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentReference.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentReference do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document_schema.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document_schema.ex new file mode 100644 index 0000000000..b438ecaf07 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_document_schema.ex @@ -0,0 +1,78 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema do + @moduledoc """ + A document schema used to define document structure. + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the document schema is created. + * `description` (*type:* `String.t`, *default:* `nil`) - Schema description. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Required. Name of the schema given by the user. Must be unique per project. + * `documentIsFolder` (*type:* `boolean()`, *default:* `nil`) - Document Type, true refers the document is a folder, otherwise it is a typical document. + * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the document schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. The name is ignored when creating a document schema. + * `propertyDefinitions` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinition.t)`, *default:* `nil`) - Document details. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the document schema is last updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :description => String.t() | nil, + :displayName => String.t() | nil, + :documentIsFolder => boolean() | nil, + :name => String.t() | nil, + :propertyDefinitions => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinition.t() + ) + | nil, + :updateTime => DateTime.t() | nil + } + + field(:createTime, as: DateTime) + field(:description) + field(:displayName) + field(:documentIsFolder) + field(:name) + + field(:propertyDefinitions, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinition, + type: :list + ) + + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_enum_array.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_enum_array.ex new file mode 100644 index 0000000000..23b4f06589 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_enum_array.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumArray do + @moduledoc """ + Enum values. + + ## Attributes + + * `values` (*type:* `list(String.t)`, *default:* `nil`) - List of enum values. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :values => list(String.t()) | nil + } + + field(:values, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumArray do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_enum_type_options.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_enum_type_options.ex new file mode 100644 index 0000000000..e6e3f7a29a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_enum_type_options.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumTypeOptions do + @moduledoc """ + Configurations for an enum/categorical property. + + ## Attributes + + * `possibleValues` (*type:* `list(String.t)`, *default:* `nil`) - Required. List of possible enum values. + * `validationCheckDisabled` (*type:* `boolean()`, *default:* `nil`) - Make sure the Enum property value provided in the document is in the possile value list during document creation. The validation check runs by default. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :possibleValues => list(String.t()) | nil, + :validationCheckDisabled => boolean() | nil + } + + field(:possibleValues, type: :list) + field(:validationCheckDisabled) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumTypeOptions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumTypeOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumTypeOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_enum_value.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_enum_value.ex new file mode 100644 index 0000000000..3c950eab65 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_enum_value.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumValue do + @moduledoc """ + Represents the string value of the enum field. + + ## Attributes + + * `value` (*type:* `String.t`, *default:* `nil`) - String value of the enum field. This must match defined set of enums in document schema using EnumTypeOptions. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :value => String.t() | nil + } + + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumValue do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumValue.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_export_to_cdw_pipeline.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_export_to_cdw_pipeline.ex new file mode 100644 index 0000000000..ce095d0bd2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_export_to_cdw_pipeline.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ExportToCdwPipeline do + @moduledoc """ + The configuration of exporting documents from the Document Warehouse to CDW pipeline. + + ## Attributes + + * `docAiDataset` (*type:* `String.t`, *default:* `nil`) - Optional. The CDW dataset resource name. This field is optional. If not set, the documents will be exported to Cloud Storage only. Format: projects/{project}/locations/{location}/processors/{processor}/dataset + * `documents` (*type:* `list(String.t)`, *default:* `nil`) - The list of all the resource names of the documents to be processed. Format: projects/{project_number}/locations/{location}/documents/{document_id}. + * `exportFolderPath` (*type:* `String.t`, *default:* `nil`) - The Cloud Storage folder path used to store the exported documents before being sent to CDW. Format: `gs:///`. + * `trainingSplitRatio` (*type:* `number()`, *default:* `nil`) - Ratio of training dataset split. When importing into Document AI Workbench, documents will be automatically split into training and test split category with the specified ratio. This field is required if doc_ai_dataset is set. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :docAiDataset => String.t() | nil, + :documents => list(String.t()) | nil, + :exportFolderPath => String.t() | nil, + :trainingSplitRatio => number() | nil + } + + field(:docAiDataset) + field(:documents, type: :list) + field(:exportFolderPath) + field(:trainingSplitRatio) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ExportToCdwPipeline do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ExportToCdwPipeline.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ExportToCdwPipeline do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_fetch_acl_request.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_fetch_acl_request.ex new file mode 100644 index 0000000000..856070a209 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_fetch_acl_request.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FetchAclRequest do + @moduledoc """ + Request message for DocumentService.FetchAcl + + ## Attributes + + * `projectOwner` (*type:* `boolean()`, *default:* `nil`) - For Get Project ACL only. Authorization check for end user will be ignored when project_owner=true. + * `requestMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t`, *default:* `nil`) - The meta information collected about the end user, used to enforce access control for the service. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :projectOwner => boolean() | nil, + :requestMetadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t() + | nil + } + + field(:projectOwner) + + field(:requestMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FetchAclRequest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FetchAclRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FetchAclRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_fetch_acl_response.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_fetch_acl_response.ex new file mode 100644 index 0000000000..96e2184af8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_fetch_acl_response.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FetchAclResponse do + @moduledoc """ + Response message for DocumentService.FetchAcl. + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata.t`, *default:* `nil`) - Additional information for the API invocation, such as the request tracking id. + * `policy` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy.t`, *default:* `nil`) - The IAM policy. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata.t() + | nil, + :policy => GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata + ) + + field(:policy, as: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FetchAclResponse do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FetchAclResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FetchAclResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_file_type_filter.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_file_type_filter.ex new file mode 100644 index 0000000000..014d0f4395 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_file_type_filter.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FileTypeFilter do + @moduledoc """ + Filter for the specific types of documents returned. + + ## Attributes + + * `fileType` (*type:* `String.t`, *default:* `nil`) - The type of files to return. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fileType => String.t() | nil + } + + field(:fileType) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FileTypeFilter do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FileTypeFilter.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FileTypeFilter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_float_array.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_float_array.ex new file mode 100644 index 0000000000..e9ee2d366b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_float_array.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FloatArray do + @moduledoc """ + Float values. + + ## Attributes + + * `values` (*type:* `list(number())`, *default:* `nil`) - List of float values. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :values => list(number()) | nil + } + + field(:values, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FloatArray do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FloatArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FloatArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_float_type_options.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_float_type_options.ex new file mode 100644 index 0000000000..d5b2353e84 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_float_type_options.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FloatTypeOptions do + @moduledoc """ + Configurations for a float property. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FloatTypeOptions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FloatTypeOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FloatTypeOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_gcs_ingest_pipeline.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_gcs_ingest_pipeline.ex new file mode 100644 index 0000000000..61e6859239 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_gcs_ingest_pipeline.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GcsIngestPipeline do + @moduledoc """ + The configuration of the Cloud Storage Ingestion pipeline. + + ## Attributes + + * `inputPath` (*type:* `String.t`, *default:* `nil`) - The input Cloud Storage folder. All files under this folder will be imported to Document Warehouse. Format: `gs:///`. + * `pipelineConfig` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IngestPipelineConfig.t`, *default:* `nil`) - Optional. The config for the Cloud Storage Ingestion pipeline. It provides additional customization options to run the pipeline and can be skipped if it is not applicable. + * `processorType` (*type:* `String.t`, *default:* `nil`) - The Doc AI processor type name. Only used when the format of ingested files is Doc AI Document proto format. + * `schemaName` (*type:* `String.t`, *default:* `nil`) - The Document Warehouse schema resource name. All documents processed by this pipeline will use this schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. + * `skipIngestedDocuments` (*type:* `boolean()`, *default:* `nil`) - The flag whether to skip ingested documents. If it is set to true, documents in Cloud Storage contains key "status" with value "status=ingested" in custom metadata will be skipped to ingest. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :inputPath => String.t() | nil, + :pipelineConfig => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IngestPipelineConfig.t() + | nil, + :processorType => String.t() | nil, + :schemaName => String.t() | nil, + :skipIngestedDocuments => boolean() | nil + } + + field(:inputPath) + + field(:pipelineConfig, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IngestPipelineConfig + ) + + field(:processorType) + field(:schemaName) + field(:skipIngestedDocuments) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GcsIngestPipeline do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GcsIngestPipeline.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GcsIngestPipeline do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_gcs_ingest_with_doc_ai_processors_pipeline.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_gcs_ingest_with_doc_ai_processors_pipeline.ex new file mode 100644 index 0000000000..1ebb940356 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_gcs_ingest_with_doc_ai_processors_pipeline.ex @@ -0,0 +1,87 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline do + @moduledoc """ + The configuration of the Cloud Storage Ingestion with DocAI Processors pipeline. + + ## Attributes + + * `extractProcessorInfos` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessorInfo.t)`, *default:* `nil`) - The extract processors information. One matched extract processor will be used to process documents based on the classify processor result. If no classify processor is specified, the first extract processor will be used. + * `inputPath` (*type:* `String.t`, *default:* `nil`) - The input Cloud Storage folder. All files under this folder will be imported to Document Warehouse. Format: `gs:///`. + * `pipelineConfig` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IngestPipelineConfig.t`, *default:* `nil`) - Optional. The config for the Cloud Storage Ingestion with DocAI Processors pipeline. It provides additional customization options to run the pipeline and can be skipped if it is not applicable. + * `processorResultsFolderPath` (*type:* `String.t`, *default:* `nil`) - The Cloud Storage folder path used to store the raw results from processors. Format: `gs:///`. + * `skipIngestedDocuments` (*type:* `boolean()`, *default:* `nil`) - The flag whether to skip ingested documents. If it is set to true, documents in Cloud Storage contains key "status" with value "status=ingested" in custom metadata will be skipped to ingest. + * `splitClassifyProcessorInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessorInfo.t`, *default:* `nil`) - The split and classify processor information. The split and classify result will be used to find a matched extract processor. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :extractProcessorInfos => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessorInfo.t() + ) + | nil, + :inputPath => String.t() | nil, + :pipelineConfig => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IngestPipelineConfig.t() + | nil, + :processorResultsFolderPath => String.t() | nil, + :skipIngestedDocuments => boolean() | nil, + :splitClassifyProcessorInfo => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessorInfo.t() + | nil + } + + field(:extractProcessorInfos, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessorInfo, + type: :list + ) + + field(:inputPath) + + field(:pipelineConfig, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IngestPipelineConfig + ) + + field(:processorResultsFolderPath) + field(:skipIngestedDocuments) + + field(:splitClassifyProcessorInfo, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessorInfo + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_get_document_request.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_get_document_request.ex new file mode 100644 index 0000000000..9b7e225a68 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_get_document_request.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GetDocumentRequest do + @moduledoc """ + Request message for DocumentService.GetDocument. + + ## Attributes + + * `requestMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t`, *default:* `nil`) - The meta information collected about the end user, used to enforce access control for the service. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requestMetadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t() + | nil + } + + field(:requestMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GetDocumentRequest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GetDocumentRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GetDocumentRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_histogram_query.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_histogram_query.ex new file mode 100644 index 0000000000..54a6ea3f36 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_histogram_query.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQuery do + @moduledoc """ + The histogram request. + + ## Attributes + + * `filters` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQueryPropertyNameFilter.t`, *default:* `nil`) - Optional. Filter the result of histogram query by the property names. It only works with histogram query count('FilterableProperties'). It is an optional. It will perform histogram on all the property names for all the document schemas. Setting this field will have a better performance. + * `histogramQuery` (*type:* `String.t`, *default:* `nil`) - An expression specifies a histogram request against matching documents for searches. See SearchDocumentsRequest.histogram_queries for details about syntax. + * `requirePreciseResultSize` (*type:* `boolean()`, *default:* `nil`) - Controls if the histogram query requires the return of a precise count. Enable this flag may adversely impact performance. Defaults to true. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :filters => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQueryPropertyNameFilter.t() + | nil, + :histogramQuery => String.t() | nil, + :requirePreciseResultSize => boolean() | nil + } + + field(:filters, + as: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQueryPropertyNameFilter + ) + + field(:histogramQuery) + field(:requirePreciseResultSize) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQuery do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQuery.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQuery do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_histogram_query_property_name_filter.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_histogram_query_property_name_filter.ex new file mode 100644 index 0000000000..a79e96905c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_histogram_query_property_name_filter.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQueryPropertyNameFilter do + @moduledoc """ + + + ## Attributes + + * `documentSchemas` (*type:* `list(String.t)`, *default:* `nil`) - This filter specifies the exact document schema(s) Document.document_schema_name to run histogram query against. It is optional. It will perform histogram for property names for all the document schemas if it is not set. At most 10 document schema names are allowed. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. + * `propertyNames` (*type:* `list(String.t)`, *default:* `nil`) - It is optional. It will perform histogram for all the property names if it is not set. The properties need to be defined with the is_filterable flag set to true and the name of the property should be in the format: "schemaId.propertyName". The property needs to be defined in the schema. Example: the schema id is abc. Then the name of property for property MORTGAGE_TYPE will be "abc.MORTGAGE_TYPE". + * `yAxis` (*type:* `String.t`, *default:* `nil`) - By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not set. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :documentSchemas => list(String.t()) | nil, + :propertyNames => list(String.t()) | nil, + :yAxis => String.t() | nil + } + + field(:documentSchemas, type: :list) + field(:propertyNames, type: :list) + field(:yAxis) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQueryPropertyNameFilter do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQueryPropertyNameFilter.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQueryPropertyNameFilter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_histogram_query_result.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_histogram_query_result.ex new file mode 100644 index 0000000000..a772ccd124 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_histogram_query_result.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQueryResult do + @moduledoc """ + Histogram result that matches HistogramQuery specified in searches. + + ## Attributes + + * `histogram` (*type:* `map()`, *default:* `nil`) - A map from the values of the facet associated with distinct values to the number of matching entries with corresponding value. The key format is: * (for string histogram) string values stored in the field. + * `histogramQuery` (*type:* `String.t`, *default:* `nil`) - Requested histogram expression. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :histogram => map() | nil, + :histogramQuery => String.t() | nil + } + + field(:histogram, type: :map) + field(:histogramQuery) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQueryResult do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQueryResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQueryResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_ingest_pipeline_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_ingest_pipeline_config.ex new file mode 100644 index 0000000000..5d90c4b630 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_ingest_pipeline_config.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IngestPipelineConfig do + @moduledoc """ + The ingestion pipeline config. + + ## Attributes + + * `cloudFunction` (*type:* `String.t`, *default:* `nil`) - The Cloud Function resource name. The Cloud Function needs to live inside consumer project and is accessible to Document AI Warehouse P4SA. Only Cloud Functions V2 is supported. Cloud function execution should complete within 5 minutes or this file ingestion may fail due to timeout. Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}` The following keys are available the request json payload. * display_name * properties * plain_text * reference_id * document_schema_name * raw_document_path * raw_document_file_type The following keys from the cloud function json response payload will be ingested to the Document AI Warehouse as part of Document proto content and/or related information. The original values will be overridden if any key is present in the response. * display_name * properties * plain_text * document_acl_policy * folder + * `documentAclPolicy` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy.t`, *default:* `nil`) - The document level acl policy config. This refers to an Identity and Access (IAM) policy, which specifies access controls for all documents ingested by the pipeline. The role and members under the policy needs to be specified. The following roles are supported for document level acl control: * roles/contentwarehouse.documentAdmin * roles/contentwarehouse.documentEditor * roles/contentwarehouse.documentViewer The following members are supported for document level acl control: * user:user-email@example.com * group:group-email@example.com Note that for documents searched with LLM, only single level user or group acl check is supported. + * `enableDocumentTextExtraction` (*type:* `boolean()`, *default:* `nil`) - The document text extraction enabled flag. If the flag is set to true, DWH will perform text extraction on the raw document. + * `folder` (*type:* `String.t`, *default:* `nil`) - Optional. The name of the folder to which all ingested documents will be linked during ingestion process. Format is `projects/{project}/locations/{location}/documents/{folder_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudFunction => String.t() | nil, + :documentAclPolicy => GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy.t() | nil, + :enableDocumentTextExtraction => boolean() | nil, + :folder => String.t() | nil + } + + field(:cloudFunction) + field(:documentAclPolicy, as: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy) + field(:enableDocumentTextExtraction) + field(:folder) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IngestPipelineConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IngestPipelineConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IngestPipelineConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_initialize_project_request.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_initialize_project_request.ex new file mode 100644 index 0000000000..7ce3d3806d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_initialize_project_request.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1InitializeProjectRequest do + @moduledoc """ + Request message for projectService.InitializeProject + + ## Attributes + + * `accessControlMode` (*type:* `String.t`, *default:* `nil`) - Required. The access control mode for accessing the customer data + * `databaseType` (*type:* `String.t`, *default:* `nil`) - Required. The type of database used to store customer data + * `documentCreatorDefaultRole` (*type:* `String.t`, *default:* `nil`) - Optional. The default role for the person who create a document. + * `enableCalUserEmailLogging` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether to enable CAL user email logging. + * `kmsKey` (*type:* `String.t`, *default:* `nil`) - Optional. The KMS key used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key is left empty, no encryption will be enforced. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accessControlMode => String.t() | nil, + :databaseType => String.t() | nil, + :documentCreatorDefaultRole => String.t() | nil, + :enableCalUserEmailLogging => boolean() | nil, + :kmsKey => String.t() | nil + } + + field(:accessControlMode) + field(:databaseType) + field(:documentCreatorDefaultRole) + field(:enableCalUserEmailLogging) + field(:kmsKey) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1InitializeProjectRequest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1InitializeProjectRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1InitializeProjectRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_initialize_project_response.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_initialize_project_response.ex new file mode 100644 index 0000000000..1073f5c642 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_initialize_project_response.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1InitializeProjectResponse do + @moduledoc """ + Response message for projectService.InitializeProject + + ## Attributes + + * `message` (*type:* `String.t`, *default:* `nil`) - The message of the project initialization process. + * `state` (*type:* `String.t`, *default:* `nil`) - The state of the project initialization process. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :message => String.t() | nil, + :state => String.t() | nil + } + + field(:message) + field(:state) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1InitializeProjectResponse do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1InitializeProjectResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1InitializeProjectResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_integer_array.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_integer_array.ex new file mode 100644 index 0000000000..43f9c4baf9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_integer_array.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IntegerArray do + @moduledoc """ + Integer values. + + ## Attributes + + * `values` (*type:* `list(integer())`, *default:* `nil`) - List of integer values. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :values => list(integer()) | nil + } + + field(:values, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IntegerArray do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IntegerArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IntegerArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_integer_type_options.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_integer_type_options.ex new file mode 100644 index 0000000000..28c9b55a59 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_integer_type_options.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IntegerTypeOptions do + @moduledoc """ + Configurations for an integer property. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IntegerTypeOptions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IntegerTypeOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IntegerTypeOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_invalid_rule.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_invalid_rule.ex new file mode 100644 index 0000000000..6ce75cdabf --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_invalid_rule.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1InvalidRule do + @moduledoc """ + A triggered rule that failed the validation check(s) after parsing. + + ## Attributes + + * `error` (*type:* `String.t`, *default:* `nil`) - Validation error on a parsed expression. + * `rule` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule.t`, *default:* `nil`) - Triggered rule. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :error => String.t() | nil, + :rule => GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule.t() | nil + } + + field(:error) + field(:rule, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1InvalidRule do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1InvalidRule.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1InvalidRule do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_document_schemas_response.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_document_schemas_response.ex new file mode 100644 index 0000000000..1382e279f8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_document_schemas_response.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListDocumentSchemasResponse do + @moduledoc """ + Response message for DocumentSchemaService.ListDocumentSchemas. + + ## Attributes + + * `documentSchemas` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema.t)`, *default:* `nil`) - The document schemas from the specified parent. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :documentSchemas => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema.t() + ) + | nil, + :nextPageToken => String.t() | nil + } + + field(:documentSchemas, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema, + type: :list + ) + + field(:nextPageToken) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListDocumentSchemasResponse do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListDocumentSchemasResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListDocumentSchemasResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_linked_sources_request.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_linked_sources_request.ex new file mode 100644 index 0000000000..a89f721dea --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_linked_sources_request.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedSourcesRequest do + @moduledoc """ + Response message for DocumentLinkService.ListLinkedSources. + + ## Attributes + + * `pageSize` (*type:* `integer()`, *default:* `nil`) - The maximum number of document-links to return. The service may return fewer than this value. If unspecified, at most 50 document-links will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * `pageToken` (*type:* `String.t`, *default:* `nil`) - A page token, received from a previous `ListLinkedSources` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListLinkedSources` must match the call that provided the page token. + * `requestMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t`, *default:* `nil`) - The meta information collected about the document creator, used to enforce access control for the service. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :pageSize => integer() | nil, + :pageToken => String.t() | nil, + :requestMetadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t() + | nil + } + + field(:pageSize) + field(:pageToken) + + field(:requestMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedSourcesRequest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedSourcesRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedSourcesRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_linked_sources_response.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_linked_sources_response.ex new file mode 100644 index 0000000000..6b274261bc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_linked_sources_response.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedSourcesResponse do + @moduledoc """ + Response message for DocumentLinkService.ListLinkedSources. + + ## Attributes + + * `documentLinks` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentLink.t)`, *default:* `nil`) - Source document-links. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :documentLinks => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentLink.t() + ) + | nil, + :nextPageToken => String.t() | nil + } + + field(:documentLinks, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentLink, + type: :list + ) + + field(:nextPageToken) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedSourcesResponse do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedSourcesResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedSourcesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_linked_targets_request.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_linked_targets_request.ex new file mode 100644 index 0000000000..0b3ab49b7a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_linked_targets_request.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedTargetsRequest do + @moduledoc """ + Request message for DocumentLinkService.ListLinkedTargets. + + ## Attributes + + * `requestMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t`, *default:* `nil`) - The meta information collected about the document creator, used to enforce access control for the service. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requestMetadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t() + | nil + } + + field(:requestMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedTargetsRequest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedTargetsRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedTargetsRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_linked_targets_response.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_linked_targets_response.ex new file mode 100644 index 0000000000..372086151a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_linked_targets_response.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedTargetsResponse do + @moduledoc """ + Response message for DocumentLinkService.ListLinkedTargets. + + ## Attributes + + * `documentLinks` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentLink.t)`, *default:* `nil`) - Target document-links. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :documentLinks => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentLink.t() + ) + | nil, + :nextPageToken => String.t() | nil + } + + field(:documentLinks, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentLink, + type: :list + ) + + field(:nextPageToken) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedTargetsResponse do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedTargetsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListLinkedTargetsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_rule_sets_response.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_rule_sets_response.ex new file mode 100644 index 0000000000..d35cfe5254 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_rule_sets_response.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListRuleSetsResponse do + @moduledoc """ + Response message for RuleSetService.ListRuleSets. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + * `ruleSets` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet.t)`, *default:* `nil`) - The rule sets from the specified parent. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :ruleSets => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet.t()) + | nil + } + + field(:nextPageToken) + + field(:ruleSets, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListRuleSetsResponse do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListRuleSetsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListRuleSetsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_synonym_sets_response.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_synonym_sets_response.ex new file mode 100644 index 0000000000..fd2c3e2ad6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_list_synonym_sets_response.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListSynonymSetsResponse do + @moduledoc """ + Response message for SynonymSetService.ListSynonymSets. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A page token, received from a previous `ListSynonymSets` call. Provide this to retrieve the subsequent page. + * `synonymSets` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet.t)`, *default:* `nil`) - The synonymSets from the specified parent. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :synonymSets => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet.t()) + | nil + } + + field(:nextPageToken) + + field(:synonymSets, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListSynonymSetsResponse do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListSynonymSetsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ListSynonymSetsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_lock_document_request.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_lock_document_request.ex new file mode 100644 index 0000000000..a1f20d692a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_lock_document_request.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1LockDocumentRequest do + @moduledoc """ + Request message for DocumentService.LockDocument. + + ## Attributes + + * `collectionId` (*type:* `String.t`, *default:* `nil`) - The collection the document connects to. + * `lockingUser` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UserInfo.t`, *default:* `nil`) - The user information who locks the document. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :collectionId => String.t() | nil, + :lockingUser => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UserInfo.t() | nil + } + + field(:collectionId) + + field(:lockingUser, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UserInfo + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1LockDocumentRequest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1LockDocumentRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1LockDocumentRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_map_property.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_map_property.ex new file mode 100644 index 0000000000..8686f4e49f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_map_property.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MapProperty do + @moduledoc """ + Map property value. Represents a structured entries of key value pairs, consisting of field names which map to dynamically typed values. + + ## Attributes + + * `fields` (*type:* `%{optional(String.t) => GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Value.t}`, *default:* `nil`) - Unordered map of dynamically typed values. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fields => + %{ + optional(String.t()) => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Value.t() + } + | nil + } + + field(:fields, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Value, + type: :map + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MapProperty do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MapProperty.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MapProperty do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_map_type_options.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_map_type_options.ex new file mode 100644 index 0000000000..4f85cd0983 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_map_type_options.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MapTypeOptions do + @moduledoc """ + Configurations for a Map property. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MapTypeOptions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MapTypeOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MapTypeOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_merge_fields_options.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_merge_fields_options.ex new file mode 100644 index 0000000000..50cbb4f03f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_merge_fields_options.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MergeFieldsOptions do + @moduledoc """ + Options for merging updated fields. + + ## Attributes + + * `replaceMessageFields` (*type:* `boolean()`, *default:* `nil`) - When merging message fields, the default behavior is to merge the content of two message fields together. If you instead want to use the field from the source message to replace the corresponding field in the destination message, set this flag to true. When this flag is set, specified submessage fields that are missing in source will be cleared in destination. + * `replaceRepeatedFields` (*type:* `boolean()`, *default:* `nil`) - When merging repeated fields, the default behavior is to append entries from the source repeated field to the destination repeated field. If you instead want to keep only the entries from the source repeated field, set this flag to true. If you want to replace a repeated field within a message field on the destination message, you must set both replace_repeated_fields and replace_message_fields to true, otherwise the repeated fields will be appended. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :replaceMessageFields => boolean() | nil, + :replaceRepeatedFields => boolean() | nil + } + + field(:replaceMessageFields) + field(:replaceRepeatedFields) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MergeFieldsOptions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MergeFieldsOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MergeFieldsOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_process_with_doc_ai_pipeline.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_process_with_doc_ai_pipeline.ex new file mode 100644 index 0000000000..b6f5a77eff --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_process_with_doc_ai_pipeline.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessWithDocAiPipeline do + @moduledoc """ + The configuration of processing documents in Document Warehouse with DocAi processors pipeline. + + ## Attributes + + * `documents` (*type:* `list(String.t)`, *default:* `nil`) - The list of all the resource names of the documents to be processed. Format: projects/{project_number}/locations/{location}/documents/{document_id}. + * `exportFolderPath` (*type:* `String.t`, *default:* `nil`) - The Cloud Storage folder path used to store the exported documents before being sent to CDW. Format: `gs:///`. + * `processorInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessorInfo.t`, *default:* `nil`) - The CDW processor information. + * `processorResultsFolderPath` (*type:* `String.t`, *default:* `nil`) - The Cloud Storage folder path used to store the raw results from processors. Format: `gs:///`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :documents => list(String.t()) | nil, + :exportFolderPath => String.t() | nil, + :processorInfo => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessorInfo.t() + | nil, + :processorResultsFolderPath => String.t() | nil + } + + field(:documents, type: :list) + field(:exportFolderPath) + + field(:processorInfo, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessorInfo + ) + + field(:processorResultsFolderPath) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessWithDocAiPipeline do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessWithDocAiPipeline.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessWithDocAiPipeline do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_processor_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_processor_info.ex new file mode 100644 index 0000000000..8d87162769 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_processor_info.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessorInfo do + @moduledoc """ + The DocAI processor information. + + ## Attributes + + * `documentType` (*type:* `String.t`, *default:* `nil`) - The processor will process the documents with this document type. + * `processorName` (*type:* `String.t`, *default:* `nil`) - The processor resource name. Format is `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` + * `schemaName` (*type:* `String.t`, *default:* `nil`) - The Document schema resource name. All documents processed by this processor will use this schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :documentType => String.t() | nil, + :processorName => String.t() | nil, + :schemaName => String.t() | nil + } + + field(:documentType) + field(:processorName) + field(:schemaName) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessorInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessorInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessorInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_project_status.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_project_status.ex new file mode 100644 index 0000000000..3b62c10b9b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_project_status.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProjectStatus do + @moduledoc """ + Status of a project, including the project state, dbType, aclMode and etc. + + ## Attributes + + * `accessControlMode` (*type:* `String.t`, *default:* `nil`) - Access control mode. + * `databaseType` (*type:* `String.t`, *default:* `nil`) - Database type. + * `documentCreatorDefaultRole` (*type:* `String.t`, *default:* `nil`) - The default role for the person who create a document. + * `location` (*type:* `String.t`, *default:* `nil`) - The location of the queried project. + * `qaEnabled` (*type:* `boolean()`, *default:* `nil`) - If the qa is enabled on this project. + * `state` (*type:* `String.t`, *default:* `nil`) - State of the project. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accessControlMode => String.t() | nil, + :databaseType => String.t() | nil, + :documentCreatorDefaultRole => String.t() | nil, + :location => String.t() | nil, + :qaEnabled => boolean() | nil, + :state => String.t() | nil + } + + field(:accessControlMode) + field(:databaseType) + field(:documentCreatorDefaultRole) + field(:location) + field(:qaEnabled) + field(:state) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProjectStatus do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProjectStatus.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProjectStatus do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property.ex new file mode 100644 index 0000000000..b29a8589c3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property.ex @@ -0,0 +1,111 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Property do + @moduledoc """ + Property of a document. + + ## Attributes + + * `dateTimeValues` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DateTimeArray.t`, *default:* `nil`) - Date time property values. It is not supported by CMEK compliant deployment. + * `enumValues` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumArray.t`, *default:* `nil`) - Enum property values. + * `floatValues` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FloatArray.t`, *default:* `nil`) - Float property values. + * `integerValues` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IntegerArray.t`, *default:* `nil`) - Integer property values. + * `mapProperty` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MapProperty.t`, *default:* `nil`) - Map property values. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. Must match the name of a PropertyDefinition in the DocumentSchema. + * `propertyValues` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyArray.t`, *default:* `nil`) - Nested structured data property values. + * `textValues` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TextArray.t`, *default:* `nil`) - String/text property values. + * `timestampValues` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampArray.t`, *default:* `nil`) - Timestamp property values. It is not supported by CMEK compliant deployment. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dateTimeValues => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DateTimeArray.t() + | nil, + :enumValues => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumArray.t() | nil, + :floatValues => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FloatArray.t() | nil, + :integerValues => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IntegerArray.t() + | nil, + :mapProperty => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MapProperty.t() | nil, + :name => String.t() | nil, + :propertyValues => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyArray.t() + | nil, + :textValues => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TextArray.t() | nil, + :timestampValues => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampArray.t() + | nil + } + + field(:dateTimeValues, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DateTimeArray + ) + + field(:enumValues, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumArray + ) + + field(:floatValues, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FloatArray + ) + + field(:integerValues, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IntegerArray + ) + + field(:mapProperty, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MapProperty + ) + + field(:name) + + field(:propertyValues, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyArray + ) + + field(:textValues, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TextArray + ) + + field(:timestampValues, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampArray + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Property do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Property.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Property do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_array.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_array.ex new file mode 100644 index 0000000000..3a8e0d3999 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_array.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyArray do + @moduledoc """ + Property values. + + ## Attributes + + * `properties` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Property.t)`, *default:* `nil`) - List of property values. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :properties => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Property.t()) + | nil + } + + field(:properties, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Property, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyArray do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_definition.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_definition.ex new file mode 100644 index 0000000000..c06a75d1d9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_definition.ex @@ -0,0 +1,151 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinition do + @moduledoc """ + Defines the metadata for a schema property. + + ## Attributes + + * `dateTimeTypeOptions` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DateTimeTypeOptions.t`, *default:* `nil`) - Date time property. It is not supported by CMEK compliant deployment. + * `displayName` (*type:* `String.t`, *default:* `nil`) - The display-name for the property, used for front-end. + * `enumTypeOptions` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumTypeOptions.t`, *default:* `nil`) - Enum/categorical property. + * `floatTypeOptions` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FloatTypeOptions.t`, *default:* `nil`) - Float property. + * `integerTypeOptions` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IntegerTypeOptions.t`, *default:* `nil`) - Integer property. + * `isFilterable` (*type:* `boolean()`, *default:* `nil`) - Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable. + * `isMetadata` (*type:* `boolean()`, *default:* `nil`) - Whether the property is user supplied metadata. This out-of-the box placeholder setting can be used to tag derived properties. Its value and interpretation logic should be implemented by API user. + * `isRepeatable` (*type:* `boolean()`, *default:* `nil`) - Whether the property can have multiple values. + * `isRequired` (*type:* `boolean()`, *default:* `nil`) - Whether the property is mandatory. Default is 'false', i.e. populating property value can be skipped. If 'true' then user must populate the value for this property. + * `isSearchable` (*type:* `boolean()`, *default:* `nil`) - Indicates that the property should be included in a global search. + * `mapTypeOptions` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MapTypeOptions.t`, *default:* `nil`) - Map property. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. The name of the metadata property. Must be unique within a document schema and is case insensitive. Names must be non-blank, start with a letter, and can contain alphanumeric characters and: /, :, -, _, and . + * `propertyTypeOptions` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyTypeOptions.t`, *default:* `nil`) - Nested structured data property. + * `retrievalImportance` (*type:* `String.t`, *default:* `nil`) - The retrieval importance of the property during search. + * `schemaSources` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource.t)`, *default:* `nil`) - The mapping information between this property to another schema source. + * `textTypeOptions` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TextTypeOptions.t`, *default:* `nil`) - Text/string property. + * `timestampTypeOptions` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampTypeOptions.t`, *default:* `nil`) - Timestamp property. It is not supported by CMEK compliant deployment. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dateTimeTypeOptions => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DateTimeTypeOptions.t() + | nil, + :displayName => String.t() | nil, + :enumTypeOptions => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumTypeOptions.t() + | nil, + :floatTypeOptions => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FloatTypeOptions.t() + | nil, + :integerTypeOptions => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IntegerTypeOptions.t() + | nil, + :isFilterable => boolean() | nil, + :isMetadata => boolean() | nil, + :isRepeatable => boolean() | nil, + :isRequired => boolean() | nil, + :isSearchable => boolean() | nil, + :mapTypeOptions => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MapTypeOptions.t() + | nil, + :name => String.t() | nil, + :propertyTypeOptions => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyTypeOptions.t() + | nil, + :retrievalImportance => String.t() | nil, + :schemaSources => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource.t() + ) + | nil, + :textTypeOptions => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TextTypeOptions.t() + | nil, + :timestampTypeOptions => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampTypeOptions.t() + | nil + } + + field(:dateTimeTypeOptions, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DateTimeTypeOptions + ) + + field(:displayName) + + field(:enumTypeOptions, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumTypeOptions + ) + + field(:floatTypeOptions, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1FloatTypeOptions + ) + + field(:integerTypeOptions, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1IntegerTypeOptions + ) + + field(:isFilterable) + field(:isMetadata) + field(:isRepeatable) + field(:isRequired) + field(:isSearchable) + + field(:mapTypeOptions, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MapTypeOptions + ) + + field(:name) + + field(:propertyTypeOptions, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyTypeOptions + ) + + field(:retrievalImportance) + + field(:schemaSources, + as: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource, + type: :list + ) + + field(:textTypeOptions, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TextTypeOptions + ) + + field(:timestampTypeOptions, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampTypeOptions + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinition do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinition.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinition do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_definition_schema_source.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_definition_schema_source.ex new file mode 100644 index 0000000000..fb451c4fb0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_definition_schema_source.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource do + @moduledoc """ + The schema source information. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - The schema name in the source. + * `processorType` (*type:* `String.t`, *default:* `nil`) - The Doc AI processor type name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :processorType => String.t() | nil + } + + field(:name) + field(:processorType) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_filter.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_filter.ex new file mode 100644 index 0000000000..c782ef58b8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_filter.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyFilter do + @moduledoc """ + + + ## Attributes + + * `condition` (*type:* `String.t`, *default:* `nil`) - The filter condition. The syntax for this expression is a subset of SQL syntax. Supported operators are: `=`, `!=`, `<`, `<=`, `>`, `>=`, and `~~` where the left of the operator is a property name and the right of the operator is a number or a quoted string. You must escape backslash (\\\\) and quote (\\") characters. `~~` is the LIKE operator. The right of the operator must be a string. The only supported property data type for LIKE is text_values. It provides semantic search functionality by parsing, stemming and doing synonyms expansion against the input query. It matches if the property contains semantic similar content to the query. It is not regex matching or wildcard matching. For example, "property.company ~~ \\"google\\"" will match records whose property `property.compnay` have values like "Google Inc.", "Google LLC" or "Google Company". Supported functions are `LOWER([property_name])` to perform a case insensitive match and `EMPTY([property_name])` to filter on the existence of a key. Boolean expressions (AND/OR/NOT) are supported up to 3 levels of nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100 comparisons or functions are allowed in the expression. The expression must be < 6000 bytes in length. Only properties that are marked filterable are allowed (PropertyDefinition.is_filterable). Property names do not need to be prefixed by the document schema id (as is the case with histograms), however property names will need to be prefixed by its parent hierarchy, if any. For example: top_property_name.sub_property_name. Sample Query: `(LOWER(driving_license)="class \\"a\\"" OR EMPTY(driving_license)) AND driving_years > 10` CMEK compliant deployment only supports: * Operators: `=`, `<`, `<=`, `>`, and `>=`. * Boolean expressions: AND and OR. + * `documentSchemaName` (*type:* `String.t`, *default:* `nil`) - The Document schema name Document.document_schema_name. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :condition => String.t() | nil, + :documentSchemaName => String.t() | nil + } + + field(:condition) + field(:documentSchemaName) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyFilter do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyFilter.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyFilter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_type_options.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_type_options.ex new file mode 100644 index 0000000000..506e93f4bb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_property_type_options.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyTypeOptions do + @moduledoc """ + Configurations for a nested structured data property. + + ## Attributes + + * `propertyDefinitions` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinition.t)`, *default:* `nil`) - Required. List of property definitions. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :propertyDefinitions => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinition.t() + ) + | nil + } + + field(:propertyDefinitions, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyDefinition, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyTypeOptions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyTypeOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PropertyTypeOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_publish_action.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_publish_action.ex new file mode 100644 index 0000000000..bf3c84a6d3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_publish_action.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PublishAction do + @moduledoc """ + Represents the action responsible for publishing messages to a Pub/Sub topic. + + ## Attributes + + * `messages` (*type:* `list(String.t)`, *default:* `nil`) - Messages to be published. + * `topicId` (*type:* `String.t`, *default:* `nil`) - The topic id in the Pub/Sub service for which messages will be published to. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :messages => list(String.t()) | nil, + :topicId => String.t() | nil + } + + field(:messages, type: :list) + field(:topicId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PublishAction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PublishAction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1PublishAction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_qa_result.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_qa_result.ex new file mode 100644 index 0000000000..529e6608c5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_qa_result.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResult do + @moduledoc """ + Additional result info for the question-answering feature. + + ## Attributes + + * `confidenceScore` (*type:* `number()`, *default:* `nil`) - The calibrated confidence score for this document, in the range [0., 1.]. This represents the confidence level for whether the returned document and snippet answers the user's query. + * `highlights` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResultHighlight.t)`, *default:* `nil`) - Highlighted sections in the snippet. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidenceScore => number() | nil, + :highlights => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResultHighlight.t() + ) + | nil + } + + field(:confidenceScore) + + field(:highlights, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResultHighlight, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResult do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_qa_result_highlight.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_qa_result_highlight.ex new file mode 100644 index 0000000000..6aa3fd8aa1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_qa_result_highlight.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResultHighlight do + @moduledoc """ + A text span in the search text snippet that represents a highlighted section (answer context, highly relevant sentence, etc.). + + ## Attributes + + * `endIndex` (*type:* `integer()`, *default:* `nil`) - End index of the highlight, exclusive. + * `startIndex` (*type:* `integer()`, *default:* `nil`) - Start index of the highlight. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :endIndex => integer() | nil, + :startIndex => integer() | nil + } + + field(:endIndex) + field(:startIndex) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResultHighlight do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResultHighlight.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResultHighlight do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_remove_from_folder_action.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_remove_from_folder_action.ex new file mode 100644 index 0000000000..069fd2ea89 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_remove_from_folder_action.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RemoveFromFolderAction do + @moduledoc """ + Represents the action responsible for remove a document from a specific folder. + + ## Attributes + + * `condition` (*type:* `String.t`, *default:* `nil`) - Condition of the action to be executed. + * `folder` (*type:* `String.t`, *default:* `nil`) - Name of the folder under which new document is to be added. Format: projects/{project_number}/locations/{location}/documents/{document_id}. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :condition => String.t() | nil, + :folder => String.t() | nil + } + + field(:condition) + field(:folder) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RemoveFromFolderAction do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RemoveFromFolderAction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RemoveFromFolderAction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_request_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_request_metadata.ex new file mode 100644 index 0000000000..b1482d73c6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_request_metadata.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata do + @moduledoc """ + Meta information is used to improve the performance of the service. + + ## Attributes + + * `userInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UserInfo.t`, *default:* `nil`) - Provides user unique identification and groups information. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :userInfo => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UserInfo.t() | nil + } + + field(:userInfo, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UserInfo) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_response_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_response_metadata.ex new file mode 100644 index 0000000000..5002a8ec60 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_response_metadata.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata do + @moduledoc """ + Additional information returned to client, such as debugging information. + + ## Attributes + + * `requestId` (*type:* `String.t`, *default:* `nil`) - A unique id associated with this call. This id is logged for tracking purpose. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requestId => String.t() | nil + } + + field(:requestId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule.ex new file mode 100644 index 0000000000..1ea3e7ea0c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule do + @moduledoc """ + Represents the rule for a content warehouse trigger. + + ## Attributes + + * `actions` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Action.t)`, *default:* `nil`) - List of actions that are executed when the rule is satisfied. + * `condition` (*type:* `String.t`, *default:* `nil`) - Represents the conditional expression to be evaluated. Expression should evaluate to a boolean result. When the condition is true actions are executed. Example: user_role = "hsbc_role_1" AND doc.salary > 20000 + * `description` (*type:* `String.t`, *default:* `nil`) - Short description of the rule and its context. + * `ruleId` (*type:* `String.t`, *default:* `nil`) - ID of the rule. It has to be unique across all the examples. This is managed internally. + * `triggerType` (*type:* `String.t`, *default:* `nil`) - Identifies the trigger type for running the policy. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :actions => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Action.t()) + | nil, + :condition => String.t() | nil, + :description => String.t() | nil, + :ruleId => String.t() | nil, + :triggerType => String.t() | nil + } + + field(:actions, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Action, + type: :list + ) + + field(:condition) + field(:description) + field(:ruleId) + field(:triggerType) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule_actions_pair.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule_actions_pair.ex new file mode 100644 index 0000000000..b389d3ab83 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule_actions_pair.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleActionsPair do + @moduledoc """ + Represents a rule and outputs of associated actions. + + ## Attributes + + * `actionOutputs` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ActionOutput.t)`, *default:* `nil`) - Outputs of executing the actions associated with the above rule. + * `rule` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule.t`, *default:* `nil`) - Represents the rule. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :actionOutputs => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ActionOutput.t() + ) + | nil, + :rule => GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule.t() | nil + } + + field(:actionOutputs, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ActionOutput, + type: :list + ) + + field(:rule, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleActionsPair do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleActionsPair.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleActionsPair do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule_engine_output.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule_engine_output.ex new file mode 100644 index 0000000000..005487363c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule_engine_output.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEngineOutput do + @moduledoc """ + Records the output of Rule Engine including rule evaluation and actions result. + + ## Attributes + + * `actionExecutorOutput` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ActionExecutorOutput.t`, *default:* `nil`) - Output from Action Executor containing rule and corresponding actions execution result. + * `documentName` (*type:* `String.t`, *default:* `nil`) - Name of the document against which the rules and actions were evaluated. + * `ruleEvaluatorOutput` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEvaluatorOutput.t`, *default:* `nil`) - Output from Rule Evaluator containing matched, unmatched and invalid rules. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :actionExecutorOutput => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ActionExecutorOutput.t() + | nil, + :documentName => String.t() | nil, + :ruleEvaluatorOutput => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEvaluatorOutput.t() + | nil + } + + field(:actionExecutorOutput, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ActionExecutorOutput + ) + + field(:documentName) + + field(:ruleEvaluatorOutput, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEvaluatorOutput + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEngineOutput do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEngineOutput.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEngineOutput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule_evaluator_output.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule_evaluator_output.ex new file mode 100644 index 0000000000..24894af120 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule_evaluator_output.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEvaluatorOutput do + @moduledoc """ + Represents the output of the Rule Evaluator. + + ## Attributes + + * `invalidRules` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1InvalidRule.t)`, *default:* `nil`) - A subset of triggered rules that failed the validation check(s) after parsing. + * `matchedRules` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule.t)`, *default:* `nil`) - A subset of triggered rules that are evaluated true for a given request. + * `triggeredRules` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule.t)`, *default:* `nil`) - List of rules fetched from database for the given request trigger type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :invalidRules => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1InvalidRule.t()) + | nil, + :matchedRules => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule.t()) | nil, + :triggeredRules => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule.t()) | nil + } + + field(:invalidRules, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1InvalidRule, + type: :list + ) + + field(:matchedRules, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule, + type: :list + ) + + field(:triggeredRules, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEvaluatorOutput do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEvaluatorOutput.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEvaluatorOutput do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule_set.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule_set.ex new file mode 100644 index 0000000000..49a9e67019 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_rule_set.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet do + @moduledoc """ + Represents a set of rules from a single customer. + + ## Attributes + + * `description` (*type:* `String.t`, *default:* `nil`) - Short description of the rule-set. + * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the rule set. Managed internally. Format: projects/{project_number}/locations/{location}/ruleSet/{rule_set_id}. The name is ignored when creating a rule set. + * `rules` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule.t)`, *default:* `nil`) - List of rules given by the customer. + * `source` (*type:* `String.t`, *default:* `nil`) - Source of the rules i.e., customer name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :description => String.t() | nil, + :name => String.t() | nil, + :rules => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule.t()) | nil, + :source => String.t() | nil + } + + field(:description) + field(:name) + + field(:rules, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Rule, + type: :list + ) + + field(:source) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata.ex new file mode 100644 index 0000000000..6549e004f2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata.ex @@ -0,0 +1,98 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadata do + @moduledoc """ + Metadata message of RunPipeline method. + + ## Attributes + + * `exportToCdwPipelineMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataExportToCdwPipelineMetadata.t`, *default:* `nil`) - The pipeline metadata for Export-to-CDW pipeline. + * `failedFileCount` (*type:* `integer()`, *default:* `nil`) - Number of files that have failed at some point in the pipeline. + * `gcsIngestPipelineMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataGcsIngestPipelineMetadata.t`, *default:* `nil`) - The pipeline metadata for GcsIngest pipeline. + * `individualDocumentStatuses` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataIndividualDocumentStatus.t)`, *default:* `nil`) - The list of response details of each document. + * `processWithDocAiPipelineMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataProcessWithDocAiPipelineMetadata.t`, *default:* `nil`) - The pipeline metadata for Process-with-DocAi pipeline. + * `totalFileCount` (*type:* `integer()`, *default:* `nil`) - Number of files that were processed by the pipeline. + * `userInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UserInfo.t`, *default:* `nil`) - User unique identification and groups information. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :exportToCdwPipelineMetadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataExportToCdwPipelineMetadata.t() + | nil, + :failedFileCount => integer() | nil, + :gcsIngestPipelineMetadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataGcsIngestPipelineMetadata.t() + | nil, + :individualDocumentStatuses => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataIndividualDocumentStatus.t() + ) + | nil, + :processWithDocAiPipelineMetadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataProcessWithDocAiPipelineMetadata.t() + | nil, + :totalFileCount => integer() | nil, + :userInfo => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UserInfo.t() | nil + } + + field(:exportToCdwPipelineMetadata, + as: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataExportToCdwPipelineMetadata + ) + + field(:failedFileCount) + + field(:gcsIngestPipelineMetadata, + as: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataGcsIngestPipelineMetadata + ) + + field(:individualDocumentStatuses, + as: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataIndividualDocumentStatus, + type: :list + ) + + field(:processWithDocAiPipelineMetadata, + as: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataProcessWithDocAiPipelineMetadata + ) + + field(:totalFileCount) + field(:userInfo, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UserInfo) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata_export_to_cdw_pipeline_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata_export_to_cdw_pipeline_metadata.ex new file mode 100644 index 0000000000..153b094b83 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata_export_to_cdw_pipeline_metadata.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataExportToCdwPipelineMetadata do + @moduledoc """ + The metadata message for Export-to-CDW pipeline. + + ## Attributes + + * `docAiDataset` (*type:* `String.t`, *default:* `nil`) - The output CDW dataset resource name. + * `documents` (*type:* `list(String.t)`, *default:* `nil`) - The input list of all the resource names of the documents to be exported. + * `outputPath` (*type:* `String.t`, *default:* `nil`) - The output Cloud Storage folder in this pipeline. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :docAiDataset => String.t() | nil, + :documents => list(String.t()) | nil, + :outputPath => String.t() | nil + } + + field(:docAiDataset) + field(:documents, type: :list) + field(:outputPath) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataExportToCdwPipelineMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataExportToCdwPipelineMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataExportToCdwPipelineMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata_gcs_ingest_pipeline_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata_gcs_ingest_pipeline_metadata.ex new file mode 100644 index 0000000000..be6fa883d9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata_gcs_ingest_pipeline_metadata.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataGcsIngestPipelineMetadata do + @moduledoc """ + The metadata message for GcsIngest pipeline. + + ## Attributes + + * `inputPath` (*type:* `String.t`, *default:* `nil`) - The input Cloud Storage folder in this pipeline. Format: `gs:///`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :inputPath => String.t() | nil + } + + field(:inputPath) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataGcsIngestPipelineMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataGcsIngestPipelineMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataGcsIngestPipelineMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata_individual_document_status.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata_individual_document_status.ex new file mode 100644 index 0000000000..4f3c0abf5e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata_individual_document_status.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataIndividualDocumentStatus do + @moduledoc """ + The status of processing a document. + + ## Attributes + + * `documentId` (*type:* `String.t`, *default:* `nil`) - Document identifier of an existing document. + * `status` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleRpcStatus.t`, *default:* `nil`) - The status processing the document. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :documentId => String.t() | nil, + :status => GoogleApi.ContentWarehouse.V1.Model.GoogleRpcStatus.t() | nil + } + + field(:documentId) + field(:status, as: GoogleApi.ContentWarehouse.V1.Model.GoogleRpcStatus) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataIndividualDocumentStatus do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataIndividualDocumentStatus.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataIndividualDocumentStatus do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata_process_with_doc_ai_pipeline_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata_process_with_doc_ai_pipeline_metadata.ex new file mode 100644 index 0000000000..dd957664d1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_metadata_process_with_doc_ai_pipeline_metadata.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataProcessWithDocAiPipelineMetadata do + @moduledoc """ + The metadata message for Process-with-DocAi pipeline. + + ## Attributes + + * `documents` (*type:* `list(String.t)`, *default:* `nil`) - The input list of all the resource names of the documents to be processed. + * `processorInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessorInfo.t`, *default:* `nil`) - The DocAI processor to process the documents with. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :documents => list(String.t()) | nil, + :processorInfo => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessorInfo.t() + | nil + } + + field(:documents, type: :list) + + field(:processorInfo, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessorInfo + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataProcessWithDocAiPipelineMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataProcessWithDocAiPipelineMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineMetadataProcessWithDocAiPipelineMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_request.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_request.ex new file mode 100644 index 0000000000..c1a01b5649 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_run_pipeline_request.ex @@ -0,0 +1,88 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineRequest do + @moduledoc """ + Request message for DocumentService.RunPipeline. + + ## Attributes + + * `exportCdwPipeline` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ExportToCdwPipeline.t`, *default:* `nil`) - Export docuemnts from Document Warehouse to CDW for training purpose. + * `gcsIngestPipeline` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GcsIngestPipeline.t`, *default:* `nil`) - Cloud Storage ingestion pipeline. + * `gcsIngestWithDocAiProcessorsPipeline` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline.t`, *default:* `nil`) - Use DocAI processors to process documents in Cloud Storage and ingest them to Document Warehouse. + * `processWithDocAiPipeline` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessWithDocAiPipeline.t`, *default:* `nil`) - Use a DocAI processor to process documents in Document Warehouse, and re-ingest the updated results into Document Warehouse. + * `requestMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t`, *default:* `nil`) - The meta information collected about the end user, used to enforce access control for the service. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :exportCdwPipeline => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ExportToCdwPipeline.t() + | nil, + :gcsIngestPipeline => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GcsIngestPipeline.t() + | nil, + :gcsIngestWithDocAiProcessorsPipeline => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline.t() + | nil, + :processWithDocAiPipeline => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessWithDocAiPipeline.t() + | nil, + :requestMetadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t() + | nil + } + + field(:exportCdwPipeline, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ExportToCdwPipeline + ) + + field(:gcsIngestPipeline, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GcsIngestPipeline + ) + + field(:gcsIngestWithDocAiProcessorsPipeline, + as: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline + ) + + field(:processWithDocAiPipeline, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ProcessWithDocAiPipeline + ) + + field(:requestMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineRequest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RunPipelineRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_search_documents_request.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_search_documents_request.ex new file mode 100644 index 0000000000..4a529bdff3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_search_documents_request.ex @@ -0,0 +1,97 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsRequest do + @moduledoc """ + Request message for DocumentService.SearchDocuments. + + ## Attributes + + * `documentQuery` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentQuery.t`, *default:* `nil`) - Query used to search against documents (keyword, filters, etc.). + * `histogramQueries` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQuery.t)`, *default:* `nil`) - An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format .. Facets will have the format of: `a-zA-Z`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: .. . Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE') + * `offset` (*type:* `integer()`, *default:* `nil`) - An integer that specifies the current offset (that is, starting result location, amongst the documents deemed by the API as relevant) in search results. This field is only considered if page_token is unset. The maximum allowed value is 5000. Otherwise an error is thrown. For example, 0 means to return results starting from the first matching document, and 10 means to return from the 11th document. This can be used for pagination, (for example, pageSize = 10 and offset = 10 means to return from the second page). + * `orderBy` (*type:* `String.t`, *default:* `nil`) - The criteria determining how search results are sorted. For non-empty query, default is `"relevance desc"`. For empty query, default is `"upload_date desc"`. Supported options are: * `"relevance desc"`: By relevance descending, as determined by the API algorithms. * `"upload_date desc"`: By upload date descending. * `"upload_date"`: By upload date ascending. * `"update_date desc"`: By last updated date descending. * `"update_date"`: By last updated date ascending. * `"retrieval_importance desc"`: By retrieval importance of properties descending. This feature is still under development, please do not use unless otherwise instructed to do so. + * `pageSize` (*type:* `integer()`, *default:* `nil`) - A limit on the number of documents returned in the search results. Increasing this value above the default value of 10 can increase search response time. The value can be between 1 and 100. + * `pageToken` (*type:* `String.t`, *default:* `nil`) - The token specifying the current offset within search results. See SearchDocumentsResponse.next_page_token for an explanation of how to obtain the next set of query results. + * `qaSizeLimit` (*type:* `integer()`, *default:* `nil`) - Experimental, do not use. The limit on the number of documents returned for the question-answering feature. To enable the question-answering feature, set [DocumentQuery].is_nl_query to true. + * `requestMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t`, *default:* `nil`) - The meta information collected about the end user, used to enforce access control and improve the search quality of the service. + * `requireTotalSize` (*type:* `boolean()`, *default:* `nil`) - Controls if the search document request requires the return of a total size of matched documents. See SearchDocumentsResponse.total_size. Enabling this flag may adversely impact performance. Hint: If this is used with pagination, set this flag on the initial query but set this to false on subsequent page calls (keep the total count locally). Defaults to false. + * `totalResultSize` (*type:* `String.t`, *default:* `nil`) - Controls if the search document request requires the return of a total size of matched documents. See SearchDocumentsResponse.total_size. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :documentQuery => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentQuery.t() + | nil, + :histogramQueries => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQuery.t() + ) + | nil, + :offset => integer() | nil, + :orderBy => String.t() | nil, + :pageSize => integer() | nil, + :pageToken => String.t() | nil, + :qaSizeLimit => integer() | nil, + :requestMetadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t() + | nil, + :requireTotalSize => boolean() | nil, + :totalResultSize => String.t() | nil + } + + field(:documentQuery, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentQuery + ) + + field(:histogramQueries, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQuery, + type: :list + ) + + field(:offset) + field(:orderBy) + field(:pageSize) + field(:pageToken) + field(:qaSizeLimit) + + field(:requestMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata + ) + + field(:requireTotalSize) + field(:totalResultSize) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsRequest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_search_documents_response.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_search_documents_response.ex new file mode 100644 index 0000000000..19a2c04dbe --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_search_documents_response.ex @@ -0,0 +1,88 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsResponse do + @moduledoc """ + Response message for DocumentService.SearchDocuments. + + ## Attributes + + * `histogramQueryResults` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQueryResult.t)`, *default:* `nil`) - The histogram results that match with the specified SearchDocumentsRequest.histogram_queries. + * `matchingDocuments` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsResponseMatchingDocument.t)`, *default:* `nil`) - The document entities that match the specified SearchDocumentsRequest. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata.t`, *default:* `nil`) - Additional information for the API invocation, such as the request tracking id. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The token that specifies the starting position of the next page of results. This field is empty if there are no more results. + * `questionAnswer` (*type:* `String.t`, *default:* `nil`) - Experimental. Question answer from the query against the document. + * `totalSize` (*type:* `integer()`, *default:* `nil`) - The total number of matched documents which is available only if the client set SearchDocumentsRequest.require_total_size to `true` or set SearchDocumentsRequest.total_result_size to `ESTIMATED_SIZE` or `ACTUAL_SIZE`. Otherwise, the value will be `-1`. Typically a UI would handle this condition by displaying "of many", for example: "Displaying 10 of many". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :histogramQueryResults => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQueryResult.t() + ) + | nil, + :matchingDocuments => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsResponseMatchingDocument.t() + ) + | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata.t() + | nil, + :nextPageToken => String.t() | nil, + :questionAnswer => String.t() | nil, + :totalSize => integer() | nil + } + + field(:histogramQueryResults, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1HistogramQueryResult, + type: :list + ) + + field(:matchingDocuments, + as: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsResponseMatchingDocument, + type: :list + ) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata + ) + + field(:nextPageToken) + field(:questionAnswer) + field(:totalSize) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsResponse do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_search_documents_response_matching_document.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_search_documents_response_matching_document.ex new file mode 100644 index 0000000000..000ccaec10 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_search_documents_response_matching_document.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsResponseMatchingDocument do + @moduledoc """ + Document entry with metadata inside SearchDocumentsResponse + + ## Attributes + + * `document` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document.t`, *default:* `nil`) - Document that matches the specified SearchDocumentsRequest. This document only contains indexed metadata information. + * `matchedTokenPageIndices` (*type:* `list(String.t)`, *default:* `nil`) - Return the 1-based page indices where those pages have one or more matched tokens. + * `qaResult` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResult.t`, *default:* `nil`) - Experimental. Additional result info if the question-answering feature is enabled. + * `searchTextSnippet` (*type:* `String.t`, *default:* `nil`) - Contains snippets of text from the document full raw text that most closely match a search query's keywords, if available. All HTML tags in the original fields are stripped when returned in this field, and matching query keywords are enclosed in HTML bold tags. If the question-answering feature is enabled, this field will instead contain a snippet that answers the user's natural-language query. No HTML bold tags will be present, and highlights in the answer snippet can be found in QAResult.highlights. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :document => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document.t() | nil, + :matchedTokenPageIndices => list(String.t()) | nil, + :qaResult => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResult.t() | nil, + :searchTextSnippet => String.t() | nil + } + + field(:document, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document) + field(:matchedTokenPageIndices, type: :list) + field(:qaResult, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1QAResult) + field(:searchTextSnippet) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsResponseMatchingDocument do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsResponseMatchingDocument.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SearchDocumentsResponseMatchingDocument do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_set_acl_request.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_set_acl_request.ex new file mode 100644 index 0000000000..0a54f55c90 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_set_acl_request.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SetAclRequest do + @moduledoc """ + Request message for DocumentService.SetAcl. + + ## Attributes + + * `policy` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy.t`, *default:* `nil`) - Required. REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. This refers to an Identity and Access (IAM) policy, which specifies access controls for the Document. You can set ACL with condition for projects only. Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the left of the operator is `DocumentSchemaId` or property name and the right of the operator is a number or a quoted string. You must escape backslash (\\\\) and quote (\\") characters. Boolean expressions (AND/OR) are supported up to 3 levels of nesting (for example, "((A AND B AND C) OR D) AND E"), a maximum of 10 comparisons are allowed in the expression. The expression must be < 6000 bytes in length. Sample condition: `"DocumentSchemaId = \\"some schema id\\" OR SchemaId.floatPropertyName >= 10"` + * `projectOwner` (*type:* `boolean()`, *default:* `nil`) - For Set Project ACL only. Authorization check for end user will be ignored when project_owner=true. + * `requestMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t`, *default:* `nil`) - The meta information collected about the end user, used to enforce access control for the service. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :policy => GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy.t() | nil, + :projectOwner => boolean() | nil, + :requestMetadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t() + | nil + } + + field(:policy, as: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy) + field(:projectOwner) + + field(:requestMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SetAclRequest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SetAclRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SetAclRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_set_acl_response.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_set_acl_response.ex new file mode 100644 index 0000000000..d38e5d0e41 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_set_acl_response.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SetAclResponse do + @moduledoc """ + Response message for DocumentService.SetAcl. + + ## Attributes + + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata.t`, *default:* `nil`) - Additional information for the API invocation, such as the request tracking id. + * `policy` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy.t`, *default:* `nil`) - The policy will be attached to a resource (e.g. projecct, document). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata.t() + | nil, + :policy => GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy.t() | nil + } + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata + ) + + field(:policy, as: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SetAclResponse do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SetAclResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SetAclResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_synonym_set.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_synonym_set.ex new file mode 100644 index 0000000000..c7d9dcddff --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_synonym_set.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet do + @moduledoc """ + Represents a list of synonyms for a given context. For example a context "sales" could contain: Synonym 1: sale, invoice, bill, order Synonym 2: money, credit, finance, payment Synonym 3: shipping, freight, transport Each SynonymSets should be disjoint + + ## Attributes + + * `context` (*type:* `String.t`, *default:* `nil`) - This is a freeform field. Example contexts can be "sales," "engineering," "real estate," "accounting," etc. The context can be supplied during search requests. + * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}. + * `synonyms` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSetSynonym.t)`, *default:* `nil`) - List of Synonyms for the context. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :context => String.t() | nil, + :name => String.t() | nil, + :synonyms => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSetSynonym.t() + ) + | nil + } + + field(:context) + field(:name) + + field(:synonyms, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSetSynonym, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_synonym_set_synonym.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_synonym_set_synonym.ex new file mode 100644 index 0000000000..77fe433e07 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_synonym_set_synonym.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSetSynonym do + @moduledoc """ + Represents a list of words given by the customer All these words are synonyms of each other. + + ## Attributes + + * `words` (*type:* `list(String.t)`, *default:* `nil`) - For example: sale, invoice, bill, order + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :words => list(String.t()) | nil + } + + field(:words, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSetSynonym do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSetSynonym.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1SynonymSetSynonym do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_text_array.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_text_array.ex new file mode 100644 index 0000000000..c48abb5613 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_text_array.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TextArray do + @moduledoc """ + String/text values. + + ## Attributes + + * `values` (*type:* `list(String.t)`, *default:* `nil`) - List of text values. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :values => list(String.t()) | nil + } + + field(:values, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TextArray do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TextArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TextArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_text_type_options.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_text_type_options.ex new file mode 100644 index 0000000000..561b71b50d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_text_type_options.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TextTypeOptions do + @moduledoc """ + Configurations for a text property. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TextTypeOptions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TextTypeOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TextTypeOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_time_filter.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_time_filter.ex new file mode 100644 index 0000000000..8c2d1c8ef8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_time_filter.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimeFilter do + @moduledoc """ + Filter on create timestamp or update timestamp of documents. + + ## Attributes + + * `timeField` (*type:* `String.t`, *default:* `nil`) - Specifies which time field to filter documents on. Defaults to TimeField.UPLOAD_TIME. + * `timeRange` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeInterval.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :timeField => String.t() | nil, + :timeRange => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeInterval.t() | nil + } + + field(:timeField) + field(:timeRange, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeInterval) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimeFilter do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimeFilter.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimeFilter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_timestamp_array.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_timestamp_array.ex new file mode 100644 index 0000000000..cdae8ef54c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_timestamp_array.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampArray do + @moduledoc """ + Timestamp values. + + ## Attributes + + * `values` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampValue.t)`, *default:* `nil`) - List of timestamp values. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :values => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampValue.t() + ) + | nil + } + + field(:values, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampValue, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampArray do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_timestamp_type_options.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_timestamp_type_options.ex new file mode 100644 index 0000000000..c63e5fa8a3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_timestamp_type_options.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampTypeOptions do + @moduledoc """ + Configurations for a timestamp property. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampTypeOptions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampTypeOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampTypeOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_timestamp_value.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_timestamp_value.ex new file mode 100644 index 0000000000..13b59986e3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_timestamp_value.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampValue do + @moduledoc """ + Timestamp value type. + + ## Attributes + + * `textValue` (*type:* `String.t`, *default:* `nil`) - The string must represent a valid instant in UTC and is parsed using java.time.format.DateTimeFormatter.ISO_INSTANT. e.g. "2013-09-29T18:46:19Z" + * `timestampValue` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp value + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :textValue => String.t() | nil, + :timestampValue => DateTime.t() | nil + } + + field(:textValue) + field(:timestampValue, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampValue do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampValue.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_document_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_document_metadata.ex new file mode 100644 index 0000000000..cafe2a4b24 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_document_metadata.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentMetadata do + @moduledoc """ + Metadata object for UpdateDocument request (currently empty). + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_document_request.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_document_request.ex new file mode 100644 index 0000000000..c112e5cdc4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_document_request.ex @@ -0,0 +1,76 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentRequest do + @moduledoc """ + Request message for DocumentService.UpdateDocument. + + ## Attributes + + * `cloudAiDocumentOption` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CloudAIDocumentOption.t`, *default:* `nil`) - Request Option for processing Cloud AI Document in Document Warehouse. This field offers limited support for mapping entities from Cloud AI Document to Warehouse Document. Please consult with product team before using this field and other available options. + * `document` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document.t`, *default:* `nil`) - Required. The document to update. + * `requestMetadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t`, *default:* `nil`) - The meta information collected about the end user, used to enforce access control for the service. + * `updateOptions` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateOptions.t`, *default:* `nil`) - Options for the update operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudAiDocumentOption => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CloudAIDocumentOption.t() + | nil, + :document => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document.t() | nil, + :requestMetadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata.t() + | nil, + :updateOptions => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateOptions.t() + | nil + } + + field(:cloudAiDocumentOption, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1CloudAIDocumentOption + ) + + field(:document, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document) + + field(:requestMetadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RequestMetadata + ) + + field(:updateOptions, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateOptions + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentRequest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_document_response.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_document_response.ex new file mode 100644 index 0000000000..2b231c1961 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_document_response.ex @@ -0,0 +1,68 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentResponse do + @moduledoc """ + Response message for DocumentService.UpdateDocument. + + ## Attributes + + * `document` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document.t`, *default:* `nil`) - Updated document after executing update request. + * `metadata` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata.t`, *default:* `nil`) - Additional information for the API invocation, such as the request tracking id. + * `ruleEngineOutput` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEngineOutput.t`, *default:* `nil`) - Output from Rule Engine recording the rule evaluator and action executor's output. Refer format in: google/cloud/contentwarehouse/v1/rule_engine.proto + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :document => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document.t() | nil, + :metadata => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata.t() + | nil, + :ruleEngineOutput => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEngineOutput.t() + | nil + } + + field(:document, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document) + + field(:metadata, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1ResponseMetadata + ) + + field(:ruleEngineOutput, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleEngineOutput + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentResponse do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_document_schema_request.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_document_schema_request.ex new file mode 100644 index 0000000000..5e18dac300 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_document_schema_request.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentSchemaRequest do + @moduledoc """ + Request message for DocumentSchemaService.UpdateDocumentSchema. + + ## Attributes + + * `documentSchema` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema.t`, *default:* `nil`) - Required. The document schema to update with. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :documentSchema => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema.t() + | nil + } + + field(:documentSchema, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1DocumentSchema + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentSchemaRequest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentSchemaRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateDocumentSchemaRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_options.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_options.ex new file mode 100644 index 0000000000..ad94111e6e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_options.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateOptions do + @moduledoc """ + Options for Update operations. + + ## Attributes + + * `mergeFieldsOptions` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MergeFieldsOptions.t`, *default:* `nil`) - Options for merging. + * `updateMask` (*type:* `String.t`, *default:* `nil`) - Field mask for merging Document fields. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + * `updateType` (*type:* `String.t`, *default:* `nil`) - Type for update. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :mergeFieldsOptions => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MergeFieldsOptions.t() + | nil, + :updateMask => String.t() | nil, + :updateType => String.t() | nil + } + + field(:mergeFieldsOptions, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1MergeFieldsOptions + ) + + field(:updateMask) + field(:updateType) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateOptions do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_rule_set_request.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_rule_set_request.ex new file mode 100644 index 0000000000..4d6698990f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_update_rule_set_request.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateRuleSetRequest do + @moduledoc """ + Request message for RuleSetService.UpdateRuleSet. + + ## Attributes + + * `ruleSet` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet.t`, *default:* `nil`) - Required. The rule set to update. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ruleSet => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet.t() | nil + } + + field(:ruleSet, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1RuleSet) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateRuleSetRequest do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateRuleSetRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UpdateRuleSetRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_user_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_user_info.ex new file mode 100644 index 0000000000..aa671244b2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_user_info.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UserInfo do + @moduledoc """ + The user information. + + ## Attributes + + * `groupIds` (*type:* `list(String.t)`, *default:* `nil`) - The unique group identifications which the user is belong to. The format is "group:yyyy@example.com"; + * `id` (*type:* `String.t`, *default:* `nil`) - A unique user identification string, as determined by the client. The maximum number of allowed characters is 255. Allowed characters include numbers 0 to 9, uppercase and lowercase letters, and restricted special symbols (:, @, +, -, _, ~) The format is "user:xxxx@example.com"; + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :groupIds => list(String.t()) | nil, + :id => String.t() | nil + } + + field(:groupIds, type: :list) + field(:id) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UserInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UserInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1UserInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_value.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_value.ex new file mode 100644 index 0000000000..d4edb803e2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_value.ex @@ -0,0 +1,74 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Value do + @moduledoc """ + `Value` represents a dynamically typed value which can be either be a float, a integer, a string, or a datetime value. A producer of value is expected to set one of these variants. Absence of any variant indicates an error. + + ## Attributes + + * `booleanValue` (*type:* `boolean()`, *default:* `nil`) - Represents a boolean value. + * `datetimeValue` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime.t`, *default:* `nil`) - Represents a datetime value. + * `enumValue` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumValue.t`, *default:* `nil`) - Represents an enum value. + * `floatValue` (*type:* `number()`, *default:* `nil`) - Represents a float value. + * `intValue` (*type:* `integer()`, *default:* `nil`) - Represents a integer value. + * `stringValue` (*type:* `String.t`, *default:* `nil`) - Represents a string value. + * `timestampValue` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampValue.t`, *default:* `nil`) - Represents a timestamp value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :booleanValue => boolean() | nil, + :datetimeValue => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime.t() | nil, + :enumValue => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumValue.t() | nil, + :floatValue => number() | nil, + :intValue => integer() | nil, + :stringValue => String.t() | nil, + :timestampValue => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampValue.t() + | nil + } + + field(:booleanValue) + field(:datetimeValue, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime) + + field(:enumValue, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumValue) + + field(:floatValue) + field(:intValue) + field(:stringValue) + + field(:timestampValue, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampValue + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Value do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Value.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Value do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_weighted_schema_property.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_weighted_schema_property.ex new file mode 100644 index 0000000000..cf78e2fd8b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1_weighted_schema_property.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1WeightedSchemaProperty do + @moduledoc """ + Specifies the schema property name. + + ## Attributes + + * `documentSchemaName` (*type:* `String.t`, *default:* `nil`) - The document schema name. + * `propertyNames` (*type:* `list(String.t)`, *default:* `nil`) - The property definition names in the schema. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :documentSchemaName => String.t() | nil, + :propertyNames => list(String.t()) | nil + } + + field(:documentSchemaName) + field(:propertyNames, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1WeightedSchemaProperty do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1WeightedSchemaProperty.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1WeightedSchemaProperty do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1beta1_create_document_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1beta1_create_document_metadata.ex new file mode 100644 index 0000000000..e110436729 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1beta1_create_document_metadata.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1beta1CreateDocumentMetadata do + @moduledoc """ + Metadata object for CreateDocument request (currently empty). + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1beta1CreateDocumentMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1beta1CreateDocumentMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1beta1CreateDocumentMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1beta1_initialize_project_response.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1beta1_initialize_project_response.ex new file mode 100644 index 0000000000..8ed343960a --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1beta1_initialize_project_response.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1beta1InitializeProjectResponse do + @moduledoc """ + Response message for projectService.InitializeProject + + ## Attributes + + * `message` (*type:* `String.t`, *default:* `nil`) - The message of the project initialization process. + * `state` (*type:* `String.t`, *default:* `nil`) - The state of the project initialization process. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :message => String.t() | nil, + :state => String.t() | nil + } + + field(:message) + field(:state) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1beta1InitializeProjectResponse do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1beta1InitializeProjectResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1beta1InitializeProjectResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1beta1_update_document_metadata.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1beta1_update_document_metadata.ex new file mode 100644 index 0000000000..a263b73a63 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_contentwarehouse_v1beta1_update_document_metadata.ex @@ -0,0 +1,48 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1beta1UpdateDocumentMetadata do + @moduledoc """ + Metadata object for UpdateDocument request (currently empty). + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1beta1UpdateDocumentMetadata do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1beta1UpdateDocumentMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1beta1UpdateDocumentMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_barcode.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_barcode.ex new file mode 100644 index 0000000000..07e1a0ec2f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_barcode.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Barcode do + @moduledoc """ + Encodes the detailed information of a barcode. + + ## Attributes + + * `format` (*type:* `String.t`, *default:* `nil`) - Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. - `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type. - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13 type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - `AZTEC`: 2D Aztec code type. - `DATABAR`: GS1 DataBar code type. + * `rawValue` (*type:* `String.t`, *default:* `nil`) - Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`. + * `valueFormat` (*type:* `String.t`, *default:* `nil`) - Value format describes the format of the value that a barcode encodes. The supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number. - `PRODUCT`: Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `WIFI`: Wifi information. - `GEO`: Geo-localization. - `CALENDAR_EVENT`: Calendar event. - `DRIVER_LICENSE`: Driver's license. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :format => String.t() | nil, + :rawValue => String.t() | nil, + :valueFormat => String.t() | nil + } + + field(:format) + field(:rawValue) + field(:valueFormat) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Barcode do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Barcode.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Barcode do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_bounding_poly.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_bounding_poly.ex new file mode 100644 index 0000000000..71549b80ee --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_bounding_poly.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1BoundingPoly do + @moduledoc """ + A bounding polygon for the detected image annotation. + + ## Attributes + + * `normalizedVertices` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1NormalizedVertex.t)`, *default:* `nil`) - The bounding polygon normalized vertices. + * `vertices` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Vertex.t)`, *default:* `nil`) - The bounding polygon vertices. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :normalizedVertices => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1NormalizedVertex.t()) + | nil, + :vertices => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Vertex.t()) | nil + } + + field(:normalizedVertices, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1NormalizedVertex, + type: :list + ) + + field(:vertices, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Vertex, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1BoundingPoly do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1BoundingPoly.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1BoundingPoly do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document.ex new file mode 100644 index 0000000000..547ceb2bbb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document.ex @@ -0,0 +1,126 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Document do + @moduledoc """ + Document represents the canonical document resource in Document AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document AI to iterate and optimize for quality. + + ## Attributes + + * `content` (*type:* `String.t`, *default:* `nil`) - Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64. + * `entities` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntity.t)`, *default:* `nil`) - A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries. + * `entityRelations` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntityRelation.t)`, *default:* `nil`) - Placeholder. Relationship among Document.entities. + * `error` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleRpcStatus.t`, *default:* `nil`) - Any error that occurred while processing this document. + * `mimeType` (*type:* `String.t`, *default:* `nil`) - An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml). + * `pages` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPage.t)`, *default:* `nil`) - Visual page layout for the Document. + * `revisions` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentRevision.t)`, *default:* `nil`) - Placeholder. Revision history of this document. + * `shardInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentShardInfo.t`, *default:* `nil`) - Information about the sharding if this document is sharded part of a larger document. If the document is not sharded, this message is not specified. + * `text` (*type:* `String.t`, *default:* `nil`) - Optional. UTF-8 encoded text in reading order from the document. + * `textChanges` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextChange.t)`, *default:* `nil`) - Placeholder. A list of text corrections made to Document.text. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap with each other. + * `textStyles` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentStyle.t)`, *default:* `nil`) - Styles for the Document.text. + * `uri` (*type:* `String.t`, *default:* `nil`) - Optional. Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. For more information, refer to [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :content => String.t() | nil, + :entities => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntity.t()) + | nil, + :entityRelations => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntityRelation.t() + ) + | nil, + :error => GoogleApi.ContentWarehouse.V1.Model.GoogleRpcStatus.t() | nil, + :mimeType => String.t() | nil, + :pages => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPage.t()) + | nil, + :revisions => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentRevision.t()) + | nil, + :shardInfo => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentShardInfo.t() | nil, + :text => String.t() | nil, + :textChanges => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextChange.t() + ) + | nil, + :textStyles => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentStyle.t()) + | nil, + :uri => String.t() | nil + } + + field(:content) + + field(:entities, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntity, + type: :list + ) + + field(:entityRelations, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntityRelation, + type: :list + ) + + field(:error, as: GoogleApi.ContentWarehouse.V1.Model.GoogleRpcStatus) + field(:mimeType) + + field(:pages, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPage, + type: :list + ) + + field(:revisions, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentRevision, + type: :list + ) + + field(:shardInfo, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentShardInfo + ) + + field(:text) + + field(:textChanges, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextChange, + type: :list + ) + + field(:textStyles, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentStyle, + type: :list + ) + + field(:uri) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Document do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Document.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Document do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_entity.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_entity.ex new file mode 100644 index 0000000000..d79a993c2d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_entity.ex @@ -0,0 +1,109 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntity do + @moduledoc """ + An entity that could be a phrase in the text or a property that belongs to the document. It is a known entity type, such as a person, an organization, or location. + + ## Attributes + + * `confidence` (*type:* `number()`, *default:* `nil`) - Optional. Confidence of detected Schema entity. Range `[0, 1]`. + * `id` (*type:* `String.t`, *default:* `nil`) - Optional. Canonical id. This will be a unique value in the entity list for this document. + * `mentionId` (*type:* `String.t`, *default:* `nil`) - Optional. Deprecated. Use `id` field instead. + * `mentionText` (*type:* `String.t`, *default:* `nil`) - Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`. + * `normalizedValue` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntityNormalizedValue.t`, *default:* `nil`) - Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (e.g. address) is not supported for certain parsers. This field is also only populated for certain supported document types. + * `pageAnchor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageAnchor.t`, *default:* `nil`) - Optional. Represents the provenance of this entity wrt. the location on the page where it was found. + * `properties` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntity.t)`, *default:* `nil`) - Optional. Entities can be nested to form a hierarchical data structure representing the content in the document. + * `provenance` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t`, *default:* `nil`) - Optional. The history of this annotation. + * `redacted` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether the entity will be redacted for de-identification purposes. + * `textAnchor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchor.t`, *default:* `nil`) - Optional. Provenance of the entity. Text anchor indexing into the Document.text. + * `type` (*type:* `String.t`, *default:* `nil`) - Required. Entity type from a schema e.g. `Address`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidence => number() | nil, + :id => String.t() | nil, + :mentionId => String.t() | nil, + :mentionText => String.t() | nil, + :normalizedValue => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntityNormalizedValue.t() + | nil, + :pageAnchor => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageAnchor.t() + | nil, + :properties => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntity.t()) + | nil, + :provenance => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t() + | nil, + :redacted => boolean() | nil, + :textAnchor => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchor.t() + | nil, + :type => String.t() | nil + } + + field(:confidence) + field(:id) + field(:mentionId) + field(:mentionText) + + field(:normalizedValue, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntityNormalizedValue + ) + + field(:pageAnchor, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageAnchor + ) + + field(:properties, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntity, + type: :list + ) + + field(:provenance, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance + ) + + field(:redacted) + + field(:textAnchor, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchor + ) + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntity do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntity.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_entity_normalized_value.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_entity_normalized_value.ex new file mode 100644 index 0000000000..34030ada65 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_entity_normalized_value.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntityNormalizedValue do + @moduledoc """ + Parsed and normalized entity value. + + ## Attributes + + * `addressValue` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypePostalAddress.t`, *default:* `nil`) - Postal address. See also: https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto + * `booleanValue` (*type:* `boolean()`, *default:* `nil`) - Boolean value. Can be used for entities with binary values, or for checkboxes. + * `dateValue` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.t`, *default:* `nil`) - Date value. Includes year, month, day. See also: https://github.com/googleapis/googleapis/blob/master/google/type/date.proto + * `datetimeValue` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime.t`, *default:* `nil`) - DateTime value. Includes date, time, and timezone. See also: https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto + * `floatValue` (*type:* `number()`, *default:* `nil`) - Float value. + * `integerValue` (*type:* `integer()`, *default:* `nil`) - Integer value. + * `moneyValue` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeMoney.t`, *default:* `nil`) - Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto + * `text` (*type:* `String.t`, *default:* `nil`) - Optional. An optional field to store a normalized string. For some entity types, one of respective `structured_value` fields may also be populated. Also not all the types of `structured_value` will be normalized. For example, some processors may not generate `float` or `integer` normalized text by default. Below are sample formats mapped to structured values. - Money/Currency type (`money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in the ISO 8601 text format. - Datetime type (`datetime_value`) is in the ISO 8601 text format. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :addressValue => GoogleApi.ContentWarehouse.V1.Model.GoogleTypePostalAddress.t() | nil, + :booleanValue => boolean() | nil, + :dateValue => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.t() | nil, + :datetimeValue => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime.t() | nil, + :floatValue => number() | nil, + :integerValue => integer() | nil, + :moneyValue => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeMoney.t() | nil, + :text => String.t() | nil + } + + field(:addressValue, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypePostalAddress) + field(:booleanValue) + field(:dateValue, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate) + field(:datetimeValue, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime) + field(:floatValue) + field(:integerValue) + field(:moneyValue, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeMoney) + field(:text) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntityNormalizedValue do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntityNormalizedValue.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntityNormalizedValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_entity_relation.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_entity_relation.ex new file mode 100644 index 0000000000..5663fb14db --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_entity_relation.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntityRelation do + @moduledoc """ + Relationship between Entities. + + ## Attributes + + * `objectId` (*type:* `String.t`, *default:* `nil`) - Object entity id. + * `relation` (*type:* `String.t`, *default:* `nil`) - Relationship description. + * `subjectId` (*type:* `String.t`, *default:* `nil`) - Subject entity id. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :objectId => String.t() | nil, + :relation => String.t() | nil, + :subjectId => String.t() | nil + } + + field(:objectId) + field(:relation) + field(:subjectId) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntityRelation do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntityRelation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentEntityRelation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page.ex new file mode 100644 index 0000000000..7435536caf --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page.ex @@ -0,0 +1,196 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPage do + @moduledoc """ + A page in a Document. + + ## Attributes + + * `blocks` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageBlock.t)`, *default:* `nil`) - A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation. + * `detectedBarcodes` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedBarcode.t)`, *default:* `nil`) - A list of detected barcodes. + * `detectedLanguages` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t)`, *default:* `nil`) - A list of detected languages together with confidence. + * `dimension` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDimension.t`, *default:* `nil`) - Physical dimension of the page. + * `formFields` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageFormField.t)`, *default:* `nil`) - A list of visually detected form fields on the page. + * `image` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImage.t`, *default:* `nil`) - Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned. + * `imageQualityScores` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImageQualityScores.t`, *default:* `nil`) - Image quality scores. + * `layout` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t`, *default:* `nil`) - Layout for the page. + * `lines` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLine.t)`, *default:* `nil`) - A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line. + * `pageNumber` (*type:* `integer()`, *default:* `nil`) - 1-based index for current Page in a parent Document. Useful when a page is taken out of a Document for individual processing. + * `paragraphs` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageParagraph.t)`, *default:* `nil`) - A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive as a paragraph. + * `provenance` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t`, *default:* `nil`) - The history of this page. + * `symbols` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageSymbol.t)`, *default:* `nil`) - A list of visually detected symbols on the page. + * `tables` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTable.t)`, *default:* `nil`) - A list of visually detected tables on the page. + * `tokens` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageToken.t)`, *default:* `nil`) - A list of visually detected tokens on the page. + * `transforms` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageMatrix.t)`, *default:* `nil`) - Transformation matrices that were applied to the original document image to produce Page.image. + * `visualElements` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageVisualElement.t)`, *default:* `nil`) - A list of detected non-text visual elements e.g. checkbox, signature etc. on the page. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :blocks => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageBlock.t()) + | nil, + :detectedBarcodes => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedBarcode.t() + ) + | nil, + :detectedLanguages => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t() + ) + | nil, + :dimension => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDimension.t() + | nil, + :formFields => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageFormField.t() + ) + | nil, + :image => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImage.t() | nil, + :imageQualityScores => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImageQualityScores.t() + | nil, + :layout => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t() + | nil, + :lines => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLine.t()) + | nil, + :pageNumber => integer() | nil, + :paragraphs => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageParagraph.t() + ) + | nil, + :provenance => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t() + | nil, + :symbols => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageSymbol.t() + ) + | nil, + :tables => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTable.t()) + | nil, + :tokens => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageToken.t()) + | nil, + :transforms => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageMatrix.t() + ) + | nil, + :visualElements => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageVisualElement.t() + ) + | nil + } + + field(:blocks, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageBlock, + type: :list + ) + + field(:detectedBarcodes, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedBarcode, + type: :list + ) + + field(:detectedLanguages, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, + type: :list + ) + + field(:dimension, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDimension + ) + + field(:formFields, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageFormField, + type: :list + ) + + field(:image, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImage) + + field(:imageQualityScores, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImageQualityScores + ) + + field(:layout, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout) + + field(:lines, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLine, + type: :list + ) + + field(:pageNumber) + + field(:paragraphs, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageParagraph, + type: :list + ) + + field(:provenance, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance + ) + + field(:symbols, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageSymbol, + type: :list + ) + + field(:tables, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTable, + type: :list + ) + + field(:tokens, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageToken, + type: :list + ) + + field(:transforms, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageMatrix, + type: :list + ) + + field(:visualElements, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageVisualElement, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPage do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPage.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_anchor.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_anchor.ex new file mode 100644 index 0000000000..bc239c84ec --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_anchor.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageAnchor do + @moduledoc """ + Referencing the visual context of the entity in the Document.pages. Page anchors can be cross-page, consist of multiple bounding polygons and optionally reference specific layout element types. + + ## Attributes + + * `pageRefs` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageAnchorPageRef.t)`, *default:* `nil`) - One or more references to visual page elements + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :pageRefs => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageAnchorPageRef.t() + ) + | nil + } + + field(:pageRefs, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageAnchorPageRef, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageAnchor do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageAnchor.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageAnchor do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_anchor_page_ref.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_anchor_page_ref.ex new file mode 100644 index 0000000000..7ec4b5610f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_anchor_page_ref.ex @@ -0,0 +1,65 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageAnchorPageRef do + @moduledoc """ + Represents a weak reference to a page element within a document. + + ## Attributes + + * `boundingPoly` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1BoundingPoly.t`, *default:* `nil`) - Optional. Identifies the bounding polygon of a layout element on the page. + * `confidence` (*type:* `number()`, *default:* `nil`) - Optional. Confidence of detected page element, if applicable. Range `[0, 1]`. + * `layoutId` (*type:* `String.t`, *default:* `nil`) - Optional. Deprecated. Use PageRef.bounding_poly instead. + * `layoutType` (*type:* `String.t`, *default:* `nil`) - Optional. The type of the layout element that is being referenced if any. + * `page` (*type:* `String.t`, *default:* `nil`) - Required. Index into the Document.pages element, for example using `Document.pages` to locate the related page element. This field is skipped when its value is the default `0`. See https://developers.google.com/protocol-buffers/docs/proto3#json. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :boundingPoly => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1BoundingPoly.t() | nil, + :confidence => number() | nil, + :layoutId => String.t() | nil, + :layoutType => String.t() | nil, + :page => String.t() | nil + } + + field(:boundingPoly, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1BoundingPoly) + + field(:confidence) + field(:layoutId) + field(:layoutType) + field(:page) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageAnchorPageRef do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageAnchorPageRef.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageAnchorPageRef do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_block.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_block.ex new file mode 100644 index 0000000000..770ff46901 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_block.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageBlock do + @moduledoc """ + A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation. + + ## Attributes + + * `detectedLanguages` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t)`, *default:* `nil`) - A list of detected languages together with confidence. + * `layout` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t`, *default:* `nil`) - Layout for Block. + * `provenance` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t`, *default:* `nil`) - The history of this annotation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :detectedLanguages => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t() + ) + | nil, + :layout => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t() + | nil, + :provenance => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t() + | nil + } + + field(:detectedLanguages, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, + type: :list + ) + + field(:layout, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout) + + field(:provenance, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageBlock do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageBlock.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageBlock do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_detected_barcode.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_detected_barcode.ex new file mode 100644 index 0000000000..2af768cee9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_detected_barcode.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedBarcode do + @moduledoc """ + A detected barcode. + + ## Attributes + + * `barcode` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Barcode.t`, *default:* `nil`) - Detailed barcode information of the DetectedBarcode. + * `layout` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t`, *default:* `nil`) - Layout for DetectedBarcode. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :barcode => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Barcode.t() | nil, + :layout => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t() + | nil + } + + field(:barcode, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Barcode) + + field(:layout, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedBarcode do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedBarcode.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedBarcode do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_detected_language.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_detected_language.ex new file mode 100644 index 0000000000..ccc1fef9e6 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_detected_language.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage do + @moduledoc """ + Detected language for a structural component. + + ## Attributes + + * `confidence` (*type:* `number()`, *default:* `nil`) - Confidence of detected language. Range `[0, 1]`. + * `languageCode` (*type:* `String.t`, *default:* `nil`) - The [BCP-47 language code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), such as `en-US` or `sr-Latn`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidence => number() | nil, + :languageCode => String.t() | nil + } + + field(:confidence) + field(:languageCode) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_dimension.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_dimension.ex new file mode 100644 index 0000000000..55102777c4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_dimension.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDimension do + @moduledoc """ + Dimension for the page. + + ## Attributes + + * `height` (*type:* `number()`, *default:* `nil`) - Page height. + * `unit` (*type:* `String.t`, *default:* `nil`) - Dimension unit. + * `width` (*type:* `number()`, *default:* `nil`) - Page width. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :height => number() | nil, + :unit => String.t() | nil, + :width => number() | nil + } + + field(:height) + field(:unit) + field(:width) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDimension do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDimension.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDimension do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_form_field.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_form_field.ex new file mode 100644 index 0000000000..e5cf08cec9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_form_field.ex @@ -0,0 +1,104 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageFormField do + @moduledoc """ + A form field detected on the page. + + ## Attributes + + * `correctedKeyText` (*type:* `String.t`, *default:* `nil`) - Created for Labeling UI to export key text. If corrections were made to the text identified by the `field_name.text_anchor`, this field will contain the correction. + * `correctedValueText` (*type:* `String.t`, *default:* `nil`) - Created for Labeling UI to export value text. If corrections were made to the text identified by the `field_value.text_anchor`, this field will contain the correction. + * `fieldName` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t`, *default:* `nil`) - Layout for the FormField name. e.g. `Address`, `Email`, `Grand total`, `Phone number`, etc. + * `fieldValue` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t`, *default:* `nil`) - Layout for the FormField value. + * `nameDetectedLanguages` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t)`, *default:* `nil`) - A list of detected languages for name together with confidence. + * `provenance` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t`, *default:* `nil`) - The history of this annotation. + * `valueDetectedLanguages` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t)`, *default:* `nil`) - A list of detected languages for value together with confidence. + * `valueType` (*type:* `String.t`, *default:* `nil`) - If the value is non-textual, this field represents the type. Current valid values are: - blank (this indicates the `field_value` is normal text) - `unfilled_checkbox` - `filled_checkbox` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :correctedKeyText => String.t() | nil, + :correctedValueText => String.t() | nil, + :fieldName => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t() + | nil, + :fieldValue => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t() + | nil, + :nameDetectedLanguages => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t() + ) + | nil, + :provenance => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t() + | nil, + :valueDetectedLanguages => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t() + ) + | nil, + :valueType => String.t() | nil + } + + field(:correctedKeyText) + field(:correctedValueText) + + field(:fieldName, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout + ) + + field(:fieldValue, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout + ) + + field(:nameDetectedLanguages, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, + type: :list + ) + + field(:provenance, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance + ) + + field(:valueDetectedLanguages, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, + type: :list + ) + + field(:valueType) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageFormField do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageFormField.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageFormField do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_image.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_image.ex new file mode 100644 index 0000000000..9e207ffe59 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_image.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImage do + @moduledoc """ + Rendered image contents for this page. + + ## Attributes + + * `content` (*type:* `String.t`, *default:* `nil`) - Raw byte content of the image. + * `height` (*type:* `integer()`, *default:* `nil`) - Height of the image in pixels. + * `mimeType` (*type:* `String.t`, *default:* `nil`) - Encoding [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) for the image. + * `width` (*type:* `integer()`, *default:* `nil`) - Width of the image in pixels. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :content => String.t() | nil, + :height => integer() | nil, + :mimeType => String.t() | nil, + :width => integer() | nil + } + + field(:content) + field(:height) + field(:mimeType) + field(:width) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImage do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImage.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_image_quality_scores.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_image_quality_scores.ex new file mode 100644 index 0000000000..3c2e046495 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_image_quality_scores.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImageQualityScores do + @moduledoc """ + Image quality scores for the page image. + + ## Attributes + + * `detectedDefects` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect.t)`, *default:* `nil`) - A list of detected defects. + * `qualityScore` (*type:* `number()`, *default:* `nil`) - The overall quality score. Range `[0, 1]` where `1` is perfect quality. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :detectedDefects => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect.t() + ) + | nil, + :qualityScore => number() | nil + } + + field(:detectedDefects, + as: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect, + type: :list + ) + + field(:qualityScore) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImageQualityScores do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImageQualityScores.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImageQualityScores do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_image_quality_scores_detected_defect.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_image_quality_scores_detected_defect.ex new file mode 100644 index 0000000000..afb16b6e83 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_image_quality_scores_detected_defect.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect do + @moduledoc """ + Image Quality Defects + + ## Attributes + + * `confidence` (*type:* `number()`, *default:* `nil`) - Confidence of detected defect. Range `[0, 1]` where `1` indicates strong confidence that the defect exists. + * `type` (*type:* `String.t`, *default:* `nil`) - Name of the defect type. Supported values are: - `quality/defect_blurry` - `quality/defect_noisy` - `quality/defect_dark` - `quality/defect_faint` - `quality/defect_text_too_small` - `quality/defect_document_cutoff` - `quality/defect_text_cutoff` - `quality/defect_glare` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidence => number() | nil, + :type => String.t() | nil + } + + field(:confidence) + field(:type) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_layout.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_layout.ex new file mode 100644 index 0000000000..15a12c7d90 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_layout.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout do + @moduledoc """ + Visual element describing a layout unit on a page. + + ## Attributes + + * `boundingPoly` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1BoundingPoly.t`, *default:* `nil`) - The bounding polygon for the Layout. + * `confidence` (*type:* `number()`, *default:* `nil`) - Confidence of the current Layout within context of the object this layout is for. e.g. confidence can be for a single token, a table, a visual element, etc. depending on context. Range `[0, 1]`. + * `orientation` (*type:* `String.t`, *default:* `nil`) - Detected orientation for the Layout. + * `textAnchor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchor.t`, *default:* `nil`) - Text anchor indexing into the Document.text. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :boundingPoly => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1BoundingPoly.t() | nil, + :confidence => number() | nil, + :orientation => String.t() | nil, + :textAnchor => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchor.t() + | nil + } + + field(:boundingPoly, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1BoundingPoly) + + field(:confidence) + field(:orientation) + + field(:textAnchor, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchor + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_line.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_line.ex new file mode 100644 index 0000000000..c6daa9e899 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_line.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLine do + @moduledoc """ + A collection of tokens that a human would perceive as a line. Does not cross column boundaries, can be horizontal, vertical, etc. + + ## Attributes + + * `detectedLanguages` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t)`, *default:* `nil`) - A list of detected languages together with confidence. + * `layout` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t`, *default:* `nil`) - Layout for Line. + * `provenance` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t`, *default:* `nil`) - The history of this annotation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :detectedLanguages => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t() + ) + | nil, + :layout => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t() + | nil, + :provenance => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t() + | nil + } + + field(:detectedLanguages, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, + type: :list + ) + + field(:layout, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout) + + field(:provenance, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLine do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLine.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLine do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_matrix.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_matrix.ex new file mode 100644 index 0000000000..b041f64952 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_matrix.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageMatrix do + @moduledoc """ + Representation for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation. + + ## Attributes + + * `cols` (*type:* `integer()`, *default:* `nil`) - Number of columns in the matrix. + * `data` (*type:* `String.t`, *default:* `nil`) - The matrix data. + * `rows` (*type:* `integer()`, *default:* `nil`) - Number of rows in the matrix. + * `type` (*type:* `integer()`, *default:* `nil`) - This encodes information about what data type the matrix uses. For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data types, please refer to https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cols => integer() | nil, + :data => String.t() | nil, + :rows => integer() | nil, + :type => integer() | nil + } + + field(:cols) + field(:data) + field(:rows) + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageMatrix do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageMatrix.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageMatrix do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_paragraph.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_paragraph.ex new file mode 100644 index 0000000000..2dd869a2c4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_paragraph.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageParagraph do + @moduledoc """ + A collection of lines that a human would perceive as a paragraph. + + ## Attributes + + * `detectedLanguages` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t)`, *default:* `nil`) - A list of detected languages together with confidence. + * `layout` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t`, *default:* `nil`) - Layout for Paragraph. + * `provenance` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t`, *default:* `nil`) - The history of this annotation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :detectedLanguages => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t() + ) + | nil, + :layout => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t() + | nil, + :provenance => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t() + | nil + } + + field(:detectedLanguages, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, + type: :list + ) + + field(:layout, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout) + + field(:provenance, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageParagraph do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageParagraph.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageParagraph do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_symbol.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_symbol.ex new file mode 100644 index 0000000000..b35603b59d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_symbol.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageSymbol do + @moduledoc """ + A detected symbol. + + ## Attributes + + * `detectedLanguages` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t)`, *default:* `nil`) - A list of detected languages together with confidence. + * `layout` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t`, *default:* `nil`) - Layout for Symbol. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :detectedLanguages => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t() + ) + | nil, + :layout => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t() + | nil + } + + field(:detectedLanguages, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, + type: :list + ) + + field(:layout, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageSymbol do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageSymbol.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageSymbol do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_table.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_table.ex new file mode 100644 index 0000000000..0eef85ec36 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_table.ex @@ -0,0 +1,94 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTable do + @moduledoc """ + A table representation similar to HTML table structure. + + ## Attributes + + * `bodyRows` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableRow.t)`, *default:* `nil`) - Body rows of the table. + * `detectedLanguages` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t)`, *default:* `nil`) - A list of detected languages together with confidence. + * `headerRows` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableRow.t)`, *default:* `nil`) - Header rows of the table. + * `layout` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t`, *default:* `nil`) - Layout for Table. + * `provenance` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t`, *default:* `nil`) - The history of this table. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bodyRows => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableRow.t() + ) + | nil, + :detectedLanguages => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t() + ) + | nil, + :headerRows => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableRow.t() + ) + | nil, + :layout => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t() + | nil, + :provenance => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t() + | nil + } + + field(:bodyRows, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableRow, + type: :list + ) + + field(:detectedLanguages, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, + type: :list + ) + + field(:headerRows, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableRow, + type: :list + ) + + field(:layout, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout) + + field(:provenance, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTable do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTable.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTable do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_table_table_cell.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_table_table_cell.ex new file mode 100644 index 0000000000..6c3da9c8ba --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_table_table_cell.ex @@ -0,0 +1,72 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableCell do + @moduledoc """ + A cell representation inside the table. + + ## Attributes + + * `colSpan` (*type:* `integer()`, *default:* `nil`) - How many columns this cell spans. + * `detectedLanguages` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t)`, *default:* `nil`) - A list of detected languages together with confidence. + * `layout` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t`, *default:* `nil`) - Layout for TableCell. + * `rowSpan` (*type:* `integer()`, *default:* `nil`) - How many rows this cell spans. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :colSpan => integer() | nil, + :detectedLanguages => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t() + ) + | nil, + :layout => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t() + | nil, + :rowSpan => integer() | nil + } + + field(:colSpan) + + field(:detectedLanguages, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, + type: :list + ) + + field(:layout, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout) + + field(:rowSpan) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableCell do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableCell.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableCell do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_table_table_row.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_table_table_row.ex new file mode 100644 index 0000000000..f5d6f6dfdb --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_table_table_row.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableRow do + @moduledoc """ + A row of table cells. + + ## Attributes + + * `cells` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableCell.t)`, *default:* `nil`) - Cells that make up this row. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cells => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableCell.t() + ) + | nil + } + + field(:cells, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableCell, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableRow do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableRow.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTableTableRow do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_token.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_token.ex new file mode 100644 index 0000000000..e0211140b5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_token.ex @@ -0,0 +1,88 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageToken do + @moduledoc """ + A detected token. + + ## Attributes + + * `detectedBreak` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak.t`, *default:* `nil`) - Detected break at the end of a Token. + * `detectedLanguages` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t)`, *default:* `nil`) - A list of detected languages together with confidence. + * `layout` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t`, *default:* `nil`) - Layout for Token. + * `provenance` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t`, *default:* `nil`) - The history of this annotation. + * `styleInfo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo.t`, *default:* `nil`) - Text style attributes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :detectedBreak => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak.t() + | nil, + :detectedLanguages => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t() + ) + | nil, + :layout => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t() + | nil, + :provenance => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t() + | nil, + :styleInfo => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo.t() + | nil + } + + field(:detectedBreak, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak + ) + + field(:detectedLanguages, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, + type: :list + ) + + field(:layout, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout) + + field(:provenance, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance + ) + + field(:styleInfo, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageToken do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageToken.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageToken do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_token_detected_break.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_token_detected_break.ex new file mode 100644 index 0000000000..36ca3e164b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_token_detected_break.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak do + @moduledoc """ + Detected break at the end of a Token. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - Detected break type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_token_style_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_token_style_info.ex new file mode 100644 index 0000000000..737d3752d2 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_token_style_info.ex @@ -0,0 +1,93 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo do + @moduledoc """ + Font and other text style attributes. + + ## Attributes + + * `backgroundColor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeColor.t`, *default:* `nil`) - Color of the background. + * `bold` (*type:* `boolean()`, *default:* `nil`) - Whether the text is bold (equivalent to font_weight is at least `700`). + * `fontSize` (*type:* `integer()`, *default:* `nil`) - Font size in points (`1` point is `¹⁄₇₂` inches). + * `fontType` (*type:* `String.t`, *default:* `nil`) - Name or style of the font. + * `fontWeight` (*type:* `integer()`, *default:* `nil`) - TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). Normal is `400`, bold is `700`. + * `handwritten` (*type:* `boolean()`, *default:* `nil`) - Whether the text is handwritten. + * `italic` (*type:* `boolean()`, *default:* `nil`) - Whether the text is italic. + * `letterSpacing` (*type:* `float()`, *default:* `nil`) - Letter spacing in points. + * `pixelFontSize` (*type:* `float()`, *default:* `nil`) - Font size in pixels, equal to _unrounded font_size_ * _resolution_ ÷ `72.0`. + * `smallcaps` (*type:* `boolean()`, *default:* `nil`) - Whether the text is in small caps. + * `strikeout` (*type:* `boolean()`, *default:* `nil`) - Whether the text is strikethrough. + * `subscript` (*type:* `boolean()`, *default:* `nil`) - Whether the text is a subscript. + * `superscript` (*type:* `boolean()`, *default:* `nil`) - Whether the text is a superscript. + * `textColor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeColor.t`, *default:* `nil`) - Color of the text. + * `underlined` (*type:* `boolean()`, *default:* `nil`) - Whether the text is underlined. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :backgroundColor => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeColor.t() | nil, + :bold => boolean() | nil, + :fontSize => integer() | nil, + :fontType => String.t() | nil, + :fontWeight => integer() | nil, + :handwritten => boolean() | nil, + :italic => boolean() | nil, + :letterSpacing => float() | nil, + :pixelFontSize => float() | nil, + :smallcaps => boolean() | nil, + :strikeout => boolean() | nil, + :subscript => boolean() | nil, + :superscript => boolean() | nil, + :textColor => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeColor.t() | nil, + :underlined => boolean() | nil + } + + field(:backgroundColor, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeColor) + field(:bold) + field(:fontSize) + field(:fontType) + field(:fontWeight) + field(:handwritten) + field(:italic) + field(:letterSpacing) + field(:pixelFontSize) + field(:smallcaps) + field(:strikeout) + field(:subscript) + field(:superscript) + field(:textColor, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeColor) + field(:underlined) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_visual_element.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_visual_element.ex new file mode 100644 index 0000000000..2daf140be3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_page_visual_element.ex @@ -0,0 +1,68 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageVisualElement do + @moduledoc """ + Detected non-text visual elements e.g. checkbox, signature etc. on the page. + + ## Attributes + + * `detectedLanguages` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t)`, *default:* `nil`) - A list of detected languages together with confidence. + * `layout` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t`, *default:* `nil`) - Layout for VisualElement. + * `type` (*type:* `String.t`, *default:* `nil`) - Type of the VisualElement. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :detectedLanguages => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage.t() + ) + | nil, + :layout => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout.t() + | nil, + :type => String.t() | nil + } + + field(:detectedLanguages, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, + type: :list + ) + + field(:layout, as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageLayout) + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageVisualElement do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageVisualElement.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentPageVisualElement do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_provenance.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_provenance.ex new file mode 100644 index 0000000000..2590c560f4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_provenance.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance do + @moduledoc """ + Structure to identify provenance relationships between annotations in different revisions. + + ## Attributes + + * `id` (*type:* `integer()`, *default:* `nil`) - The Id of this operation. Needs to be unique within the scope of the revision. + * `parents` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenanceParent.t)`, *default:* `nil`) - References to the original elements that are replaced. + * `revision` (*type:* `integer()`, *default:* `nil`) - The index of the revision that produced this element. + * `type` (*type:* `String.t`, *default:* `nil`) - The type of provenance operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => integer() | nil, + :parents => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenanceParent.t() + ) + | nil, + :revision => integer() | nil, + :type => String.t() | nil + } + + field(:id) + + field(:parents, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenanceParent, + type: :list + ) + + field(:revision) + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_provenance_parent.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_provenance_parent.ex new file mode 100644 index 0000000000..1db17e87a1 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_provenance_parent.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenanceParent do + @moduledoc """ + The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations. + + ## Attributes + + * `id` (*type:* `integer()`, *default:* `nil`) - The id of the parent provenance. + * `index` (*type:* `integer()`, *default:* `nil`) - The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision. + * `revision` (*type:* `integer()`, *default:* `nil`) - The index of the index into current revision's parent_ids list. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => integer() | nil, + :index => integer() | nil, + :revision => integer() | nil + } + + field(:id) + field(:index) + field(:revision) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenanceParent do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenanceParent.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenanceParent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_revision.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_revision.ex new file mode 100644 index 0000000000..ac4b2824e3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_revision.ex @@ -0,0 +1,75 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentRevision do + @moduledoc """ + Contains past or forward revisions of this document. + + ## Attributes + + * `agent` (*type:* `String.t`, *default:* `nil`) - If the change was made by a person specify the name or id of that person. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time that the revision was created, internally generated by doc proto storage at the time of create. + * `humanReview` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentRevisionHumanReview.t`, *default:* `nil`) - Human Review information of this revision. + * `id` (*type:* `String.t`, *default:* `nil`) - Id of the revision, internally generated by doc proto storage. Unique within the context of the document. + * `parent` (*type:* `list(integer())`, *default:* `nil`) - The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the `revisions` field. + * `parentIds` (*type:* `list(String.t)`, *default:* `nil`) - The revisions that this revision is based on. Must include all the ids that have anything to do with this revision - eg. there are `provenance.parent.revision` fields that index into this field. + * `processor` (*type:* `String.t`, *default:* `nil`) - If the annotation was made by processor identify the processor by its resource name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agent => String.t() | nil, + :createTime => DateTime.t() | nil, + :humanReview => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentRevisionHumanReview.t() + | nil, + :id => String.t() | nil, + :parent => list(integer()) | nil, + :parentIds => list(String.t()) | nil, + :processor => String.t() | nil + } + + field(:agent) + field(:createTime, as: DateTime) + + field(:humanReview, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentRevisionHumanReview + ) + + field(:id) + field(:parent, type: :list) + field(:parentIds, type: :list) + field(:processor) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentRevision do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentRevision.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentRevision do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_revision_human_review.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_revision_human_review.ex new file mode 100644 index 0000000000..3d724fe376 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_revision_human_review.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentRevisionHumanReview do + @moduledoc """ + Human Review information of the document. + + ## Attributes + + * `state` (*type:* `String.t`, *default:* `nil`) - Human review state. e.g. `requested`, `succeeded`, `rejected`. + * `stateMessage` (*type:* `String.t`, *default:* `nil`) - A message providing more details about the current state of processing. For example, the rejection reason when the state is `rejected`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :state => String.t() | nil, + :stateMessage => String.t() | nil + } + + field(:state) + field(:stateMessage) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentRevisionHumanReview do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentRevisionHumanReview.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentRevisionHumanReview do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_shard_info.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_shard_info.ex new file mode 100644 index 0000000000..09c07309f5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_shard_info.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentShardInfo do + @moduledoc """ + For a large document, sharding may be performed to produce several document shards. Each document shard contains this field to detail which shard it is. + + ## Attributes + + * `shardCount` (*type:* `String.t`, *default:* `nil`) - Total number of shards. + * `shardIndex` (*type:* `String.t`, *default:* `nil`) - The 0-based index of this shard. + * `textOffset` (*type:* `String.t`, *default:* `nil`) - The index of the first character in Document.text in the overall document global text. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :shardCount => String.t() | nil, + :shardIndex => String.t() | nil, + :textOffset => String.t() | nil + } + + field(:shardCount) + field(:shardIndex) + field(:textOffset) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentShardInfo do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentShardInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentShardInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_style.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_style.ex new file mode 100644 index 0000000000..88afdec0e5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_style.ex @@ -0,0 +1,84 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentStyle do + @moduledoc """ + Annotation for common text style attributes. This adheres to CSS conventions as much as possible. + + ## Attributes + + * `backgroundColor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeColor.t`, *default:* `nil`) - Text background color. + * `color` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeColor.t`, *default:* `nil`) - Text color. + * `fontFamily` (*type:* `String.t`, *default:* `nil`) - Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/cssref/pr_font_font-family.asp + * `fontSize` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentStyleFontSize.t`, *default:* `nil`) - Font size. + * `fontWeight` (*type:* `String.t`, *default:* `nil`) - [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are `normal`, `bold`, `bolder`, and `lighter`. + * `textAnchor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchor.t`, *default:* `nil`) - Text anchor indexing into the Document.text. + * `textDecoration` (*type:* `String.t`, *default:* `nil`) - [Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). Follows CSS standard. + * `textStyle` (*type:* `String.t`, *default:* `nil`) - [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values are `normal`, `italic`, and `oblique`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :backgroundColor => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeColor.t() | nil, + :color => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeColor.t() | nil, + :fontFamily => String.t() | nil, + :fontSize => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentStyleFontSize.t() + | nil, + :fontWeight => String.t() | nil, + :textAnchor => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchor.t() + | nil, + :textDecoration => String.t() | nil, + :textStyle => String.t() | nil + } + + field(:backgroundColor, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeColor) + field(:color, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeColor) + field(:fontFamily) + + field(:fontSize, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentStyleFontSize + ) + + field(:fontWeight) + + field(:textAnchor, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchor + ) + + field(:textDecoration) + field(:textStyle) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentStyle do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentStyle.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentStyle do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_style_font_size.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_style_font_size.ex new file mode 100644 index 0000000000..0f9ad7f723 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_style_font_size.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentStyleFontSize do + @moduledoc """ + Font size with unit. + + ## Attributes + + * `size` (*type:* `number()`, *default:* `nil`) - Font size for the text. + * `unit` (*type:* `String.t`, *default:* `nil`) - Unit for the font size. Follows CSS naming (such as `in`, `px`, and `pt`). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :size => number() | nil, + :unit => String.t() | nil + } + + field(:size) + field(:unit) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentStyleFontSize do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentStyleFontSize.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentStyleFontSize do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_text_anchor.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_text_anchor.ex new file mode 100644 index 0000000000..bb2b3b786c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_text_anchor.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchor do + @moduledoc """ + Text reference indexing into the Document.text. + + ## Attributes + + * `content` (*type:* `String.t`, *default:* `nil`) - Contains the content of the text span so that users do not have to look it up in the text_segments. It is always populated for formFields. + * `textSegments` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment.t)`, *default:* `nil`) - The text segments from the Document.text. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :content => String.t() | nil, + :textSegments => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment.t() + ) + | nil + } + + field(:content) + + field(:textSegments, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchor do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchor.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchor do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_text_anchor_text_segment.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_text_anchor_text_segment.ex new file mode 100644 index 0000000000..86b839512b --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_text_anchor_text_segment.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment do + @moduledoc """ + A text segment in the Document.text. The indices may be out of bounds which indicate that the text extends into another document shard for large sharded documents. See ShardInfo.text_offset + + ## Attributes + + * `endIndex` (*type:* `String.t`, *default:* `nil`) - TextSegment half open end UTF-8 char index in the Document.text. + * `startIndex` (*type:* `String.t`, *default:* `nil`) - TextSegment start UTF-8 char index in the Document.text. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :endIndex => String.t() | nil, + :startIndex => String.t() | nil + } + + field(:endIndex) + field(:startIndex) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_text_change.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_text_change.ex new file mode 100644 index 0000000000..556a6f797c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_document_text_change.ex @@ -0,0 +1,70 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextChange do + @moduledoc """ + This message is used for text changes aka. OCR corrections. + + ## Attributes + + * `changedText` (*type:* `String.t`, *default:* `nil`) - The text that replaces the text identified in the `text_anchor`. + * `provenance` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t)`, *default:* `nil`) - The history of this annotation. + * `textAnchor` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchor.t`, *default:* `nil`) - Provenance of the correction. Text anchor indexing into the Document.text. There can only be a single `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text change is inserted before that index. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :changedText => String.t() | nil, + :provenance => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance.t() + ) + | nil, + :textAnchor => + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchor.t() + | nil + } + + field(:changedText) + + field(:provenance, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentProvenance, + type: :list + ) + + field(:textAnchor, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextAnchor + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextChange do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextChange.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1DocumentTextChange do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_normalized_vertex.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_normalized_vertex.ex new file mode 100644 index 0000000000..bf24d82f01 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_normalized_vertex.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1NormalizedVertex do + @moduledoc """ + A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1. + + ## Attributes + + * `x` (*type:* `number()`, *default:* `nil`) - X coordinate. + * `y` (*type:* `number()`, *default:* `nil`) - Y coordinate (starts from the top of the image). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :x => number() | nil, + :y => number() | nil + } + + field(:x) + field(:y) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1NormalizedVertex do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1NormalizedVertex.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1NormalizedVertex do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_vertex.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_vertex.ex new file mode 100644 index 0000000000..52ad1296d8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_cloud_documentai_v1_vertex.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Vertex do + @moduledoc """ + A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image. + + ## Attributes + + * `x` (*type:* `integer()`, *default:* `nil`) - X coordinate. + * `y` (*type:* `integer()`, *default:* `nil`) - Y coordinate (starts from the top of the image). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :x => integer() | nil, + :y => integer() | nil + } + + field(:x) + field(:y) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Vertex do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Vertex.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Vertex do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_iam_v1_audit_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_iam_v1_audit_config.ex new file mode 100644 index 0000000000..b4980cb6ac --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_iam_v1_audit_config.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1AuditConfig do + @moduledoc """ + Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging. + + ## Attributes + + * `auditLogConfigs` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1AuditLogConfig.t)`, *default:* `nil`) - The configuration for logging of each type of permission. + * `service` (*type:* `String.t`, *default:* `nil`) - Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :auditLogConfigs => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1AuditLogConfig.t()) | nil, + :service => String.t() | nil + } + + field(:auditLogConfigs, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1AuditLogConfig, + type: :list + ) + + field(:service) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1AuditConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1AuditConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1AuditConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_iam_v1_audit_log_config.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_iam_v1_audit_log_config.ex new file mode 100644 index 0000000000..791d4e0ced --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_iam_v1_audit_log_config.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1AuditLogConfig do + @moduledoc """ + Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging. + + ## Attributes + + * `exemptedMembers` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. + * `logType` (*type:* `String.t`, *default:* `nil`) - The log type that this config enables. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :exemptedMembers => list(String.t()) | nil, + :logType => String.t() | nil + } + + field(:exemptedMembers, type: :list) + field(:logType) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1AuditLogConfig do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1AuditLogConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1AuditLogConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_iam_v1_binding.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_iam_v1_binding.ex new file mode 100644 index 0000000000..037ce0fa15 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_iam_v1_binding.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Binding do + @moduledoc """ + Associates `members`, or principals, with a `role`. + + ## Attributes + + * `condition` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeExpr.t`, *default:* `nil`) - The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. + * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :condition => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeExpr.t() | nil, + :members => list(String.t()) | nil, + :role => String.t() | nil + } + + field(:condition, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeExpr) + field(:members, type: :list) + field(:role) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Binding do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Binding.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Binding do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_iam_v1_policy.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_iam_v1_policy.ex new file mode 100644 index 0000000000..366728dbf5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_iam_v1_policy.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy do + @moduledoc """ + An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + + ## Attributes + + * `auditConfigs` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1AuditConfig.t)`, *default:* `nil`) - Specifies cloud audit logging configuration for this policy. + * `bindings` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Binding.t)`, *default:* `nil`) - Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. + * `etag` (*type:* `String.t`, *default:* `nil`) - `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. + * `version` (*type:* `integer()`, *default:* `nil`) - Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :auditConfigs => + list(GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1AuditConfig.t()) | nil, + :bindings => list(GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Binding.t()) | nil, + :etag => String.t() | nil, + :version => integer() | nil + } + + field(:auditConfigs, as: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1AuditConfig, type: :list) + + field(:bindings, as: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Binding, type: :list) + field(:etag) + field(:version) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleIamV1Policy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_availability_period.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_availability_period.ex new file mode 100644 index 0000000000..79e1402cbc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_availability_period.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaAvailabilityPeriod do + @moduledoc """ + Represents the information about user's working hours during one day. Note that a period on Monday from 18:00 - 00:00 is represented as a triplet (1, 1080, 1440). + + ## Attributes + + * `dayOfWeek` (*type:* `integer()`, *default:* `nil`) - Day of week, 0 for Sunday, 1 for Monday, ... + * `periodEndMinutes` (*type:* `integer()`, *default:* `nil`) - Period end, in minutes from the start of the day, exclusive. + * `periodStartMinutes` (*type:* `integer()`, *default:* `nil`) - Period start, in minutes from the start of the day, inclusive. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dayOfWeek => integer() | nil, + :periodEndMinutes => integer() | nil, + :periodStartMinutes => integer() | nil + } + + field(:dayOfWeek) + field(:periodEndMinutes) + field(:periodStartMinutes) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaAvailabilityPeriod do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaAvailabilityPeriod.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaAvailabilityPeriod do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_calendar_busy.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_calendar_busy.ex new file mode 100644 index 0000000000..e95ffc5412 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_calendar_busy.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaCalendarBusy do + @moduledoc """ + The status indicating the user is temporarily busy and there is not a more specific status derived from calendar that applies (e.g., InMeeting or DoNotDisturb). + + ## Attributes + + * `committedUntil` (*type:* `DateTime.t`, *default:* `nil`) - The time when the user will either stop being committed or change commitment type (i.e. InMeeting, DoNotDisturb, Busy or OutOfOffice < Xh). Note that the goal of this field is to provide information to help users decide how to communicate with a user (see also http://shortn/_wXYXtZScgh). + * `eventSummary` (*type:* `String.t`, *default:* `nil`) - The summary of the corresponding event in Calendar. + * `nextAvailable` (*type:* `DateTime.t`, *default:* `nil`) - The next time when the user will be available, i.e., when their status will be neither InMeeting, CalendarBusy, DoNotDisturb, OutsideWorkingHours, nor OutOfOffice. + * `occupiedUntil` (*type:* `DateTime.t`, *default:* `nil`) - The time when the user will stop being occupied, i.e., when their status will be neither inMeeting, Busy nor DoNotDisturb. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :committedUntil => DateTime.t() | nil, + :eventSummary => String.t() | nil, + :nextAvailable => DateTime.t() | nil, + :occupiedUntil => DateTime.t() | nil + } + + field(:committedUntil, as: DateTime) + field(:eventSummary) + field(:nextAvailable, as: DateTime) + field(:occupiedUntil, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaCalendarBusy do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaCalendarBusy.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaCalendarBusy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_custom_location.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_custom_location.ex new file mode 100644 index 0000000000..ebc955154d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_custom_location.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaCustomLocation do + @moduledoc """ + Custom location specified by the user. + + ## Attributes + + * `geoCoordinates` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeLatLng.t`, *default:* `nil`) - Geographic location as geo coordinates. + * `label` (*type:* `String.t`, *default:* `nil`) - The custom location label as a string entered manually by the user. + * `location` (*type:* `String.t`, *default:* `nil`) - Geographic location as free-form text. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :geoCoordinates => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeLatLng.t() | nil, + :label => String.t() | nil, + :location => String.t() | nil + } + + field(:geoCoordinates, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeLatLng) + field(:label) + field(:location) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaCustomLocation do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaCustomLocation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaCustomLocation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_do_not_disturb.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_do_not_disturb.ex new file mode 100644 index 0000000000..132623fb8f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_do_not_disturb.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaDoNotDisturb do + @moduledoc """ + The status indicating the user should not be disturbed. + + ## Attributes + + * `committedUntil` (*type:* `DateTime.t`, *default:* `nil`) - The time when the user will either stop being committed or change commitment type (i.e. InMeeting, DoNotDisturb, Busy or OutOfOffice < Xh). Note that the goal of this field is to provide information to help users decide how to communicate with a user (see also http://shortn/_wXYXtZScgh). + * `nextAvailable` (*type:* `DateTime.t`, *default:* `nil`) - The next time when the user will be available, i.e., when their status will be neither InMeeting, CalendarBusy, DoNotDisturb, OutsideWorkingHours, nor OutOfOffice. + * `occupiedUntil` (*type:* `DateTime.t`, *default:* `nil`) - The time when the user will stop being occupied, i.e., when their status will be neither inMeeting, Busy nor DoNotDisturb. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :committedUntil => DateTime.t() | nil, + :nextAvailable => DateTime.t() | nil, + :occupiedUntil => DateTime.t() | nil + } + + field(:committedUntil, as: DateTime) + field(:nextAvailable, as: DateTime) + field(:occupiedUntil, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaDoNotDisturb do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaDoNotDisturb.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaDoNotDisturb do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_home_location.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_home_location.ex new file mode 100644 index 0000000000..d0a29ba870 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_home_location.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaHomeLocation do + @moduledoc """ + Home location. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaHomeLocation do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaHomeLocation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaHomeLocation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_in_meeting.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_in_meeting.ex new file mode 100644 index 0000000000..1b6905e581 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_in_meeting.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaInMeeting do + @moduledoc """ + The status indicating the user is in a meeting. + + ## Attributes + + * `committedUntil` (*type:* `DateTime.t`, *default:* `nil`) - The time when the user will either stop being committed or change commitment type (i.e. InMeeting, DoNotDisturb, Busy or OutOfOffice < Xh). Note that the goal of this field is to provide information to help users decide how to communicate with a user (see also http://shortn/_wXYXtZScgh). + * `eventSummary` (*type:* `String.t`, *default:* `nil`) - The summary of the corresponding event in Calendar. + * `inMeetingsUntil` (*type:* `DateTime.t`, *default:* `nil`) - The time when the user will stop being in a meeting. + * `nextAvailable` (*type:* `DateTime.t`, *default:* `nil`) - The next time when the user will be available, i.e., when their status will be neither InMeeting, CalendarBusy, DoNotDisturb, OutsideWorkingHours, nor OutOfOffice. + * `occupiedUntil` (*type:* `DateTime.t`, *default:* `nil`) - The time when the user will stop being occupied, i.e., when their status will be neither InMeeting, Busy nor DoNotDisturb. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :committedUntil => DateTime.t() | nil, + :eventSummary => String.t() | nil, + :inMeetingsUntil => DateTime.t() | nil, + :nextAvailable => DateTime.t() | nil, + :occupiedUntil => DateTime.t() | nil + } + + field(:committedUntil, as: DateTime) + field(:eventSummary) + field(:inMeetingsUntil, as: DateTime) + field(:nextAvailable, as: DateTime) + field(:occupiedUntil, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaInMeeting do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaInMeeting.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaInMeeting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_inactive.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_inactive.ex new file mode 100644 index 0000000000..03e4b637e9 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_inactive.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaInactive do + @moduledoc """ + The status indicating that no other status applies. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaInactive do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaInactive.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaInactive do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_local_time_context.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_local_time_context.ex new file mode 100644 index 0000000000..f02ffcc9a8 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_local_time_context.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaLocalTimeContext do + @moduledoc """ + Context which helps to determine the user's local time. + + ## Attributes + + * `timeZone` (*type:* `String.t`, *default:* `nil`) - The current time zone of the user. Represented as a valid time zone ID from Olson database, like "Europe/Zurich" (see http://google3/i18n/identifiers/data/timezones.txt). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :timeZone => String.t() | nil + } + + field(:timeZone) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaLocalTimeContext do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaLocalTimeContext.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaLocalTimeContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_office_location.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_office_location.ex new file mode 100644 index 0000000000..bfb4927a77 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_office_location.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOfficeLocation do + @moduledoc """ + Office location. + + ## Attributes + + * `experimentalBuildingId` (*type:* `String.t`, *default:* `nil`) - Experimental. Can change or disappear without warning or notice. References a building from http://google3/ccc/hosted/api/rosy/resources/calendar/building.proto For example "US-NYC-9TH". + * `experimentalDeskId` (*type:* `String.t`, *default:* `nil`) - Experimental. Can change or disappear without warning or notice. The desk id. For example "11E358K". + * `experimentalFloorId` (*type:* `String.t`, *default:* `nil`) - Experimental. Can change or disappear without warning or notice. The floor id. For example "11". + * `label` (*type:* `String.t`, *default:* `nil`) - The display label of this office location. For example a building name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :experimentalBuildingId => String.t() | nil, + :experimentalDeskId => String.t() | nil, + :experimentalFloorId => String.t() | nil, + :label => String.t() | nil + } + + field(:experimentalBuildingId) + field(:experimentalDeskId) + field(:experimentalFloorId) + field(:label) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOfficeLocation do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOfficeLocation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOfficeLocation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_out_of_office.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_out_of_office.ex new file mode 100644 index 0000000000..a7b2973195 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_out_of_office.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOutOfOffice do + @moduledoc """ + The status indicating the user is out of office. + + ## Attributes + + * `comeBackTime` (*type:* `DateTime.t`, *default:* `nil`) - The closest time when the user will be available after this OOO block. This might be different from the end of the OOO block in Calendar, since the OOO block might end on Friday evening, and then the user is outside working hours. + * `committedUntil` (*type:* `DateTime.t`, *default:* `nil`) - The time when the user will either stop being committed or change commitment type (i.e. InMeeting, DoNotDisturb, Busy or OutOfOffice < Xh). Note that the goal of this field is to provide information to help users decide how to communicate with a user (see also http://shortn/_wXYXtZScgh). Note that if this OOO block is large (>=Xh), committed_until is not set. + * `eventSummary` (*type:* `String.t`, *default:* `nil`) - The summary of the corresponding OOO block in Calendar. This is entered by the user, so we return it "as is" - no i18n. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :comeBackTime => DateTime.t() | nil, + :committedUntil => DateTime.t() | nil, + :eventSummary => String.t() | nil + } + + field(:comeBackTime, as: DateTime) + field(:committedUntil, as: DateTime) + field(:eventSummary) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOutOfOffice do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOutOfOffice.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOutOfOffice do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_outside_working_hours.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_outside_working_hours.ex new file mode 100644 index 0000000000..856686c4ef --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_outside_working_hours.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOutsideWorkingHours do + @moduledoc """ + The status indicating the user doesn't work at this time. + + ## Attributes + + * `comeBackTime` (*type:* `DateTime.t`, *default:* `nil`) - The closest time when the user will be available after this block. This might be different from the start of the working hours in Calendar, because the given OutsideWorkingHours interval might be followed by OOO. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :comeBackTime => DateTime.t() | nil + } + + field(:comeBackTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOutsideWorkingHours do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOutsideWorkingHours.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOutsideWorkingHours do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_time_range.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_time_range.ex new file mode 100644 index 0000000000..c462ec058e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_time_range.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaTimeRange do + @moduledoc """ + A time range, which includes the start and excludes the end. + + ## Attributes + + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - End point of the range, exclusive. + * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Starting point of the range, inclusive. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :endTime => DateTime.t() | nil, + :startTime => DateTime.t() | nil + } + + field(:endTime, as: DateTime) + field(:startTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaTimeRange do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaTimeRange.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaTimeRange do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_upcoming_commitment_context.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_upcoming_commitment_context.ex new file mode 100644 index 0000000000..85b37e9119 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_upcoming_commitment_context.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUpcomingCommitmentContext do + @moduledoc """ + + + ## Attributes + + * `nextCommitmentStatus` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserStatus.t`, *default:* `nil`) - The status of the commitment above. + * `nextCommitmentTime` (*type:* `DateTime.t`, *default:* `nil`) - The most relevant upcoming commitment (InMeeting, DoNotDisturb, CalendarBusy or OutOfOffice). This context is set only if there is an upcoming commitment to show, and only on non commitments. Priority is given to the next closest commitment if its start is close enough to this event, otherwise the next large OOO if there is one. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextCommitmentStatus => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserStatus.t() | nil, + :nextCommitmentTime => DateTime.t() | nil + } + + field(:nextCommitmentStatus, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserStatus + ) + + field(:nextCommitmentTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUpcomingCommitmentContext do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUpcomingCommitmentContext.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUpcomingCommitmentContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_upcoming_ooo_context.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_upcoming_ooo_context.ex new file mode 100644 index 0000000000..f8a377d458 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_upcoming_ooo_context.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUpcomingOooContext do + @moduledoc """ + The context indicating the user's upcoming Out of Office event. + + ## Attributes + + * `timeRange` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaTimeRange.t`, *default:* `nil`) - The future period of absence. The start of this timerange is the start of the future Out of Office event. The end of this timerange represents the come back time of the user from that future OOO event. Note that the come back time might be different (greater) than the end of the corresponding future OOO event due to other non-working user status intervals that it may be followed by. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :timeRange => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaTimeRange.t() | nil + } + + field(:timeRange, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaTimeRange + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUpcomingOooContext do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUpcomingOooContext.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUpcomingOooContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_availabilities.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_availabilities.ex new file mode 100644 index 0000000000..ec983527bf --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_availabilities.ex @@ -0,0 +1,70 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserAvailabilities do + @moduledoc """ + The current and future availabilities of a user. The response contains a timeline, which starts before or at the request time, and the timeline is split into a set of disjoint intervals (without gaps), where the first range always contains the request time. Each range represents what should be displayed in the UI during this time range. The time range might be different from the actual time range of the underlying status. For example, if the user is OOO from 09:00 to 10:00, and a request is made at 8:00, the response might contain two intervals: [08:00, 09:00) - "User is INACTIVE, but leaving the office soon" [09:00, 10:00) - "User is OOO till 10:00" For intervals that don't have a clear availability signal coming from Calendar (e.g. OOO), we return INACTIVE. For more details, please see https://docs.google.com/presentation/d/1ADCTxGawjF9UqMnfuVrVNxGvdyjeiV8h4D7p0a9zYgw/edit#slide=id.g3e2824ac6c_12_94 The service returns availabilities for some short period of time - likely one day, but the client should stick to the "next_poll_time" to decide when to query the server again at the latest. Below there is an example response from the server. Let's assume the client calls the service at 17:59:45. The client receives the message and, assuming its current time is between [17:59:45, 18:00:00), it displays "inactive". When the current time becomes 18:00:00 it displays "outside working hours". At 18:00:40 the client issues another rpc which will return the availabilities for the next minute. The original response looks like availabilities { time_range { start_time: 17:59:45 end_time: 18:00:00 } status { inactive {} } } availabilities { time_range { start_time: 18:00:00 end_time: 18:00:45 } status { outside_working_hours { } } } next_poll_time: 18:00:40 + + ## Attributes + + * `availabilities` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserAvailability.t)`, *default:* `nil`) - A list of user availabilities having contiguous time ranges which are ordered chronologically. The first one starts at the time of the request or before, and is guaranteed to contain the request time. That means the first element always indicates the current status of a user. A client that wants to display a user's availability in real time should display the availability whose time range contains the current time. + * `nextPollTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the client should issue the next availability query for this user. This field should only be used to control the polling frequency. This time is always before the end of the time range of the last availability so that the client always knows the current availability. + * `workingHours` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaWorkingHours.t`, *default:* `nil`) - Information about the user's working hours. This will only be set in case working hours are enabled in their calendar settings. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :availabilities => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserAvailability.t() + ) + | nil, + :nextPollTime => DateTime.t() | nil, + :workingHours => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaWorkingHours.t() + | nil + } + + field(:availabilities, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserAvailability, + type: :list + ) + + field(:nextPollTime, as: DateTime) + + field(:workingHours, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaWorkingHours + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserAvailabilities do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserAvailabilities.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserAvailabilities do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_availability.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_availability.ex new file mode 100644 index 0000000000..3746c2a582 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_availability.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserAvailability do + @moduledoc """ + A single availability range. The displayed status should be the same during the entire time range. + + ## Attributes + + * `contexts` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserContext.t`, *default:* `nil`) - The contexts contain additional information about the current user's availability or its upcoming changes. The client doesn't need to extract certain bits to visualize the status or apply custom logic based on the content of this field: the status field should contain everything needed for the correct visualization. + * `status` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserStatus.t`, *default:* `nil`) - The user status during the time range. + * `timeRange` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaTimeRange.t`, *default:* `nil`) - The time range when this availability should be displayed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contexts => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserContext.t() + | nil, + :status => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserStatus.t() | nil, + :timeRange => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaTimeRange.t() | nil + } + + field(:contexts, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserContext + ) + + field(:status, as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserStatus) + + field(:timeRange, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaTimeRange + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserAvailability do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserAvailability.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserAvailability do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_context.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_context.ex new file mode 100644 index 0000000000..13276586d4 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_context.ex @@ -0,0 +1,80 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserContext do + @moduledoc """ + Additional context about the user's current and/or future availability to give a better understanding of the status ("Working from Zurich"). + + ## Attributes + + * `localTime` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaLocalTimeContext.t`, *default:* `nil`) - Helps to determine the user's local time by providing their current time zone. + * `upcomingCommitmentContext` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUpcomingCommitmentContext.t`, *default:* `nil`) - Information about upcoming events. + * `upcomingOoo` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUpcomingOooContext.t`, *default:* `nil`) - Set if user has upcoming OOO. + * `workingElsewhere` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaWorkingElsewhereContext.t`, *default:* `nil`) - Set if the user has a working location. Not just elsewhere (legacy name). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :localTime => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaLocalTimeContext.t() + | nil, + :upcomingCommitmentContext => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUpcomingCommitmentContext.t() + | nil, + :upcomingOoo => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUpcomingOooContext.t() + | nil, + :workingElsewhere => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaWorkingElsewhereContext.t() + | nil + } + + field(:localTime, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaLocalTimeContext + ) + + field(:upcomingCommitmentContext, + as: + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUpcomingCommitmentContext + ) + + field(:upcomingOoo, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUpcomingOooContext + ) + + field(:workingElsewhere, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaWorkingElsewhereContext + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserContext do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserContext.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_location.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_location.ex new file mode 100644 index 0000000000..5c7626f34f --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_location.ex @@ -0,0 +1,71 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserLocation do + @moduledoc """ + Location of the user, which might be "home", for example, or an office building, as well as a custom location specified by the user. + + ## Attributes + + * `customLocation` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaCustomLocation.t`, *default:* `nil`) - Indicates the user is working from some other location. + * `homeLocation` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaHomeLocation.t`, *default:* `nil`) - Indicates the user is working from home. + * `officeLocation` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOfficeLocation.t`, *default:* `nil`) - Indicates the user is working from the office. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :customLocation => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaCustomLocation.t() + | nil, + :homeLocation => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaHomeLocation.t() + | nil, + :officeLocation => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOfficeLocation.t() + | nil + } + + field(:customLocation, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaCustomLocation + ) + + field(:homeLocation, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaHomeLocation + ) + + field(:officeLocation, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOfficeLocation + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserLocation do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserLocation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserLocation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_status.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_status.ex new file mode 100644 index 0000000000..77b6576746 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_user_status.ex @@ -0,0 +1,91 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserStatus do + @moduledoc """ + The actual status of the user. The message contains everything needed for visualisation of this status. + + ## Attributes + + * `calendarBusy` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaCalendarBusy.t`, *default:* `nil`) - Set if the user is temporarily busy and there is not a more specific status derived from calendar that applies (e.g., InMeeting or DoNotDisturb). + * `doNotDisturb` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaDoNotDisturb.t`, *default:* `nil`) - Set if the user is in a Focus Time block. Note that this is different than Chat's Do not disturb status, but they may coincide, see: go/focus-time-dnd. + * `inMeeting` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaInMeeting.t`, *default:* `nil`) - Set if the user is in a meeting. + * `inactive` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaInactive.t`, *default:* `nil`) - Set if no other statuses apply. + * `outOfOffice` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOutOfOffice.t`, *default:* `nil`) - Set if the user is out of office. + * `outsideWorkingHours` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOutsideWorkingHours.t`, *default:* `nil`) - Set if the user doesn't work at this time. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :calendarBusy => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaCalendarBusy.t() + | nil, + :doNotDisturb => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaDoNotDisturb.t() + | nil, + :inMeeting => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaInMeeting.t() | nil, + :inactive => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaInactive.t() | nil, + :outOfOffice => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOutOfOffice.t() + | nil, + :outsideWorkingHours => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOutsideWorkingHours.t() + | nil + } + + field(:calendarBusy, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaCalendarBusy + ) + + field(:doNotDisturb, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaDoNotDisturb + ) + + field(:inMeeting, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaInMeeting + ) + + field(:inactive, as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaInactive) + + field(:outOfOffice, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOutOfOffice + ) + + field(:outsideWorkingHours, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaOutsideWorkingHours + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserStatus do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserStatus.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserStatus do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_working_elsewhere_context.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_working_elsewhere_context.ex new file mode 100644 index 0000000000..668183512c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_working_elsewhere_context.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaWorkingElsewhereContext do + @moduledoc """ + The context providing the User Location (not just Elsewhere). This is a legacy name from when it was only set for users working remotely, now it is also set when the user is working from the office. + + ## Attributes + + * `location` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserLocation.t`, *default:* `nil`) - The new location of the user. Might represent home, office, or a custom address on the map. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :location => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserLocation.t() + | nil + } + + field(:location, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaUserLocation + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaWorkingElsewhereContext do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaWorkingElsewhereContext.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaWorkingElsewhereContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_working_hours.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_working_hours.ex new file mode 100644 index 0000000000..9c7e9d23b3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_apps_waldo_v1alpha_working_hours.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaWorkingHours do + @moduledoc """ + Information about the user's working hours. + + ## Attributes + + * `availableTime` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaAvailabilityPeriod.t)`, *default:* `nil`) - A list of availability periods representing the user's working hours as configured in calendar. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :availableTime => + list( + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaAvailabilityPeriod.t() + ) + | nil + } + + field(:availableTime, + as: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaAvailabilityPeriod, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaWorkingHours do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaWorkingHours.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalAppsWaldoV1alphaWorkingHours do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_communications_instantmessaging_v1_id.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_communications_instantmessaging_v1_id.ex new file mode 100644 index 0000000000..7cc92b5bcc --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_communications_instantmessaging_v1_id.ex @@ -0,0 +1,73 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalCommunicationsInstantmessagingV1Id do + @moduledoc """ + Id for message recipients, e.g. users, groups etc. + + ## Attributes + + * `app` (*type:* `String.t`, *default:* `nil`) - app is the tachyon client application that generated or is to receive a message. + * `countryCode` (*type:* `String.t`, *default:* `nil`) - country_code is the E164_COUNTRY_CODE format country code for this id, used as a hint for its region. E.g, "+1" will be used for North America, "+86" will be used for China, etc. Should be filled only for RCS group id. + * `id` (*type:* `String.t`, *default:* `nil`) - id is a unique (for this type and app) identifier of a message source or recipient. + * `locationHint` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleInternalCommunicationsInstantmessagingV1LocationHint.t`, *default:* `nil`) - location_hint is used as a hint for the user's region. + * `routingInfoToken` (*type:* `String.t`, *default:* `nil`) - Raw byte array containing encoded routing information. Clients of Tachyon are expected to include the most recent routing_info_cookie that they have received from the server in the requests that they make. Its format is purposely opaque so that clients do not need to concern themselves with the content of this field. This field is expected to be used primarily by Tachygram clients for go/tachygram-groups to simplify the API contract for group operations while reducing the need for unnecessary lookups. + * `type` (*type:* `String.t`, *default:* `nil`) - type defines what the id field contains, e.g. phone number, Fi-number, Gaia ID etc. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :app => String.t() | nil, + :countryCode => String.t() | nil, + :id => String.t() | nil, + :locationHint => + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalCommunicationsInstantmessagingV1LocationHint.t() + | nil, + :routingInfoToken => String.t() | nil, + :type => String.t() | nil + } + + field(:app) + field(:countryCode) + field(:id) + + field(:locationHint, + as: + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalCommunicationsInstantmessagingV1LocationHint + ) + + field(:routingInfoToken) + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalCommunicationsInstantmessagingV1Id do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalCommunicationsInstantmessagingV1Id.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.GoogleInternalCommunicationsInstantmessagingV1Id do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_communications_instantmessaging_v1_location_hint.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_communications_instantmessaging_v1_location_hint.ex new file mode 100644 index 0000000000..730ff5259d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_internal_communications_instantmessaging_v1_location_hint.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleInternalCommunicationsInstantmessagingV1LocationHint do + @moduledoc """ + LocationHint is used to specify a location as well as format. + + ## Attributes + + * `format` (*type:* `String.t`, *default:* `nil`) - the format of location. + * `location` (*type:* `String.t`, *default:* `nil`) - Location is the location, provided in the format specified by format. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :format => String.t() | nil, + :location => String.t() | nil + } + + field(:format) + field(:location) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalCommunicationsInstantmessagingV1LocationHint do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalCommunicationsInstantmessagingV1LocationHint.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContentWarehouse.V1.Model.GoogleInternalCommunicationsInstantmessagingV1LocationHint do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_longrunning_operation.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_longrunning_operation.ex new file mode 100644 index 0000000000..61382dfc73 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_longrunning_operation.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleLongrunningOperation do + @moduledoc """ + This resource represents a long-running operation that is the result of a network API call. + + ## Attributes + + * `done` (*type:* `boolean()`, *default:* `nil`) - If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. + * `error` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleRpcStatus.t`, *default:* `nil`) - The error result of the operation in case of failure or cancellation. + * `metadata` (*type:* `map()`, *default:* `nil`) - Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. + * `name` (*type:* `String.t`, *default:* `nil`) - The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. + * `response` (*type:* `map()`, *default:* `nil`) - The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :done => boolean() | nil, + :error => GoogleApi.ContentWarehouse.V1.Model.GoogleRpcStatus.t() | nil, + :metadata => map() | nil, + :name => String.t() | nil, + :response => map() | nil + } + + field(:done) + field(:error, as: GoogleApi.ContentWarehouse.V1.Model.GoogleRpcStatus) + field(:metadata, type: :map) + field(:name) + field(:response, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleLongrunningOperation do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleLongrunningOperation.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleLongrunningOperation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_protobuf_empty.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_protobuf_empty.ex new file mode 100644 index 0000000000..6a15c462bf --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_protobuf_empty.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty do + @moduledoc """ + A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleProtobufEmpty do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_rpc_status.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_rpc_status.ex new file mode 100644 index 0000000000..37e961b928 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_rpc_status.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleRpcStatus do + @moduledoc """ + The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + + ## Attributes + + * `code` (*type:* `integer()`, *default:* `nil`) - The status code, which should be an enum value of google.rpc.Code. + * `details` (*type:* `list(map())`, *default:* `nil`) - A list of messages that carry the error details. There is a common set of message types for APIs to use. + * `message` (*type:* `String.t`, *default:* `nil`) - A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :code => integer() | nil, + :details => list(map()) | nil, + :message => String.t() | nil + } + + field(:code) + field(:details, type: :list) + field(:message) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleRpcStatus do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleRpcStatus.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleRpcStatus do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_color.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_color.ex new file mode 100644 index 0000000000..f331c34189 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_color.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleTypeColor do + @moduledoc """ + Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn't have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ... + + ## Attributes + + * `alpha` (*type:* `number()`, *default:* `nil`) - The fraction of this color that should be applied to the pixel. That is, the final pixel color is defined by the equation: `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` This means that a value of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a completely transparent color. This uses a wrapper message rather than a simple float scalar so that it is possible to distinguish between a default value and the value being unset. If omitted, this color object is rendered as a solid color (as if the alpha value had been explicitly given a value of 1.0). + * `blue` (*type:* `number()`, *default:* `nil`) - The amount of blue in the color as a value in the interval [0, 1]. + * `green` (*type:* `number()`, *default:* `nil`) - The amount of green in the color as a value in the interval [0, 1]. + * `red` (*type:* `number()`, *default:* `nil`) - The amount of red in the color as a value in the interval [0, 1]. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alpha => number() | nil, + :blue => number() | nil, + :green => number() | nil, + :red => number() | nil + } + + field(:alpha) + field(:blue) + field(:green) + field(:red) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeColor do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleTypeColor.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeColor do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_date.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_date.ex new file mode 100644 index 0000000000..7a28171815 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_date.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate do + @moduledoc """ + Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp + + ## Attributes + + * `day` (*type:* `integer()`, *default:* `nil`) - Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. + * `month` (*type:* `integer()`, *default:* `nil`) - Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * `year` (*type:* `integer()`, *default:* `nil`) - Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :day => integer() | nil, + :month => integer() | nil, + :year => integer() | nil + } + + field(:day) + field(:month) + field(:year) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_date_time.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_date_time.ex new file mode 100644 index 0000000000..aa103cea68 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_date_time.ex @@ -0,0 +1,70 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime do + @moduledoc """ + Represents civil time (or occasionally physical time). This type can represent a civil time in one of a few possible ways: * When utc_offset is set and time_zone is unset: a civil time on a calendar day with a particular offset from UTC. * When time_zone is set and utc_offset is unset: a civil time on a calendar day in a particular time zone. * When neither time_zone nor utc_offset is set: a civil time on a calendar day in local time. The date is relative to the Proleptic Gregorian Calendar. If year, month, or day are 0, the DateTime is considered not to have a specific year, month, or day respectively. This type may also be used to represent a physical time if all the date and time fields are set and either case of the `time_offset` oneof is set. Consider using `Timestamp` message for physical time instead. If your use case also would like to store the user's timezone, that can be done in another field. This type is more flexible than some applications may want. Make sure to document and validate your application's limitations. + + ## Attributes + + * `day` (*type:* `integer()`, *default:* `nil`) - Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day. + * `hours` (*type:* `integer()`, *default:* `nil`) - Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value "24:00:00" for scenarios like business closing time. + * `minutes` (*type:* `integer()`, *default:* `nil`) - Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. + * `month` (*type:* `integer()`, *default:* `nil`) - Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month. + * `nanos` (*type:* `integer()`, *default:* `nil`) - Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0. + * `seconds` (*type:* `integer()`, *default:* `nil`) - Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds. + * `timeZone` (*type:* `GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeZone.t`, *default:* `nil`) - Time zone. + * `utcOffset` (*type:* `String.t`, *default:* `nil`) - UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }. + * `year` (*type:* `integer()`, *default:* `nil`) - Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :day => integer() | nil, + :hours => integer() | nil, + :minutes => integer() | nil, + :month => integer() | nil, + :nanos => integer() | nil, + :seconds => integer() | nil, + :timeZone => GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeZone.t() | nil, + :utcOffset => String.t() | nil, + :year => integer() | nil + } + + field(:day) + field(:hours) + field(:minutes) + field(:month) + field(:nanos) + field(:seconds) + field(:timeZone, as: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeZone) + field(:utcOffset) + field(:year) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_expr.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_expr.ex new file mode 100644 index 0000000000..4ee130e8ba --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_expr.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleTypeExpr do + @moduledoc """ + Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. + + ## Attributes + + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. + * `expression` (*type:* `String.t`, *default:* `nil`) - Textual representation of an expression in Common Expression Language syntax. + * `location` (*type:* `String.t`, *default:* `nil`) - Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. + * `title` (*type:* `String.t`, *default:* `nil`) - Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :description => String.t() | nil, + :expression => String.t() | nil, + :location => String.t() | nil, + :title => String.t() | nil + } + + field(:description) + field(:expression) + field(:location) + field(:title) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeExpr do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleTypeExpr.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeExpr do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_interval.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_interval.ex new file mode 100644 index 0000000000..fd1c8ff2fa --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_interval.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleTypeInterval do + @moduledoc """ + Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. + + ## Attributes + + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. + * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :endTime => DateTime.t() | nil, + :startTime => DateTime.t() | nil + } + + field(:endTime, as: DateTime) + field(:startTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeInterval do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleTypeInterval.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeInterval do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_lat_lng.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_lat_lng.ex new file mode 100644 index 0000000000..81fc762021 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_lat_lng.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleTypeLatLng do + @moduledoc """ + An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. + + ## Attributes + + * `latitude` (*type:* `float()`, *default:* `nil`) - The latitude in degrees. It must be in the range [-90.0, +90.0]. + * `longitude` (*type:* `float()`, *default:* `nil`) - The longitude in degrees. It must be in the range [-180.0, +180.0]. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :latitude => float() | nil, + :longitude => float() | nil + } + + field(:latitude) + field(:longitude) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeLatLng do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleTypeLatLng.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeLatLng do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_money.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_money.ex new file mode 100644 index 0000000000..289dfb831c --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_money.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleTypeMoney do + @moduledoc """ + Represents an amount of money with its currency type. + + ## Attributes + + * `currencyCode` (*type:* `String.t`, *default:* `nil`) - The three-letter currency code defined in ISO 4217. + * `nanos` (*type:* `integer()`, *default:* `nil`) - Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * `units` (*type:* `String.t`, *default:* `nil`) - The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :currencyCode => String.t() | nil, + :nanos => integer() | nil, + :units => String.t() | nil + } + + field(:currencyCode) + field(:nanos) + field(:units) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeMoney do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleTypeMoney.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeMoney do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_postal_address.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_postal_address.ex new file mode 100644 index 0000000000..35c5b0e370 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_postal_address.ex @@ -0,0 +1,76 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleTypePostalAddress do + @moduledoc """ + Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478 + + ## Attributes + + * `addressLines` (*type:* `list(String.t)`, *default:* `nil`) - Unstructured address lines describing the lower levels of an address. Because values in address_lines do not have type information and may sometimes contain multiple values in a single field (e.g. "Austin, TX"), it is important that the line order is clear. The order of address lines should be "envelope order" for the country/region of the address. In places where this can vary (e.g. Japan), address_language is used to make it explicit (e.g. "ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large). This way, the most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a region_code with all remaining information placed in the address_lines. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of the address components until it was at least partially resolved. Creating an address only containing a region_code and address_lines, and then geocoding is the recommended way to handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas). + * `administrativeArea` (*type:* `String.t`, *default:* `nil`) - Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. Specifically, for Spain this is the province and not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. E.g. in Switzerland this should be left unpopulated. + * `languageCode` (*type:* `String.t`, *default:* `nil`) - Optional. BCP-47 language code of the contents of this address (if known). This is often the UI language of the input form or is expected to match one of the languages used in the address' country/region, or their transliterated equivalents. This can affect formatting in certain countries, but is not critical to the correctness of the data and will never affect any validation or other non-formatting related operations. If this value is not known, it should be omitted (rather than specifying a possibly incorrect default). Examples: "zh-Hant", "ja", "ja-Latn", "en". + * `locality` (*type:* `String.t`, *default:* `nil`) - Optional. Generally refers to the city/town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave locality empty and use address_lines. + * `organization` (*type:* `String.t`, *default:* `nil`) - Optional. The name of the organization at the address. + * `postalCode` (*type:* `String.t`, *default:* `nil`) - Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (e.g. state/zip validation in the U.S.A.). + * `recipients` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The recipient at the address. This field may, under certain circumstances, contain multiline information. For example, it might contain "care of" information. + * `regionCode` (*type:* `String.t`, *default:* `nil`) - Required. CLDR region code of the country/region of the address. This is never inferred and it is up to the user to ensure the value is correct. See https://cldr.unicode.org/ and https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html for details. Example: "CH" for Switzerland. + * `revision` (*type:* `integer()`, *default:* `nil`) - The schema revision of the `PostalAddress`. This must be set to 0, which is the latest revision. All new revisions **must** be backward compatible with old revisions. + * `sortingCode` (*type:* `String.t`, *default:* `nil`) - Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). + * `sublocality` (*type:* `String.t`, *default:* `nil`) - Optional. Sublocality of the address. For example, this can be neighborhoods, boroughs, districts. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :addressLines => list(String.t()) | nil, + :administrativeArea => String.t() | nil, + :languageCode => String.t() | nil, + :locality => String.t() | nil, + :organization => String.t() | nil, + :postalCode => String.t() | nil, + :recipients => list(String.t()) | nil, + :regionCode => String.t() | nil, + :revision => integer() | nil, + :sortingCode => String.t() | nil, + :sublocality => String.t() | nil + } + + field(:addressLines, type: :list) + field(:administrativeArea) + field(:languageCode) + field(:locality) + field(:organization) + field(:postalCode) + field(:recipients, type: :list) + field(:regionCode) + field(:revision) + field(:sortingCode) + field(:sublocality) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypePostalAddress do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleTypePostalAddress.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypePostalAddress do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_time_of_day.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_time_of_day.ex new file mode 100644 index 0000000000..29456f2bf3 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_time_of_day.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeOfDay do + @moduledoc """ + Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. + + ## Attributes + + * `hours` (*type:* `integer()`, *default:* `nil`) - Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. + * `minutes` (*type:* `integer()`, *default:* `nil`) - Minutes of hour of day. Must be from 0 to 59. + * `nanos` (*type:* `integer()`, *default:* `nil`) - Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + * `seconds` (*type:* `integer()`, *default:* `nil`) - Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :hours => integer() | nil, + :minutes => integer() | nil, + :nanos => integer() | nil, + :seconds => integer() | nil + } + + field(:hours) + field(:minutes) + field(:nanos) + field(:seconds) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeOfDay do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeOfDay.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeOfDay do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_time_zone.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_time_zone.ex new file mode 100644 index 0000000000..4027d01c94 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/google_type_time_zone.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeZone do + @moduledoc """ + Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - IANA Time Zone Database time zone, e.g. "America/New_York". + * `version` (*type:* `String.t`, *default:* `nil`) - Optional. IANA Time Zone Database version number, e.g. "2019a". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :version => String.t() | nil + } + + field(:id) + field(:version) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeZone do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeZone.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeZone do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/groups_per_doc_data.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/groups_per_doc_data.ex new file mode 100644 index 0000000000..dfe4924de0 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/groups_per_doc_data.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.GroupsPerDocData do + @moduledoc """ + + + ## Attributes + + * `AuthorId` (*type:* `String.t`, *default:* `nil`) - + * `GroupGaiaId` (*type:* `String.t`, *default:* `nil`) - + * `GroupId` (*type:* `String.t`, *default:* `nil`) - Legacy group mysql id. + * `ThreadId` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :AuthorId => String.t() | nil, + :GroupGaiaId => String.t() | nil, + :GroupId => String.t() | nil, + :ThreadId => String.t() | nil + } + + field(:AuthorId) + field(:GroupGaiaId) + field(:GroupId) + field(:ThreadId) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.GroupsPerDocData do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.GroupsPerDocData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.GroupsPerDocData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/home_graph_common_route.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/home_graph_common_route.ex new file mode 100644 index 0000000000..a65e619ed5 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/home_graph_common_route.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonRoute do + @moduledoc """ + + + ## Attributes + + * `agentDeviceId` (*type:* `String.t`, *default:* `nil`) - The device ID defined by the agent. + * `agentId` (*type:* `String.t`, *default:* `nil`) - The agent's ID. Generally it is the agent's Google cloud project id. + * `chipEndpoint` (*type:* `list(integer())`, *default:* `nil`) - chip endpoint index (if the target is CHIP). Set packed = true to handle error caused by b/32953375 when exporting this data. Note that we should never change this to non-repeated: a packed field will not work properly if you change the field to non-repeated later. + * `targetType` (*type:* `String.t`, *default:* `nil`) - Execution routing target. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentDeviceId => String.t() | nil, + :agentId => String.t() | nil, + :chipEndpoint => list(integer()) | nil, + :targetType => String.t() | nil + } + + field(:agentDeviceId) + field(:agentId) + field(:chipEndpoint, type: :list) + field(:targetType) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonRoute do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonRoute.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonRoute do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/home_graph_common_routing_table.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/home_graph_common_routing_table.ex new file mode 100644 index 0000000000..0b9b79b847 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/home_graph_common_routing_table.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonRoutingTable do + @moduledoc """ + Defines execution routing information for Traits, which will be used to be mapped for each Trait as following: map traits_to_routing_table_map = X; We'll use this for CHIP first. And expect to migrate the existing routing logic to this gradually. + + ## Attributes + + * `supportedRoutes` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonRoute.t)`, *default:* `nil`) - List of supported execution route. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :supportedRoutes => + list(GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonRoute.t()) | nil + } + + field(:supportedRoutes, + as: GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonRoute, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonRoutingTable do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonRoutingTable.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonRoutingTable do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/home_graph_common_trait_routing_hints.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/home_graph_common_trait_routing_hints.ex new file mode 100644 index 0000000000..7392de572d --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/home_graph_common_trait_routing_hints.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonTraitRoutingHints do + @moduledoc """ + LINT.IfChange go/shed-per-trait-routing. Making it object to allow for extendible design, where we can add attributes in future. + + ## Attributes + + * `cloudFulfillmentOnly` (*type:* `boolean()`, *default:* `nil`) - Set to true for a non-local trait. + * `trait` (*type:* `String.t`, *default:* `nil`) - Trait name, e.g., "action.devices.traits.MediaInitiation". See [device traits](https://developers.home.google.com/cloud-to-cloud/traits). See java/com/google/home/graph/common/devices/config/protoconf.pi for the exhaustive list of trait-strings. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudFulfillmentOnly => boolean() | nil, + :trait => String.t() | nil + } + + field(:cloudFulfillmentOnly) + field(:trait) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonTraitRoutingHints do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonTraitRoutingHints.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.HomeGraphCommonTraitRoutingHints do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_anon_timing_stat_pair.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_anon_timing_stat_pair.ex new file mode 100644 index 0000000000..22aca19580 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_anon_timing_stat_pair.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoAnonTimingStatPair do + @moduledoc """ + TimingStatPair message stores a timing period name and a time value. This is intentionally vague for doing fine level timing of rendering as what we measure is likely to change as we iterate. The intention is also that these values will just be dumped to varzs for evaluation purposed and not used programmatically. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - + * `timeS` (*type:* `float()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :timeS => float() | nil + } + + field(:name) + field(:timeS) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoAnonTimingStatPair do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoAnonTimingStatPair.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoAnonTimingStatPair do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_box.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_box.ex new file mode 100644 index 0000000000..4dfa900cfd --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_box.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoBox do + @moduledoc """ + A simple 2D box represented by an (x, y) coordinate, a width, and a height. Coordinates are in pixels. + + ## Attributes + + * `height` (*type:* `integer()`, *default:* `nil`) - + * `width` (*type:* `integer()`, *default:* `nil`) - + * `x` (*type:* `integer()`, *default:* `nil`) - on horizontal axis + * `y` (*type:* `integer()`, *default:* `nil`) - on vertical axis + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :height => integer() | nil, + :width => integer() | nil, + :x => integer() | nil, + :y => integer() | nil + } + + field(:height) + field(:width) + field(:x) + field(:y) +end + +defimpl Poison.Decoder, for: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoBox do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoBox.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoBox do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_chromium_trace.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_chromium_trace.ex new file mode 100644 index 0000000000..f1881bb18e --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_chromium_trace.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoChromiumTrace do + @moduledoc """ + A message to describe the trace events returned by Chromium. + + ## Attributes + + * `chromiumTrace` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :chromiumTrace => String.t() | nil + } + + field(:chromiumTrace) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoChromiumTrace do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoChromiumTrace.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoChromiumTrace do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_console_log_entry.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_console_log_entry.ex new file mode 100644 index 0000000000..c11134c2ef --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_console_log_entry.ex @@ -0,0 +1,75 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoConsoleLogEntry do + @moduledoc """ + ConsoleLogEntry message stores messages logged by the renderer to the console. Typically error messages related to JS execution, parsing, any CSS errors, etc are logged by the renderer to the console. Next id: 7. + + ## Attributes + + * `lineNumber` (*type:* `integer()`, *default:* `nil`) - Line number of the document which caused an error. + * `message` (*type:* `String.t`, *default:* `nil`) - Message which indicates the nature of the error. e.g. parse error, reference error (happens when javascript functions or variables are not resolvable) etc. + * `messageLevel` (*type:* `String.t`, *default:* `nil`) - message level + * `sourceUrl` (*type:* `String.t`, *default:* `nil`) - The url of the document which has the error. + * `stackTrace` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoScriptStackFrame.t)`, *default:* `nil`) - Stack trace which functions were called when generating the console log. The first frame is the innermost one. + * `timestamp` (*type:* `float()`, *default:* `nil`) - Wall time (s) when the log entry was recorded + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lineNumber => integer() | nil, + :message => String.t() | nil, + :messageLevel => String.t() | nil, + :sourceUrl => String.t() | nil, + :stackTrace => + list( + GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoScriptStackFrame.t() + ) + | nil, + :timestamp => float() | nil + } + + field(:lineNumber) + field(:message) + field(:messageLevel) + field(:sourceUrl) + + field(:stackTrace, + as: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoScriptStackFrame, + type: :list + ) + + field(:timestamp) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoConsoleLogEntry do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoConsoleLogEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoConsoleLogEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_cookie.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_cookie.ex new file mode 100644 index 0000000000..a3a05846db --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_cookie.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoCookie do + @moduledoc """ + + + ## Attributes + + * `domain` (*type:* `String.t`, *default:* `nil`) - + * `expiration` (*type:* `float()`, *default:* `nil`) - + * `httpOnly` (*type:* `boolean()`, *default:* `nil`) - + * `name` (*type:* `String.t`, *default:* `nil`) - + * `path` (*type:* `String.t`, *default:* `nil`) - + * `sameSite` (*type:* `String.t`, *default:* `nil`) - + * `secure` (*type:* `boolean()`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :domain => String.t() | nil, + :expiration => float() | nil, + :httpOnly => boolean() | nil, + :name => String.t() | nil, + :path => String.t() | nil, + :sameSite => String.t() | nil, + :secure => boolean() | nil, + :value => String.t() | nil + } + + field(:domain) + field(:expiration) + field(:httpOnly) + field(:name) + field(:path) + field(:sameSite) + field(:secure) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoCookie do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoCookie.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoCookie do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_document.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_document.ex new file mode 100644 index 0000000000..137141f5de --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_document.ex @@ -0,0 +1,161 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDocument do + @moduledoc """ + Next available tag: 24 + + ## Attributes + + * `baseUri` (*type:* `String.t`, *default:* `nil`) - Document's base uri. + * `charset` (*type:* `String.t`, *default:* `nil`) - Document's charset. + * `contentHeight` (*type:* `integer()`, *default:* `nil`) - + * `contentLanguage` (*type:* `String.t`, *default:* `nil`) - Document's language. + * `contentWidth` (*type:* `integer()`, *default:* `nil`) - These fields contain the actual width and height of the document content, which may exceed the size of the rendering viewport. *DEPRECATED* Use rendered_content_area instead. These two fields always assume the content area begins at viewport coordinates (0,0). + * `domTreeNode` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDOMTreeNode.t)`, *default:* `nil`) - A flat list of all the DOMTreeNodes in the DOM. A flat list is preferred to a tree to avoid recursion and potential stack overflows. Note that the first node in this list will always be the root node. + * `frameId` (*type:* `String.t`, *default:* `nil`) - A unique identifier for the frame (browser window of iframe) this document is loaded in. This identifier matches the identifiers used in the timeline data to identify frames and therefore only set if the record_timeline field of the RenderRequest message was set to true. frame_id is not supported on Chromium. + * `frameName` (*type:* `String.t`, *default:* `nil`) - The name of the frame (browser window of iframe) this document is loaded in. May not be set if the frame name was empty. + * `javascriptTimeOfDay` (*type:* `float()`, *default:* `nil`) - -------------------------------------------------------------------------- Input context. These fields are copied from RenderRequest so that Document can be a self contained protobuf. We would've liked to place them in a ## nested InputContext message but it's too late now. ## Time specified to RenderRequest.JavaScriptOptions.time_of_day, if any. ## End of input context. Output-only fields below. + * `redirectHop` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoRedirectHop.t)`, *default:* `nil`) - The chain of redirects (and redirect methods) used to get to the final resource for this Document. Deprecated: Use the redirect events in the render_event field instead. + * `referencedResource` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoReferencedResource.t)`, *default:* `nil`) - Contains a list of Resources which the renderer requested -- both those that were found and those that were not. Resources are returned in the order that they were requested. + * `renderEvent` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoRenderEvent.t)`, *default:* `nil`) - Different types of events which happened during rendering. All events for this document's frame are included, so for example if a confirmation dialog is created before a client redirect to this document the ConfirmationDialogEvent will still be included even though the dialog was created by a different document. See render_event.proto for the types of events which are recorded. Note that this is present regardless of whether record_timeline was set in the RenderRequest. + * `renderStyle` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoStyle.t)`, *default:* `nil`) - See htmlrender_webkit_headless_utils::SerializeRenderStyle() if a serialized css string is wanted. + * `renderTreeNode` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoRenderTreeNode.t)`, *default:* `nil`) - A flat list of all the RenderTreeNodes from the render tree. A flat list is preferred to a tree to avoid recursion and potential stack overflows. Note that the first node in this list will always be the RenderTreeNode for the #document node (aka root). + * `renderTreeQualityScore` (*type:* `float()`, *default:* `nil`) - DEPRECATED - This field to be removed mid-2011. If you need this, use the library directly: //google3/htmlrender/webkit_headless/snapshot_quality Indicates how good or bad the rendering is from the perspective of the render tree. This is different from snapshot_quality_score in that the quality analysis examines everything that can be rendered, not just the portion within the document's viewport. It also ignores missing resouces with fixed width/height specified in the tag. A score of 1 (100%) implies the entire document can be rendered at the best quality and a score of 0 implies the entire document is unusable. + * `renderedContentArea` (*type:* `GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoBox.t`, *default:* `nil`) - The bounding box which represents the whole area of rendered content, which may exceed the size of the rendering viewport. It doesn't include the body's margin. + * `scrollX` (*type:* `integer()`, *default:* `nil`) - Scroll offset of this document within the frame. Note that if expand_frame_to_content_height or expand_frame_to_content_width is true, this field reflects the final scroll offset after frame expansion. + * `scrollY` (*type:* `integer()`, *default:* `nil`) - + * `snapshotQualityScore` (*type:* `float()`, *default:* `nil`) - DEPRECATED - This field to be removed mid-2011. If you need this, use the library directly: //google3/htmlrender/webkit_headless/snapshot_quality Indicates how good or bad the rendered snapshot is within the rendered content area within the document's viewport. A score of 1 (100%) implies the snapshot is of best quality and a score of 0 implies the snapshot is unusable. + * `title` (*type:* `String.t`, *default:* `nil`) - Document's title. + * `uri` (*type:* `String.t`, *default:* `nil`) - Document uri is the URL that this document was fetched from. The displayed URL and base URL may be different. If this document was not fetched from any URL (e.g. iframe with no src, populated by script) uri will be "about:blank". + * `viewport` (*type:* `GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoBox.t`, *default:* `nil`) - The page's layout size. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :baseUri => String.t() | nil, + :charset => String.t() | nil, + :contentHeight => integer() | nil, + :contentLanguage => String.t() | nil, + :contentWidth => integer() | nil, + :domTreeNode => + list(GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDOMTreeNode.t()) + | nil, + :frameId => String.t() | nil, + :frameName => String.t() | nil, + :javascriptTimeOfDay => float() | nil, + :redirectHop => + list(GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoRedirectHop.t()) + | nil, + :referencedResource => + list( + GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoReferencedResource.t() + ) + | nil, + :renderEvent => + list(GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoRenderEvent.t()) + | nil, + :renderStyle => + list(GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoStyle.t()) | nil, + :renderTreeNode => + list( + GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoRenderTreeNode.t() + ) + | nil, + :renderTreeQualityScore => float() | nil, + :renderedContentArea => + GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoBox.t() | nil, + :scrollX => integer() | nil, + :scrollY => integer() | nil, + :snapshotQualityScore => float() | nil, + :title => String.t() | nil, + :uri => String.t() | nil, + :viewport => + GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoBox.t() | nil + } + + field(:baseUri) + field(:charset) + field(:contentHeight) + field(:contentLanguage) + field(:contentWidth) + + field(:domTreeNode, + as: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDOMTreeNode, + type: :list + ) + + field(:frameId) + field(:frameName) + field(:javascriptTimeOfDay) + + field(:redirectHop, + as: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoRedirectHop, + type: :list + ) + + field(:referencedResource, + as: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoReferencedResource, + type: :list + ) + + field(:renderEvent, + as: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoRenderEvent, + type: :list + ) + + field(:renderStyle, + as: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoStyle, + type: :list + ) + + field(:renderTreeNode, + as: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoRenderTreeNode, + type: :list + ) + + field(:renderTreeQualityScore) + + field(:renderedContentArea, + as: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoBox + ) + + field(:scrollX) + field(:scrollY) + field(:snapshotQualityScore) + field(:title) + field(:uri) + field(:viewport, as: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoBox) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDocument do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDocument.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDocument do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_dom_storage_item.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_dom_storage_item.ex new file mode 100644 index 0000000000..2a2c01cd37 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_dom_storage_item.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDOMStorageItem do + @moduledoc """ + + + ## Attributes + + * `key` (*type:* `String.t`, *default:* `nil`) - + * `securityOrigin` (*type:* `String.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :key => String.t() | nil, + :securityOrigin => String.t() | nil, + :value => String.t() | nil + } + + field(:key) + field(:securityOrigin) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDOMStorageItem do + def decode(value, options) do + GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDOMStorageItem.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDOMStorageItem do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_dom_tree_node.ex b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_dom_tree_node.ex new file mode 100644 index 0000000000..5331533b83 --- /dev/null +++ b/clients/content_warehouse/lib/google_api/content_warehouse/v1/model/htmlrender_webkit_headless_proto_dom_tree_node.ex @@ -0,0 +1,93 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDOMTreeNode do + @moduledoc """ + DOMTreeNode Defines a DOM Node. An instance can contain references to one or more children (of type DOMTreeNode) and one or more attributes. The DOMTreeNode also encapsulates rendering information (if applicable) in the form of references to one or more RenderTreeNodes. Next tag available: 16 + + ## Attributes + + * `attribute` (*type:* `list(GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDOMTreeNodeAttribute.t)`, *default:* `nil`) - + * `childDomTreeNodeIndex` (*type:* `list(integer())`, *default:* `nil`) - An index per child. Indexes can be used to fetch the DOMTreeNodes from the list maintained by the Document. + * `currentSourceUrl` (*type:* `String.t`, *default:* `nil`) - For elements, the actual url that was used to fetch the image. Note that this field is set only if it is different from the 'src' attribute value. + * `document` (*type:* `GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDocument.t`, *default:* `nil`) - If the node represents an iframe or a frame then document will be set. + * `htmlTagType` (*type:* `integer()`, *default:* `nil`) - Identifies the HTML tag type (IMG, P, DIV, etc). Applicable only for DOM nodes that are representative of html elements. For a list of possible types refer HtmlTagEnum defined in webutil/html/htmltagenum.h. + * `isClickable` (*type:* `boolean()`, *default:* `nil`) - Whether this DOM node responds to mouse clicks. This includes e.g. nodes that have had click event listeners attached via JavaScript as well as e.g. anchor tags that naturally navigate when clicked. + * `name` (*type:* `String.t`, *default:* `nil`) - Name of the node (document, text, comment, div, etc). + * `originUrl` (*type:* `String.t`, *default:* `nil`) - URL of the script, if any, which created or populated this node. + * `referencedResourceIndex` (*type:* `list(integer())`, *default:* `nil`) - List of referenced resource indexes for any resources that this DOM tree node references. + * `renderTreeNodeIndex` (*type:* `list(integer())`, *default:* `nil`) - RenderTreeNode can be looked up from the list of RenderTreeNodes stored in the Document using render_tree_node_index. RenderTreeNode gives rendering information (bounding box, style that was applied, etc). Note: 1. If a DOMTreeNode does not have a RenderTreeNode then it is safe to assume that the DOMTreeNode has no effect on the rendering. DOMTreeNodes for a , + * `type` (*type:* `String.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - The node value is applicable for TEXT_NODEs, DOCUMENT_TYPE_NODEs, COMMENT_NODEs, and user input elements such as , and